
/* ==========================================
   NJIA BOYS SENIOR SCHOOL
   Design system: glassmorphism
   ========================================== */

:root {
    color-scheme: dark;

    --bg: #07111f;
    --bg-soft: #0b1830;
    --text: #f4f7ff;
    --muted: #a6b3c9;

    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(255, 255, 255, 0.085);
    --border: rgba(255, 255, 255, 0.13);

    --blue: #72a7ff;
    --violet: #a78bfa;
    --cyan: #6ce4e6;

    --nav: rgba(7, 17, 31, 0.82);
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] {
    color-scheme: light;

    --bg: #f1f5fc;
    --bg-soft: #e9effa;
    --text: #17243b;
    --muted: #596981;

    --glass: rgba(255, 255, 255, 0.66);
    --glass-strong: rgba(255, 255, 255, 0.84);
    --border: rgba(43, 66, 112, 0.15);

    --blue: #315fe9;
    --violet: #7954d9;
    --cyan: #138f9e;

    --nav: rgba(245, 248, 255, 0.88);
    --shadow: 0 25px 80px rgba(48, 67, 112, 0.10);
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    overflow-x: hidden;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(58, 91, 172, 0.09),
            transparent 48%
        ),
        var(--bg);

    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    line-height: 1.7;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 5px;
}

::selection {
    background: var(--blue);
    color: #07111f;
}

.container {
    width: min(1160px, 90%);
    margin-inline: auto;
}

/* BACKGROUND ATMOSPHERE */

.ambient {
    position: fixed;
    z-index: -1;

    width: 350px;
    height: 350px;

    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.20;

    pointer-events: none;
}

.ambient-one {
    top: 8%;
    left: -180px;
    background: #376dff;
}

.ambient-two {
    top: 50%;
    right: -190px;
    background: #854cff;
    opacity: 0.13;
}

/* NAVIGATION */

.site-header {
    position: sticky;
    top: 12px;
    z-index: 100;

    width: min(1200px, 96%);
    margin: 12px auto 0;
}

.navbar {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 12px 18px;

    background: var(--nav);
    border: 1px solid var(--border);
    border-radius: 19px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.brand-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #347dff,
        #8656e9
    );

    color: white;
    font-size: 23px;
    font-weight: 800;

    box-shadow: 0 6px 25px rgba(79, 108, 255, 0.25);
}

.brand-text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.1px;
    line-height: 1.35;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;

    color: var(--muted);
    font-size: 12px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;

    background: var(--blue);
    border-radius: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 39px;
    height: 39px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--glass);
    color: var(--text);

    font-size: 18px;
}

.menu-toggle {
    display: none;
}

/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 19px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 12px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: linear-gradient(
        115deg,
        #347bff,
        #8354ed
    );

    color: #ffffff;

    box-shadow: 0 8px 28px rgba(78, 103, 255, 0.20);
}

.button-primary:hover {
    box-shadow: 0 12px 36px rgba(78, 103, 255, 0.34);
}

.button-glass {
    border-color: var(--border);
    background: var(--glass);
    color: var(--text);
}

.button-glass:hover {
    border-color: var(--blue);
}

/* HERO */

.hero {
    min-height: 720px;

    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 60px;

    padding-top: 85px;
    padding-bottom: 105px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 50px;

    background: var(--glass);

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #62e5b0;

    box-shadow: 0 0 12px #62e5b0;
}

.motto {
    margin-top: 30px;
    margin-bottom: 15px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(45px, 5.6vw, 76px);
    font-weight: 800;
    line-height: 1.08;

    letter-spacing: -4px;
}

.gradient-text {
    background: linear-gradient(
        110deg,
        #7db8ff,
        #a78bfa 58%,
        #68dfdc
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.3px var(--text);
}

.hero-description {
    max-width: 510px;

    margin: 24px 0;

    color: var(--muted);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-caption {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 35px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.caption-line {
    width: 34px;
    height: 1px;
    background: var(--blue);
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-glass-card {
    position: relative;
    z-index: 2;

    padding: 27px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 27px;

    background: linear-gradient(
        145deg,
        var(--glass-strong),
        var(--glass)
    );

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow: var(--shadow);

    transform-style: preserve-3d;

    animation: floatCard 7s ease-in-out infinite;

    transition:
        transform 0.18s ease-out,
        background 0.3s ease;
}

.hero-glass-card::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -80px;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: #605aff;
    filter: blur(90px);
    opacity: 0.28;

    pointer-events: none;
}

.card-top,
.card-bottom {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-label,
.card-bottom {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.card-symbol {
    color: var(--blue);
    font-size: 23px;
}

.school-emblem {
    position: relative;

    display: grid;
    place-items: center;

    margin: 38px auto 28px;

    width: 175px;
    height: 175px;

    border: 1px solid rgba(117, 155, 255, 0.45);
    border-radius: 50%;

    box-shadow:
        0 0 45px rgba(73, 112, 255, 0.12),
        inset 0 0 35px rgba(73, 112, 255, 0.10);
}

.school-emblem::before,
.school-emblem::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(117, 155, 255, 0.25);
    border-radius: 50%;
}

.school-emblem::before {
    inset: 15px;
}

.school-emblem::after {
    inset: 31px;
}

.emblem-ring {
    width: 100px;
    height: 100px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #367dff,
        #965be8
    );

    box-shadow: 0 0 45px rgba(88, 106, 255, 0.4);
}

.emblem-inner {
    width: 83px;
    height: 83px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;

    color: white;
    font-size: 44px;
    font-weight: 800;
}

.card-title {
    position: relative;
    text-align: center;
}

.card-title > span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.card-title h2 {
    margin: 7px 0;
    font-size: 27px;
    letter-spacing: -1px;
}

.card-title p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.card-bottom {
    margin-top: 27px;
    padding-top: 18px;

    border-top: 1px solid var(--border);
    color: var(--muted);
}

.tiny-dot {
    color: var(--blue);
}

.visual-orb {
    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 50%;
    filter: blur(1px);

    pointer-events: none;
}

.orb-one {
    top: -25px;
    right: -30px;

    background: radial-gradient(
        circle at 30% 30%,
        rgba(100, 135, 255, 0.35),
        transparent 70%
    );
}

.orb-two {
    bottom: -30px;
    left: -40px;

    background: radial-gradient(
        circle at 30% 30%,
        rgba(168, 85, 247, 0.25),
        transparent 70%
    );
}

.floating-chip {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 16px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--nav);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: var(--shadow);

    animation: floatChip 5s ease-in-out infinite;
}

.floating-chip strong,
.floating-chip small {
    display: block;
}

.floating-chip strong {
    font-size: 10px;
}

.floating-chip small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.chip-icon {
    color: var(--blue);
    font-size: 22px;
}

.chip-top {
    top: 16%;
    right: -35px;
}

.chip-bottom {
    bottom: 12%;
    left: -40px;
    animation-delay: -2.5s;
}

/* SECTIONS */

.section {
    padding-top: 90px;
    padding-bottom: 50px;
}

.section-heading {
    max-width: 690px;
    margin: 0 auto 42px;

    text-align: center;
}

.section-kicker {
    margin: 0 0 15px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2,
.life-content h2,
.contact-panel h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -1.8px;
}

.section-heading > p:last-child,
.life-content > p:not(.section-kicker),
.contact-panel > p:not(.section-kicker) {
    color: var(--muted);
    font-size: 14px;
}

.section-heading > p:last-child {
    max-width: 590px;
    margin: 17px auto 0;
}

/* GLASS PANELS */

.glass-panel {
    border: 1px solid var(--border);
    border-radius: 21px;

    background: var(--glass);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--blue);
    transform: translateY(-5px);
}

.feature-grid,
.academic-grid,
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;
    padding: 27px;
    overflow: hidden;
}

.feature-icon,
.portal-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        rgba(60, 125, 255, 0.20),
        rgba(154, 86, 240, 0.15)
    );

    color: var(--blue);
    font-size: 25px;
}

.feature-number {
    position: absolute;
    top: 18px;
    right: 22px;

    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.feature-card h3,
.academic-card h3,
.portal-card h3 {
    margin: 21px 0 8px;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.feature-card > p:not(.feature-number),
.academic-card > p,
.portal-card > p {
    color: var(--muted);
    font-size: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;

    padding: 0;
    border: 0;

    background: transparent;
    color: var(--blue);

    font-size: 11px;
    font-weight: 700;
}

.text-link:hover {
    color: var(--violet);
}

/* ACADEMICS */

.academic-card {
    position: relative;
    padding: 26px;
    min-height: 230px;
}

.academic-index {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.academic-icon {
    display: block;
    margin-top: 22px;

    color: var(--blue);
    font-size: 28px;
    font-weight: 700;
}

/* SCHOOL LIFE */

.life-panel {
    position: relative;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 35px;

    min-height: 360px;
    padding: 45px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 27px;

    background: linear-gradient(
        125deg,
        rgba(62, 111, 236, 0.10),
        var(--glass),
        rgba(143, 83, 231, 0.10)
    );

    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.life-content {
    position: relative;
    z-index: 2;
}

.life-content > p:not(.section-kicker) {
    max-width: 480px;
    margin: 18px 0 24px;
}

.life-decoration {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 250px;
}

.life-ring {
    position: absolute;

    width: 240px;
    height: 240px;

    border: 1px solid rgba(110, 151, 255, 0.30);
    border-radius: 50%;
}

.ring-two {
    width: 180px;
    height: 180px;

    border-color: rgba(161, 117, 255, 0.40);
}

.life-core {
    width: 100px;
    height: 100px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 28px;

    background: linear-gradient(135deg, #367dff, #9358eb);

    color: white;
    font-size: 47px;
    font-weight: 800;

    box-shadow: 0 0 65px rgba(93, 109, 255, 0.35);

    transform: rotate(-8deg);
}

.life-core span {
    font-size: 20px;
}

/* PORTAL */

.portal-card {
    padding: 27px;
}

.portal-card .portal-icon {
    font-size: 24px;
}

/* CONTACT */

.contact-panel {
    padding: 65px 25px;

    text-align: center;

    border: 1px solid var(--border);
    border-radius: 27px;

    background: linear-gradient(
        130deg,
        rgba(54, 114, 255, 0.12),
        var(--glass),
        rgba(146, 78, 232, 0.12)
    );

    box-shadow: var(--shadow);
}

.contact-panel > p:not(.section-kicker) {
    max-width: 570px;
    margin: 18px auto 24px;
}

/* FOOTER */

.site-footer {
    margin-top: 90px;
    padding: 27px 0;

    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-motto {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.copyright {
    color: var(--muted);
    font-size: 11px;
}

/* SCROLL REVEALS */

.reveal {
    opacity: 0;
    transform: translateY(26px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MOTION */

@keyframes floatCard {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -9px;
    }
}

@keyframes floatChip {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

/* RESPONSIVE TABLETS */

@media (max-width: 1000px) {
    .navbar {
        gap: 14px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero {
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(43px, 6vw, 64px);
    }

    .chip-top {
        right: -12px;
    }

    .chip-bottom {
        left: -12px;
    }
}

/* MOBILE NAVIGATION */

@media (max-width: 760px) {
    .site-header {
        width: 94%;
    }

    .navbar {
        position: relative;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        font-size: 12px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 40px;
        height: 40px;

        margin-left: auto;

        border: 1px solid var(--border);
        border-radius: 11px;

        background: var(--glass);
    }

    .menu-toggle span {
        display: block;

        width: 17px;
        height: 2px;

        margin-inline: auto;

        background: var(--text);
        border-radius: 5px;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px;

        border: 1px solid var(--border);
        border-radius: 16px;

        background: var(--nav);

        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);

        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px;
        font-size: 13px;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-actions {
        gap: 7px;
    }

    .nav-portal {
        display: none;
    }

    .hero {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 65px;

        padding-top: 65px;
        padding-bottom: 55px;
    }

    .hero h1 {
        font-size: clamp(43px, 10vw, 65px);
        letter-spacing: -2.5px;
    }

    .hero-visual {
        width: min(100%, 500px);
        margin-inline: auto;
    }

    .section {
        padding-top: 65px;
        padding-bottom: 30px;
    }

    .feature-grid,
    .academic-grid,
    .portal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .life-panel {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .life-decoration {
        min-height: 220px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

/* SMALL PHONES */

@media (max-width: 520px) {
    .container {
        width: 90%;
    }

    .hero {
        padding-top: 48px;
        gap: 55px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-glass-card {
        padding: 21px;
    }

    .school-emblem {
        width: 150px;
        height: 150px;
    }

    .emblem-ring {
        width: 88px;
        height: 88px;
    }

    .emblem-inner {
        width: 73px;
        height: 73px;
        font-size: 37px;
    }

    .chip-top {
        right: -5px;
    }

    .chip-bottom {
        left: -5px;
    }

    .floating-chip {
        padding: 10px;
    }

    .feature-grid,
    .academic-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .life-content h2,
    .contact-panel h2 {
        font-size: 33px;
    }

    .life-panel {
        padding: 25px;
    }

    .contact-panel {
        padding: 45px 20px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
