/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #020617;
    color: #ffffff;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
}


.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5f5;
    font-size: 14px;
}

.btn-primary {
    background: #ffffff;
    color: #020617;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}


/* Hero */
.hero-bg-image {
    min-height: 100vh;
    background-image: url("../assets/images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg-image {
    overflow: hidden;
}

.hero-bg-image::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
}



.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.06),
            transparent 45%
        ),
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.92)
        );
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
    margin: 0 auto;
    transform: translateZ(0);
}


.hero-content h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 18px;
    color: #cbd5f5;
    max-width: 600px;
    margin-bottom: 32px;
}

/* Trust */
.trust {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: #cbd5f5;
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Focus */
.focus h2,
.why-mybyte h2 {
    font-size: 36px;
    margin-bottom: 48px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.focus-grid h4,
.why-grid h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.focus-grid p,
.why-grid p {
    color: #cbd5f5;
    font-size: 14px;
}

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

/* CTA */
.cta-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-box p {
    color: #cbd5f5;
    margin-bottom: 24px;
}


/* About page */
.about-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: #020617;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.about-hero p {
    color: #cbd5f5;
    max-width: 700px;
}

.about-section {
    padding: 80px 0;
}

.about-section.alt {
    background: rgba(255, 255, 255, 0.03);
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.about-section p {
    max-width: 800px;
    color: #cbd5f5;
    margin-bottom: 16px;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    margin-bottom: 12px;
    color: #cbd5f5;
}

/* Footer */
.site-footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 64px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-brand p {
    color: #cbd5f5;
    font-size: 14px;
    max-width: 320px;
    margin-top: 12px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: #cbd5f5;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #cbd5f5;
}

.footer-bottom a {
    color: #cbd5f5;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
}



/* =========================
   Mobile Responsiveness
   ========================= */

/* Tablets and below */
@media (max-width: 1024px) {

    .nav-container {
        padding: 16px 20px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .section-container {
        padding: 96px 20px;
    }
}

/* Phones */
@media (max-width: 768px) {

    /* Header */
   
    .nav-container {
        flex-direction: row;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        width: 100%;
    }


    .nav-cta {
        align-self: stretch;
    }

    .nav-cta .btn-primary {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Sections */
    .section-container {
        padding: 72px 20px;
    }

    .focus-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* About page */
    .about-hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .about-hero h1 {
        font-size: 36px;
    }

    .about-section {
        padding: 72px 0;
    }

    /* CTA */
    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 30px;
    }

    .logo-text {
        font-size: 14px;
    }

    .nav-links a {
        font-size: 13px;
    }
}


/* =========================
   Animations (Advanced)
   ========================= */

/* Initial hidden state */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }

/* Hero entrance */
.hero-content {
    animation: heroFade 1s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Button micro interaction */
.btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ============================
   Contact page spacing fix
   ============================ */

.contact-page .section-container {
    padding-top: 64px;
    padding-bottom: 64px;
}

.contact-page .about-hero {
    padding-top: 140px;
    padding-bottom: 64px;
}

.contact-page .about-section {
    padding: 48px 0;
}

.contact-page .cta {
    padding: 64px 0;
}

.contact-page .cta-box {
    padding: 48px 32px;
}



/* ============================
   About page spacing fix
   ============================ */

.about-page .about-hero {
    padding-top: 140px;
    padding-bottom: 64px;
}

.about-page .section-container {
    padding-top: 64px;
    padding-bottom: 64px;
}

.about-page .about-section {
    padding: 48px 0;
}

.about-page .about-section.alt {
    padding: 48px 0;
}

.about-page .cta {
    padding: 64px 0;
}

.about-page .cta-box {
    padding: 48px 32px;
}


/* ============================
   Services page spacing fix
   ============================ */

.services-page .about-hero {
    padding-top: 140px;
    padding-bottom: 64px;
}

.services-page .section-container {
    padding-top: 64px;
    padding-bottom: 64px;
}

.services-page .about-section {
    padding: 48px 0;
}

.services-page .about-section.alt {
    padding: 48px 0;
}

.services-page .cta {
    padding: 64px 0;
}

.services-page .cta-box {
    padding: 48px 32px;
}


/* ============================
   Products page spacing fix
   ============================ */

.products-page .about-hero {
    padding-top: 140px;
    padding-bottom: 64px;
}

.products-page .section-container {
    padding-top: 64px;
    padding-bottom: 64px;
}

.products-page .about-section {
    padding: 48px 0;
}

.products-page .about-section.alt {
    padding: 48px 0;
}

.products-page .cta {
    padding: 64px 0;
}

.products-page .cta-box {
    padding: 48px 32px;
}


/* ============================
   R&D page spacing fix
   ============================ */

.rnd-page .about-hero {
    padding-top: 140px;
    padding-bottom: 64px;
}

.rnd-page .section-container {
    padding-top: 64px;
    padding-bottom: 64px;
}

.rnd-page .about-section {
    padding: 48px 0;
}

.rnd-page .about-section.alt {
    padding: 48px 0;
}

.rnd-page .cta {
    padding: 64px 0;
}

.rnd-page .cta-box {
    padding: 48px 32px;
}


/* ============================
   3D background canvas
   ============================ */




.page-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-hero #three-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 24px rgba(147, 197, 253, 0.25));
}



.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 23, 0.55),
        rgba(2, 6, 23, 0.9)
    );
    z-index: 1;
}

.page-hero .section-container {
    position: relative;
    z-index: 2;
}

/* Services hero background */
.services-hero {
    background-image: url("../assets/images/services-bg.jpg");
}

.products-hero {
    background-image: url("../assets/images/products-bg.jpg");
}

.rnd-hero {
    background-image: url("../assets/images/rnd-bg.jpg");
}


/* Three.js canvas for ALL hero sections */
.hero-bg-image #three-canvas,
.page-hero #three-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hero text always above 3D + blur */
.hero-content,
.page-hero .section-container {
    position: relative;
    z-index: 2;
}

.page-hero {
    padding-top: 120px; /* pushes hero below fixed header */
}

