
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;900&display=swap');
/* =========================
   GLOBAL STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
}

    /* Restore black navigation text */
    .header .desktop-menu a,
    .header .right-menu > a {
        color: #171a20 !important;
    }

    /* Keep the hamburger icon black */
    .header .menu-button,
    .header .close-button {
        color: #171a20 !important;
    }

    /* Keep side menu links black */
    .header .side-links a,
    .header .side-menu nav a {
        color: #171a20 !important;
    }

        /* Prevent blue text on hover */
        .header .desktop-menu a:hover,
        .header .right-menu > a:hover,
        .header .side-links a:hover {
            color: #171a20 !important;
        }
.logo img {
    width: 140px;
    height: auto;
    display: block;
}

.desktop-menu,
.right-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-menu {
    justify-content: center;
    flex: 1;
}

    .desktop-menu a,
    .right-menu > a {
        color: #171a20;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        white-space: nowrap;
    }

/* =========================
   MENU BUTTON
========================= */

.menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-button,
.close-button {
    border: 0;
    background: transparent;
    color: #171a20;
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
}

.menu-button {
    display: block;
}

/* =========================
   SIDE MENU
========================= */

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    height: 100vh;
    padding: 70px 25px 25px;
    background: #fff;
    overflow-y: auto;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Checkbox-controlled menu */

.menu-toggle:checked ~ .side-menu {
    transform: translateX(0);
}

/* JavaScript-controlled menu */

.side-menu.open {
    transform: translateX(0);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    display: block;
    margin-left: auto;
    margin-bottom: 12px;
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .side-links a,
    .side-menu nav a {
        display: block;
        padding: 12px;
        color: #171a20;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid #eee;
    }

        .side-links a:hover,
        .side-menu nav a:hover {
            background: #f2f2f2;
        }

/* =========================
   OVERLAY
========================= */

.overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Checkbox-controlled overlay */

.menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* JavaScript-controlled overlay */

.overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

/* =========================
   TESLA SECTIONS
========================= */

.section {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    scroll-snap-align: start;
    background-image: var(--bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.section-text {
    padding: 15vh 18px 0;
}

.section h1 {
    font-size: 40px;
    font-weight: 500;
    color: #171a20;
}

.section p {
    margin-top: 8px;
    font-size: 14px;
    color: #393c41;
}

/* =========================
   SECTION BUTTONS
========================= */

.section-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 24px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.btn {
    width: 256px;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-dark {
    background: rgba(23, 26, 32, 0.85);
    color: #fff;
}

.btn-light {
    background: rgba(255, 255, 255, 0.72);
    color: #171a20;
}

/* =========================
   DOWN ARROW
========================= */

.down-arrow img {
    width: 30px;
    height: 30px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 1100px) {
    .header {
        padding: 0 15px;
    }

    .desktop-menu {
        display: none;
    }

    .right-menu {
        margin-left: auto;
    }

        .right-menu > a {
            display: none;
        }

    .menu-button {
        display: block;
    }

    .section h1 {
        font-size: 32px;
    }
}

@media (min-width: 1101px) {
    .menu-button {
        display: none;
    }
}

@media (max-width: 600px) {
    .header {
        height: 50px;
        padding: 0 12px;
    }

    .logo img {
        width: 100px;
    }

    .section {
        min-height: 560px;
    }

    .section-text {
        padding-top: 17vh;
    }

    .section h1 {
        font-size: 29px;
    }

    .section p {
        font-size: 13px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .btn {
        width: min(82vw, 320px);
    }

    .section-bottom {
        padding-bottom: 25px;
    }
}


