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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    background: #e9f8fc;
    color: #263b49;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HEADER
========================= */

header {
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items: center;

    padding: 0 7%;

    background: rgba(238, 251, 255, .85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(70, 120, 140, .1);

    z-index: 100;
}

.logo {
    margin-right: auto;
}

.logo a {
    font-family: "Pacifico", cursive;
    font-size: 25px;
    color: #243f52;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 13px;
    color: #536b78;

    transition: .25s;
}

nav a:hover {
    color: #4d88ad;
}

.music-button {
    margin-left: 25px;

    width: 48px;
    height: 48px;

    border: 2px solid #b9dce9;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #ffffff,
        #dff4fc
    );

    color: #385d75;

    cursor: pointer;

    font-size: 23px;

    box-shadow:
        0 6px 20px rgba(50, 100, 120, .18),
        0 0 0 5px rgba(185, 220, 233, .18);

    transition: .3s;

    animation: musicPulse 2s ease-in-out infinite;
}

.music-button:hover {
    transform: scale(1.12);

    box-shadow:
        0 8px 25px rgba(50, 100, 120, .25),
        0 0 0 7px rgba(185, 220, 233, .22);
}

.music-button:active {
    transform: scale(.95);
}


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

.hero {
    min-height: 100vh;

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

    text-align: center;

    position: relative;

    overflow: hidden;

    padding: 100px 20px;
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 20% 30%, #d2f0ff, transparent 35%),
        radial-gradient(circle at 80% 70%, #eee4ff, transparent 35%),
        linear-gradient(
            135deg,
            #effcff,
            #e5f7fc
        );
}

.hero-background::before,
.hero-background::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: rgba(255,255,255,.35);

    filter: blur(5px);

    animation: floating 7s ease-in-out infinite;
}

.hero-background::before {
    top: 15%;
    left: 5%;
}

.hero-background::after {
    bottom: 10%;
    right: 5%;

    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 800px;
}

.subtitle {
    letter-spacing: 5px;
    font-size: 12px;
    color: #7294a5;
}

.hero h1 {
    font-family: "Pacifico", cursive;

    font-size: clamp(55px, 10vw, 110px);

    font-weight: 400;

    color: #263f52;

    margin: 25px 0;
}

.hero-content > p:not(.subtitle) {
    color: #68808d;

    font-size: 17px;

    line-height: 1.8;

    max-width: 600px;

    margin: auto;
}

.hero-buttons {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}

.main-button,
.outline-button {
    padding: 13px 23px;

    border-radius: 50px;

    font-size: 13px;

    transition: .3s;
}

.main-button {
    background: #385d75;
    color: white;
}

.main-button:hover {
    transform: translateY(-3px);
}

.outline-button {
    background: rgba(255,255,255,.7);

    border: 1px solid #bdd9e4;

    color: #385d75;
}


/* =========================
   SECTION
========================= */

.section {
    max-width: 1150px;

    margin: auto;

    padding: 110px 25px;
}

.section-title {
    text-align: center;

    margin-bottom: 55px;
}

.section-title p {
    font-size: 11px;

    letter-spacing: 4px;

    color: #789baa;

    margin-bottom: 10px;
}

.section-title h2 {
    font-family: "Pacifico", cursive;

    font-size: 40px;

    font-weight: 400;

    color: #304c5e;
}

.section-title span {
    display: block;

    width: 45px;
    height: 3px;

    margin: 18px auto 0;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #6caed0,
        #c9aee8
    );
}


/* =========================
   MEMBERS
========================= */

.members-grid {
    display: grid;

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

    gap: 25px;
}

.member-card {
    background: rgba(255,255,255,.75);

    padding: 10px;

    border-radius: 20px;

    box-shadow:
        0 12px 40px
        rgba(65, 110, 130, .09);

    cursor: pointer;

    transition: .35s;
}

.member-card:hover {
    transform: translateY(-8px);
}

.member-card img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 15px;
}

.member-card h3 {
    text-align: center;

    font-size: 15px;

    margin: 13px 0 3px;
}

.member-card p {
    text-align: center;

    color: #82949e;

    font-size: 12px;

    padding-bottom: 8px;
}


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

.gallery-grid {
    columns: 3 250px;

    column-gap: 18px;
}

.gallery-item {
    break-inside: avoid;

    margin-bottom: 18px;

    overflow: hidden;

    border-radius: 18px;

    cursor: pointer;

    box-shadow:
        0 10px 30px
        rgba(70, 110, 125, .1);
}

.gallery-item img {
    width: 100%;

    display: block;

    transition: .5s;
}

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


/* =========================
   TIMELINE
========================= */

.timeline {
    position: relative;

    max-width: 850px;

    margin: auto;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 2px;

    background: #77a9c2;
}

.timeline-item {
    width: 50%;

    padding: 15px 40px;

    position: relative;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;

    top: 27px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #fff;

    border: 3px solid #6e9fba;
}

.timeline-item:nth-child(odd)
.timeline-dot {
    right: -7px;
}

.timeline-item:nth-child(even)
.timeline-dot {
    left: -7px;
}

.timeline-content {
    background: rgba(255,255,255,.8);

    padding: 23px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(60, 100, 120, .08);
}

.timeline-content small {
    color: #7196a7;
}

.timeline-content h3 {
    margin: 8px 0;

    font-size: 17px;
}

.timeline-content p {
    font-size: 13px;

    color: #71838d;

    line-height: 1.7;
}


/* =========================
   VIDEO
========================= */

.video-container {
    background: #15222a;

    padding: 10px;

    border-radius: 25px;

    box-shadow:
        0 20px 50px
        rgba(30, 60, 70, .2);
}

.video-container video {
    width: 100%;

    max-height: 650px;

    display: block;

    border-radius: 17px;
}


/* =========================
   WISHES
========================= */

.wishes-section {
    max-width: 1250px;
}

.wishes-grid {
    display: grid;

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

    gap: 20px;
}

.wish {
    min-height: 190px;

    padding: 25px;

    position: relative;

    box-shadow:
        0 10px 25px
        rgba(50, 80, 90, .1);

    transition: .3s;

    color: #465861;
}

.wish:hover {
    transform: rotate(0deg) translateY(-5px);
}

.wish:nth-child(4n + 1) {
    background: #fff5b9;
    transform: rotate(-2deg);
}

.wish:nth-child(4n + 2) {
    background: #ffd8e4;
    transform: rotate(2deg);
}

.wish:nth-child(4n + 3) {
    background: #d7f2e5;
    transform: rotate(-1deg);
}

.wish:nth-child(4n + 4) {
    background: #d9edff;
    transform: rotate(2deg);
}

.wish p {
    font-family: Georgia, serif;

    font-style: italic;

    line-height: 1.7;

    font-size: 14px;
}

.wish strong {
    display: block;

    margin-top: 25px;

    text-align: right;

    font-size: 12px;
}


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

footer {
    text-align: center;

    padding: 100px 20px;

    background: #dff3f8;
}

footer h2 {
    font-family: "Pacifico", cursive;

    font-size: 35px;

    font-weight: 400;
}

footer p {
    color: #718690;

    margin: 15px 0;
}

footer div {
    font-size: 28px;

    color: #e77c96;
}


/* =========================
   MUSIC
========================= */

.music-player {
    position: fixed;

    bottom: 25px;
    left: 25px;

    width: 330px;

    padding: 15px;

    background: rgba(255,255,255,.94);

    backdrop-filter: blur(15px);

    border-radius: 18px;

    box-shadow:
        0 15px 50px
        rgba(40, 80, 100, .2);

    z-index: 150;

    transform: translateY(150%);

    transition: .4s;
}

.music-player.show {
    transform: translateY(0);
}

#closeMusic {
    position: absolute;

    top: 8px;
    right: 10px;

    border: none;

    background: none;

    cursor: pointer;

    font-size: 18px;
}

.music-info {
    display: flex;

    align-items: center;

    gap: 12px;
}

.music-info img {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    object-fit: cover;
}

.music-info small {
    display: block;

    color: #7b98a6;

    font-size: 9px;

    letter-spacing: 2px;
}

.music-info strong {
    display: block;

    margin-top: 4px;

    font-size: 13px;
}

.music-controls {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 12px;
}

.music-controls button {
    border: none;

    background: none;

    cursor: pointer;

    font-size: 18px;
}

#playMusic {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #385d75;

    color: white;
}


/* =========================
   GATEKEEPER
========================= */

.gatekeeper {
    position: fixed;

    inset: 0;

    background:
        rgba(205, 235, 245, .82);

    backdrop-filter: blur(12px);

    z-index: 500;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.gatekeeper.hidden {
    display: none;
}

.gate-box {
    width: min(420px, 95vw);

    background: rgba(255,255,255,.95);

    border-radius: 25px;

    padding: 30px;

    text-align: center;

    position: relative;

    box-shadow:
        0 30px 80px
        rgba(60, 100, 120, .2);

    animation: popup .5s ease;
}

.close-button {
    position: absolute;

    top: 12px;
    right: 15px;

    border: none;

    background: none;

    font-size: 20px;

    cursor: pointer;

    color: #84949c;
}

.gate-image img {
    width: 80px;
    height: 80px;

    object-fit: cover;

    border-radius: 20px;

    margin-bottom: 15px;
}

.gate-small {
    color: #8197a1;

    font-size: 12px;
}

.gate-box h2 {
    font-size: 19px;

    margin: 12px 0 20px;
}

.answers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.answer-button {
    border: 1px solid #d6e6ec;

    background: #f5fbfd;

    padding: 12px;

    border-radius: 12px;

    cursor: pointer;

    transition: .25s;

    font-size: 13px;
}

.answer-button:hover {
    background: #dceff7;

    transform: translateY(-2px);
}

#gateMessage {
    min-height: 20px;

    margin-top: 15px;

    font-size: 12px;
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(25, 45, 55, .55);

    backdrop-filter: blur(10px);

    z-index: 300;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.modal.show {
    display: flex;
}

.member-modal {
    width: min(390px, 95vw);

    background: #f4fcff;

    border-radius: 25px;

    padding: 30px;

    text-align: center;

    position: relative;

    animation: popup .3s ease;
}

.modal-close,
.image-close {
    position: absolute;

    top: 12px;
    right: 15px;

    border: none;

    background: none;

    font-size: 22px;

    cursor: pointer;
}

.member-modal > img {
    width: 125px;
    height: 125px;

    border-radius: 25px;

    object-fit: cover;

    margin-bottom: 15px;
}

.member-modal h2 {
    font-size: 21px;
}

.member-modal > p {
    color: #81939c;

    font-size: 12px;

    margin: 5px 0 25px;
}

.profile-line {
    display: flex;

    gap: 10px;

    text-align: left;

    margin: 12px 0;

    font-size: 13px;

    color: #607782;
}


/* =========================
   IMAGE MODAL
========================= */

.image-modal {
    position: fixed;

    inset: 0;

    background: rgba(10, 20, 25, .88);

    z-index: 400;

    display: none;

    align-items: center;

    justify-content: center;
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 90vw;

    max-height: 85vh;

    border-radius: 15px;
}

.image-close {
    color: white;

    font-size: 35px;
}

.image-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: rgba(255,255,255,.15);

    color: white;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    font-size: 35px;

    cursor: pointer;
}

.image-arrow.left {
    left: 25px;
}

.image-arrow.right {
    right: 25px;
}


/* =========================
   ANIMATION
========================= */

@keyframes floating {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }

}

@keyframes popup {

    from {
        opacity: 0;

        transform:
            scale(.9)
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }

}


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

@media(max-width: 800px) {

    header {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .music-button {
        margin-left: 15px;
    }

    .members-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .wishes-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-item {
        width: 100%;

        margin-left: 0 !important;

        padding-left: 35px;

        padding-right: 0;
    }

    .timeline-item .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }

    .music-player {
        left: 12px;
        right: 12px;

        width: auto;
    }

}

@media(max-width: 500px) {

    .section {
        padding: 80px 16px;
    }

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

    .members-grid {
        gap: 12px;
    }

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

    .wish {
        min-height: 160px;
    }

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

}

/* =========================
   TEACHER POPUP
========================= */

.hidden {
    display: none !important;
}

.teacher-popup-box {
    max-width: 500px;
}

.teacher-popup-box .gate-image img {
    width: 180px;
    height: 220px;

    object-fit: cover;

    border-radius: 18px;
}

.teacher-popup-role {
    margin-top: -5px;

    font-weight: 600;

    color: #587788;
}

.teacher-popup-description {
    line-height: 1.7;

    margin: 20px 10px;

    font-size: 14px;

    color: #71838d;
}

#continueTeacher {
    width: 100%;

    margin-top: 5px;
}

@keyframes musicPulse {

    0%, 100% {
        box-shadow:
            0 6px 20px rgba(50, 100, 120, .18),
            0 0 0 5px rgba(185, 220, 233, .18);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(50, 100, 120, .25),
            0 0 0 9px rgba(185, 220, 233, .08);
    }

}