/* =====================================================
   NOVA VERGE JUNIOR COLLEGE
   PREMIUM RESPONSIVE DESIGN
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f4f3ef;
    color: #11141a;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =====================================================
   LOADER
===================================================== */

.loader {
    position: fixed;
    inset: 0;
    background: #080a0e;
    color: white;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 20px;

    transition: 0.8s ease;
}

.loader-circle {
    width: 55px;
    height: 55px;

    border-radius: 50%;
    border: 1px solid #ffffff30;
    border-top-color: #8dff75;

    animation: rotate 1s linear infinite;
}

.loader p {
    font-size: 10px;
    letter-spacing: 5px;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: white;

    z-index: 1000;

    transition: 0.4s ease;
}

.header.scrolled {
    height: 65px;

    background: #080a0eee;

    backdrop-filter: blur(18px);
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo > span {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid #8dff75;

    color: #8dff75;

    font-size: 10px;
    font-weight: 700;
}

.logo div {
    display: flex;
    flex-direction: column;
}

.logo strong {
    font-size: 12px;
    letter-spacing: 2px;
}

.logo small {
    font-size: 7px;
    letter-spacing: 2px;
    opacity: 0.5;
}


nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 11px;
    opacity: 0.7;

    transition: 0.25s;
}

nav a:hover {
    opacity: 1;
    color: #8dff75;
}


.header-btn {
    padding: 11px 17px;

    border: 1px solid #ffffff55;

    font-size: 11px;

    transition: 0.3s;
}

.header-btn:hover {
    background: white;
    color: #111;
}


.menu-btn {
    display: none;

    background: none;
    border: none;

    cursor: pointer;
}

.menu-btn span {
    display: block;

    width: 27px;
    height: 1px;

    background: white;

    margin: 6px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 100svh;

    overflow: hidden;

    background: #080a0e;

    color: white;
}


.hero-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: saturate(0.65) contrast(1.1);
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #05070bdc,
            #05070b55 60%,
            #05070b22
        ),
        linear-gradient(
            0deg,
            #05070be8,
            transparent 60%
        );
}


.glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(70px);

    opacity: 0.2;

    pointer-events: none;
}

.glow-one {
    width: 280px;
    height: 280px;

    background: #615bff;

    right: 10%;
    top: 20%;
}

.glow-two {
    width: 200px;
    height: 200px;

    background: #8dff75;

    left: 40%;
    bottom: 10%;
}


.hero-location {
    position: absolute;

    right: 5vw;
    top: 125px;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: 0.65;
}

.hero-location span {
    display: inline-block;

    width: 45px;
    height: 1px;

    background: #8dff75;

    margin: 0 10px;
}


.hero-content {
    position: absolute;

    left: 8vw;
    top: 50%;

    transform: translateY(-40%);

    max-width: 850px;
}


.eyebrow {
    font-size: 9px;

    letter-spacing: 3px;

    font-weight: 700;

    color: #70756d;
}

.hero .eyebrow,
.campus-video .eyebrow,
.timeline .eyebrow,
.admission-content .eyebrow {
    color: #8dff75;
}


.hero h1 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(75px, 12vw, 170px);

    line-height: 0.78;

    letter-spacing: -9px;

    font-weight: 500;

    margin: 25px 0 35px;
}

.hero h1 em {
    font-family: Georgia, serif;

    font-weight: 400;

    letter-spacing: -7px;
}


.hero-description {
    max-width: 560px;

    color: #ffffffaa;

    font-size: 16px;

    line-height: 1.7;
}


.hero-buttons {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-top: 30px;
}


.btn {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    padding: 15px 22px;

    border: 1px solid transparent;

    font-size: 11px;

    font-weight: 700;

    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-4px);
}


.primary-btn {
    background: #8dff75;
    color: #071007;
}


.explore-btn {
    font-size: 11px;

    color: white;

    opacity: 0.7;
}

.explore-btn span {
    color: #8dff75;

    margin-left: 8px;
}


.hero-bottom {
    position: absolute;

    bottom: 30px;

    left: 8vw;
    right: 8vw;

    display: flex;
    align-items: center;

    gap: 18px;

    font-size: 8px;

    letter-spacing: 2px;

    opacity: 0.6;
}

.hero-progress {
    height: 1px;

    flex: 1;

    background: #ffffff30;
}

.hero-progress span {
    display: block;

    width: 22%;
    height: 100%;

    background: #8dff75;
}


/* =====================================================
   COMMON SECTIONS
===================================================== */

.section {
    padding: 130px 7vw;
}

.section-heading {
    max-width: 1200px;
    margin: auto;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(55px, 8vw, 110px);

    line-height: 0.88;

    letter-spacing: -7px;

    font-weight: 500;

    margin-top: 22px;
}

.section-heading h2 em {
    font-family: Georgia, serif;

    font-weight: 400;

    letter-spacing: -5px;
}


/* =====================================================
   STORY
===================================================== */

.story {
    min-height: 750px;

    display: grid;

    grid-template-columns: 100px 1fr;

    padding-left: 8vw;
    padding-right: 8vw;
}

.side-number {
    font-size: 9px;

    letter-spacing: 2px;

    color: #777;
}


.story-content {
    max-width: 1000px;
}


.story-content h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(55px, 9vw, 130px);

    line-height: 0.88;

    letter-spacing: -8px;

    font-weight: 500;

    margin: 35px 0;
}

.story-content h2 em {
    color: #5d62ff;

    font-family: Georgia, serif;

    font-weight: 400;
}


.large-text {
    max-width: 680px;

    color: #666;

    font-size: 20px;

    line-height: 1.6;
}


.keywords {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 90px;
}

.keywords span {
    padding: 13px 18px;

    border: 1px solid #1113;

    font-size: 9px;

    letter-spacing: 2px;
}


/* =====================================================
   STATISTICS
===================================================== */

.statistics {
    background: #10131a;

    color: white;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    padding: 65px 8vw;
}


.stat {
    padding: 10px 30px;

    border-left: 1px solid #ffffff18;
}


.stat strong {
    font-family: "Space Grotesk";

    font-size: 52px;

    font-weight: 500;
}


.stat span {
    display: block;

    color: #ffffff55;

    font-size: 8px;

    letter-spacing: 2px;

    margin-top: 5px;
}


/* =====================================================
   ACADEMICS
===================================================== */

.course-grid {
    max-width: 1200px;

    margin: 70px auto 0;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}


.course-card {
    position: relative;

    overflow: hidden;

    background: #e8e7df;

    transition: 0.5s ease;
}


.course-card:hover {
    background: #11151d;

    color: white;

    transform: translateY(-8px);
}


.course-image {
    height: 310px;

    overflow: hidden;
}


.course-image img {
    height: 100%;

    object-fit: cover;

    transition: 0.8s ease;
}


.course-card:hover .course-image img {
    transform: scale(1.08);
}


.course-number {
    position: absolute;

    left: 18px;
    top: 18px;

    background: white;

    padding: 8px;

    font-size: 9px;
}


.course-content {
    padding: 28px;
}


.course-content > span {
    color: #615bff;

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 700;
}


.course-content h3 {
    font-family: "Space Grotesk";

    font-size: 42px;

    line-height: 0.9;

    letter-spacing: -3px;

    margin: 18px 0;
}


.course-content p {
    color: #777;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 25px;
}


.course-card:hover .course-content p {
    color: #ffffff88;
}


.course-content a {
    font-size: 10px;

    font-weight: 700;
}


/* =====================================================
   CAMPUS VIDEO
===================================================== */

.campus-video {
    position: relative;

    height: 850px;

    overflow: hidden;

    color: white;
}


.campus-video > video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: saturate(0.65);
}


.video-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            #070a0edb,
            #070a0e22
        ),
        linear-gradient(
            0deg,
            #070a0eee,
            transparent 65%
        );
}


.campus-content {
    position: absolute;

    left: 8vw;

    bottom: 110px;

    max-width: 700px;
}


.campus-content h2 {
    font-family: "Space Grotesk";

    font-size: clamp(60px, 9vw, 120px);

    line-height: 0.85;

    letter-spacing: -7px;

    margin: 20px 0;
}


.campus-content h2 em {
    font-family: Georgia, serif;

    font-weight: 400;
}


.campus-content > p:not(.eyebrow) {
    max-width: 500px;

    color: #ffffffaa;

    line-height: 1.6;
}


.light-btn {
    margin-top: 28px;

    border-color: #ffffff66;

    color: white;
}


.live-card {
    position: absolute;

    right: 7vw;
    top: 35%;

    width: 155px;

    padding: 22px;

    background: #ffffffdd;

    color: #111;

    backdrop-filter: blur(15px);
}


.live-card span,
.live-card small {
    display: block;

    font-size: 8px;

    letter-spacing: 2px;
}


.live-card strong {
    display: block;

    font-size: 48px;

    font-weight: 500;

    margin: 10px 0;
}


/* =====================================================
   STUDENT LIFE
===================================================== */

.student-life {
    background: #10131a;

    color: white;
}


.student-life .eyebrow {
    color: #8dff75;
}


.experience {
    max-width: 900px;

    margin: 80px auto 0;
}


.experience-item {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 35px;

    padding: 35px 0;

    border-top: 1px solid #ffffff1c;
}


.experience-item > span {
    color: #8dff75;

    font-size: 10px;
}


.experience-item h3 {
    font-family: "Space Grotesk";

    font-size: 42px;

    font-weight: 500;
}


.experience-item p {
    max-width: 600px;

    color: #ffffff66;

    margin-top: 8px;

    line-height: 1.6;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery {
    background: #e7e6df;
}


.gallery-grid {
    max-width: 1200px;

    margin: 70px auto 0;

    display: grid;

    grid-template-columns: 1.4fr 0.8fr 0.8fr;

    grid-template-rows: 300px 300px;

    gap: 14px;
}


.gallery-grid figure {
    position: relative;

    overflow: hidden;
}


.gallery-large {
    grid-row: 1 / 3;
}


.gallery-wide {
    grid-column: 2 / 4;
}


.gallery-grid img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.7s;
}


.gallery-grid figure:hover img {
    transform: scale(1.07);
}


.gallery-grid figcaption {
    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    padding: 40px 18px 15px;

    color: white;

    font-size: 9px;

    background: linear-gradient(
        transparent,
        #000b
    );
}


/* =====================================================
   TESTIMONIAL
===================================================== */

.testimonial {
    background: #8dff75;

    padding: 120px 8vw;

    text-align: center;
}


.quote {
    max-width: 1000px;

    margin: 40px auto 15px;

    display: flex;

    gap: 20px;

    text-align: left;
}


.quote > span {
    font-family: Georgia, serif;

    font-size: 100px;

    line-height: 0.5;
}


.quote p {
    font-family: Georgia, serif;

    font-size: 38px;

    font-style: italic;

    line-height: 1.1;
}


.testimonial > small {
    font-size: 8px;

    letter-spacing: 2px;
}


/* =====================================================
   FAQ
===================================================== */

.faq-container {
    max-width: 900px;

    margin: 70px auto;
}


.faq-container details {
    padding: 25px 0;

    border-top: 1px solid #1113;
}


.faq-container details:last-child {
    border-bottom: 1px solid #1113;
}


.faq-container summary {
    display: flex;

    justify-content: space-between;

    cursor: pointer;

    list-style: none;

    font-family: "Space Grotesk";

    font-size: 18px;
}


.faq-container summary::-webkit-details-marker {
    display: none;
}


.faq-container summary b {
    font-size: 22px;

    font-weight: 400;
}


.faq-container details p {
    max-width: 700px;

    color: #777;

    font-size: 14px;

    line-height: 1.6;

    padding-top: 15px;
}


/* =====================================================
   ADMISSIONS
===================================================== */

.admissions {
    position: relative;

    min-height: 700px;

    display: grid;

    place-items: center;

    text-align: center;

    color: white;

    overflow: hidden;

    background: #080a0e;
}


.admission-background {
    position: absolute;

    inset: -10%;

    background:
        radial-gradient(
            circle at 25% 30%,
            #615bff66,
            transparent 30%
        ),
        radial-gradient(
            circle at 75% 70%,
            #8dff7544,
            transparent 25%
        ),
        url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=2000&q=85")
        center / cover;

    filter: saturate(0.55);

    animation: backgroundMove 12s ease-in-out infinite alternate;
}


@keyframes backgroundMove {

    to {
        transform: scale(1.06) translate(
            2%,
            -2%
        );
    }

}


.admissions::after {
    content: "";

    position: absolute;

    inset: 0;

    background: #05070b99;
}


.admission-content {
    position: relative;

    z-index: 2;
}


.admission-content h2 {
    font-family: "Space Grotesk";

    font-size: clamp(70px, 10vw, 140px);

    line-height: 0.8;

    letter-spacing: -8px;

    margin: 25px 0;
}


.admission-content h2 em {
    font-family: Georgia, serif;

    font-weight: 400;
}


.admission-content > p:not(.eyebrow) {
    color: #ffffffaa;

    font-size: 20px;
}


.outline-btn {
    border-color: #ffffff66;

    color: white;
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;
}


.contact-intro h2 {
    font-family: "Space Grotesk";

    font-size: clamp(55px, 7vw, 100px);

    line-height: 0.85;

    letter-spacing: -7px;

    margin: 25px 0;
}


.contact-intro h2 em {
    font-family: Georgia, serif;

    font-weight: 400;
}


.contact-info {
    margin-top: 60px;

    display: grid;

    gap: 22px;

    font-size: 13px;
}


.contact-info b {
    display: block;

    color: #615bff;

    font-size: 8px;

    letter-spacing: 2px;

    margin-bottom: 6px;
}


form {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    align-content: start;
}


form label {
    font-size: 9px;

    letter-spacing: 1px;

    font-weight: 700;
}


input,
textarea,
select {
    width: 100%;

    display: block;

    margin-top: 6px;

    padding: 14px 0;

    border: 0;

    border-bottom: 1px solid #1114;

    background: transparent;

    outline: none;
}


input:focus,
textarea:focus,
select:focus {
    border-color: #615bff;
}


textarea {
    min-height: 120px;

    resize: vertical;
}


.full {
    grid-column: 1 / -1;
}


#formMessage {
    font-size: 11px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #080a0e;

    color: white;

    padding: 70px 7vw 25px;
}


.footer-main {
    max-width: 1200px;

    margin: auto;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;
}


.footer-main > p {
    color: #ffffff55;

    font-size: 13px;
}


.footer-links {
    display: flex;

    gap: 20px;

    font-size: 10px;
}


.footer-links a:hover {
    color: #8dff75;
}


.footer-bottom {
    max-width: 1200px;

    margin: 60px auto 0;

    padding-top: 20px;

    border-top: 1px solid #fff1;

    display: flex;

    justify-content: space-between;

    color: #ffffff44;

    font-size: 8px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    nav {
        position: fixed;

        top: 65px;

        left: 0;
        right: 0;

        padding: 30px;

        display: none;

        flex-direction: column;

        background: #080a0ef7;

        backdrop-filter: blur(15px);
    }

    .header.menu-open nav {
        display: flex;
    }

    .header-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }


    .statistics {
        grid-template-columns: 1fr 1fr;
    }


    .course-grid {
        grid-template-columns: 1fr;
    }


    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            300px
            250px
            250px;
    }

    .gallery-large {
        grid-row: auto;
    }

    .gallery-wide {
        grid-column: 1 / 3;
    }


    .contact {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .footer-main {
        flex-wrap: wrap;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .header {
        padding: 0 20px;
    }


    .hero-content {
        left: 24px;
        right: 24px;
    }


    .hero h1 {
        font-size: 75px;

        letter-spacing: -5px;
    }


    .hero h1 em {
        letter-spacing: -4px;
    }


    .hero-description {
        font-size: 14px;
    }


    .hero-location {
        display: none;
    }


    .hero-buttons {
        flex-wrap: wrap;
    }


    .story {
        display: block;

        padding: 90px 24px;
    }


    .side-number {
        margin-bottom: 35px;
    }


    .story-content h2 {
        font-size: 60px;

        letter-spacing: -5px;
    }


    .large-text {
        font-size: 17px;
    }


    .statistics {
        padding: 45px 20px;
    }


    .stat {
        padding: 15px;
    }


    .stat strong {
        font-size: 36px;
    }


    .section {
        padding: 90px 20px;
    }


    .section-heading h2 {
        font-size: 58px;

        letter-spacing: -4px;
    }


    .campus-video {
        height: 700px;
    }


    .campus-content {
        left: 24px;
        right: 24px;
        bottom: 60px;
    }


    .campus-content h2 {
        font-size: 65px;

        letter-spacing: -5px;
    }


    .live-card {
        right: 20px;

        top: 100px;
    }


    .experience-item {
        grid-template-columns: 45px 1fr;

        gap: 20px;
    }


    .experience-item h3 {
        font-size: 32px;
    }


    .gallery-grid {
        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows:
            300px
            240px
            240px
            240px;
    }


    .gallery-wide {
        grid-column: auto;
    }


    .quote {
        display: block;
    }


    .quote > span {
        display: block;
    }


    .quote p {
        font-size: 28px;
    }


    .admissions {
        min-height: 600px;
    }


    .admission-content h2 {
        font-size: 75px;

        letter-spacing: -5px;
    }


    .contact {
        padding: 90px 20px;
    }


    form {
        grid-template-columns: 1fr;
    }


    .full {
        grid-column: auto;
    }


    .footer-main {
        display: grid;
    }


    .footer-bottom {
        display: grid;

        gap: 10px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

    .hero-video,
    .campus-video video {

        display: none;
    }

}