* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: #f3efe7;
    color: #292621;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 28px 7%;

    z-index: 10;
}

.logo {
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}


/* =====================================================
   AUTH BUTTONS
===================================================== */

.auth-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-button {
    padding: 9px 16px;

    border: 1px solid white;

    background: transparent;

    color: white;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    text-decoration: none;

    transition: all 0.3s;
}

.auth-button:hover {
    background: white;
    color: #292621;
}

.navbar .auth-button {
    margin-left: 2px;
}

.navbar .auth-button:hover {
    opacity: 1;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 720px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: white;

    background:
        linear-gradient(
            rgba(25, 22, 18, 0.72),
            rgba(25, 22, 18, 0.82)
        ),
        url("images/guqin-hero.png");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 850px;
    padding: 30px;
}

.subtitle {
    letter-spacing: 5px;
    font-size: 13px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(55px, 9vw, 110px);
    margin: 0;
    font-weight: normal;
    letter-spacing: 4px;
}

.hero-description {
    font-size: 21px;
    line-height: 1.7;
    max-width: 650px;
    margin: 30px auto;
}

.hero-button {
    display: inline-block;

    padding: 14px 32px;

    border: 1px solid white;

    color: white;
    text-decoration: none;

    transition: all 0.3s;
}

.hero-button:hover {
    background: white;
    color: #292621;
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    max-width: 1100px;
    margin: auto;

    padding: 110px 7%;
}

.dark-section {
    max-width: none;

    background: #292621;
    color: #eee9df;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 45px;
}

.section-title span {
    font-size: 14px;
    opacity: 0.55;
}

.section-title h2 {
    margin: 0;

    font-size: 42px;
    font-weight: normal;
}

.content {
    max-width: 750px;
}

.content p {
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 25px;
}


/* =====================================================
   GUQIN
===================================================== */

.guqin-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.guqin-image {
    overflow: hidden;
}

.guqin-image img {
    width: 100%;
    height: 520px;

    object-fit: cover;

    display: block;

    transition: transform 0.6s ease;
}

.guqin-image:hover img {
    transform: scale(1.03);
}

.guqin-layout .content {
    max-width: 600px;
}


/* =====================================================
   CLASSES
===================================================== */

.classes-layout {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: start;
}

.classes-image {
    position: sticky;

    top: 100px;

    overflow: hidden;
}

.classes-image img {
    width: 100%;
    height: 600px;

    object-fit: cover;

    display: block;
}

.classes-content {
    max-width: 650px;
}

.section-intro {
    font-size: 20px;
    line-height: 1.8;

    margin-bottom: 45px;
}

.class-card {
    border-top: 1px solid rgba(0, 0, 0, 0.15);

    padding: 30px 0;
}

.dark-section .class-card {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.class-card span {
    font-size: 13px;

    letter-spacing: 3px;

    opacity: 0.55;
}

.class-card h3 {
    margin: 10px 0;

    font-size: 25px;
}

.class-card p {
    line-height: 1.7;

    opacity: 0.75;
}


/* =====================================================
   PAYPAL
===================================================== */

.paypal-container {
    margin-top: 25px;

    max-width: 500px;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 500px;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}


/* =====================================================
   CARDS
===================================================== */

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.card {
    padding: 35px;

    background: white;

    border: 1px solid #ddd6ca;

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 24px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    text-align: center;
}

.contact .content {
    margin: auto;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 35px 7%;

    background: #1f1d1a;

    color: #eee9df;

    text-align: center;
}

footer p {
    margin: 0;

    opacity: 0.65;
}


/* =====================================================
   AUTH MODALS
===================================================== */

.modal {
    position: fixed;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.75);

    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;

    width: 100%;
    max-width: 430px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 40px;

    background: #f3efe7;

    color: #292621;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.35);

    border-radius: 2px;
}

.modal-content h2 {
    margin-top: 0;

    margin-bottom: 25px;

    font-size: 32px;

    font-weight: normal;
}

.modal-close {
    position: absolute;

    top: 12px;
    right: 16px;

    width: 35px;
    height: 35px;

    border: none;

    background: transparent;

    color: #292621;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;
}

.modal-close:hover {
    opacity: 0.55;
}


/* =====================================================
   AUTH FORMS
===================================================== */

.modal form {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.modal label {
    font-size: 14px;

    margin-top: 8px;
}

.modal input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #cfc7ba;

    background: white;

    color: #292621;

    font-family: inherit;

    font-size: 16px;

    outline: none;
}

.modal input:focus {
    border-color: #292621;
}

.submit-button {
    margin-top: 15px;

    padding: 13px 20px;

    border: 1px solid #292621;

    background: #292621;

    color: white;

    font-family: inherit;

    font-size: 15px;

    cursor: pointer;

    transition: all 0.3s;
}

.submit-button:hover {
    background: transparent;

    color: #292621;
}

.form-message {
    min-height: 20px;

    margin: 5px 0 0;

    font-size: 14px;

    line-height: 1.5;
}

.switch-auth {
    margin-top: 25px;

    font-size: 14px;

    text-align: center;
}

.switch-auth button {
    border: none;

    background: transparent;

    color: #292621;

    font-family: inherit;

    font-size: inherit;

    font-weight: bold;

    text-decoration: underline;

    cursor: pointer;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .navbar {
        padding: 22px 5%;
    }

    .nav-links {
        gap: 12px;
    }

    .guqin-layout,
    .classes-layout {
        grid-template-columns: 1fr;
    }

    .classes-image {
        position: static;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .navbar {
        position: absolute;

        align-items: flex-start;

        padding: 20px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        display: flex;

        flex-wrap: wrap;

        justify-content: flex-end;

        gap: 8px;

        max-width: 72%;
    }

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

    .auth-area {
        width: 100%;

        justify-content: flex-end;

        margin-top: 5px;
    }

    .auth-button {
        padding: 8px 12px;

        font-size: 12px;
    }

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding: 25px 20px;
    }

    .subtitle {
        font-size: 11px;

        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: 52px;

        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 17px;
    }

    .section {
        padding: 75px 6%;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .guqin-image img,
    .gallery-item img {
        height: 350px;
    }

    .classes-image img {
        height: 400px;
    }

    .modal {
        padding: 15px;
    }

    .modal-content {
        max-width: 100%;

        padding: 30px 22px;

        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 28px;
    }

    .modal-close {
        top: 10px;
        right: 12px;
    }
}
/* =========================================
   PASSWORD VISIBILITY TOGGLE
   ========================================= */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    padding: 0;
}

.password-toggle:hover {
    opacity: 0.7;
}
