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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7faf8;
    color: #1f2d24;
    line-height: 1.6;
}

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

button {
    font-family: inherit;
}


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

nav {
    width: 100%;
    min-height: 76px;

    background: #ffffff;
    border-bottom: 1px solid #e8eee9;

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

    padding: 0 40px;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
    text-decoration: none;
}

.school-logo {
    width: 46px;
    height: 46px;

    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1;
}

.school-name {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.4px;

    color: #1f2d24;

    white-space: nowrap;
}

.eco-name {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.3px;

    color: #1d8f58;

    margin-top: 5px;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-links {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(100%, 620px);
    gap: 2px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 1px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    color: #526158;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.nav-links a::before {
    font-size: 18px;
    line-height: 1;
}

.nav-links a[href="index.html"]::before {
    content: "⌂";
}

.nav-links a[href="scan.html"]::before {
    content: "▣";
}

.nav-links a[href="dashboard.html"]::before {
    content: "▦";
}

.nav-links a[href="map.html"]::before {
    content: "◎";
}

.nav-links a[href="about.html"]::before {
    content: "ⓘ";
}

.nav-links a[href="reviews.html"]::before {
    content: "★";
}

.nav-links a:hover {
    color: #1d8f58;
}

.nav-links a.active {
    color: #1d8f58;
    font-weight: 700;
}


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

.hero {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;

    padding: 80px 8%;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(29, 143, 88, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f7faf8 0%,
            #eef7f1 100%
        );
}

.hero-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}


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

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 8px 14px;

    border-radius: 999px;

    background: #e3f4ea;
    color: #1d8f58;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.05;

    letter-spacing: -2px;

    color: #183125;

    margin-bottom: 24px;
}

.hero h1 span {
    color: #1d8f58;
}

.hero-description {
    max-width: 560px;

    font-size: 17px;
    line-height: 1.8;

    color: #627168;

    margin-bottom: 34px;
}


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

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 42px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    background: #1d8f58;
    color: #ffffff;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover {
    background: #167447;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(29, 143, 88, 0.2);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    background: #ffffff;
    color: #1d8f58;

    border: 1px solid #cfe3d6;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.secondary-button:hover {
    background: #f0f8f3;

    transform: translateY(-2px);
}


/* =========================================================
   FEATURES
========================================================= */

.hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 24px;
}

.hero-feature {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #526158;

    font-size: 13px;
    font-weight: 600;
}

.hero-feature-icon {
    width: 30px;
    height: 30px;

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

    border-radius: 8px;

    background: #e3f4ea;

    font-size: 15px;
}


/* =========================================================
   SCANNER CARD
========================================================= */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner-card {
    width: 100%;
    max-width: 430px;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #e1ebe4;

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(31, 60, 44, 0.1);

    position: relative;
}

.scanner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.scanner-title {
    font-size: 13px;
    font-weight: 800;

    color: #1f2d24;
}

.scanner-status {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #1d8f58;

    font-size: 11px;
    font-weight: 700;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #1d8f58;

    animation: statusPulse 1.8s infinite;
}


/* =========================================================
   SCANNER IMAGE
========================================================= */

.scanner-image {
    min-height: 300px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #edf7f0,
            #dcefe4
        );

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

    position: relative;

    overflow: hidden;
}


/* =========================================================
   SCANNER CORNERS
========================================================= */

.scan-corner {
    position: absolute;

    width: 35px;
    height: 35px;

    border-color: #1d8f58;
    border-style: solid;

    z-index: 5;
}

.scan-corner.top-left {
    top: 18px;
    left: 18px;

    border-width: 3px 0 0 3px;
}

.scan-corner.top-right {
    top: 18px;
    right: 18px;

    border-width: 3px 3px 0 0;
}

.scan-corner.bottom-left {
    bottom: 18px;
    left: 18px;

    border-width: 0 0 3px 3px;
}

.scan-corner.bottom-right {
    bottom: 18px;
    right: 18px;

    border-width: 0 3px 3px 0;
}


/* =========================================================
   MOVING SCAN LINE
========================================================= */

.scan-line {
    position: absolute;

    left: 8%;

    width: 84%;
    height: 3px;

    top: 10%;

    background: #1d8f58;

    border-radius: 999px;

    box-shadow:
        0 0 8px rgba(29, 143, 88, 0.8),
        0 0 20px rgba(29, 143, 88, 0.45);

    z-index: 4;

    animation:
        scanMove 2.6s ease-in-out infinite;
}


/* =========================================================
   SCAN GLOW
========================================================= */

.scan-glow {
    position: absolute;

    left: 8%;

    width: 84%;
    height: 80px;

    top: 10%;

    background:
        linear-gradient(
            to bottom,
            rgba(29, 143, 88, 0.16),
            rgba(29, 143, 88, 0)
        );

    pointer-events: none;

    z-index: 3;

    animation:
        glowMove 2.6s ease-in-out infinite;
}


/* =========================================================
   SCANNER OBJECT
========================================================= */

.scanner-object {
    position: relative;

    z-index: 2;

    font-size: 130px;

    filter:
        drop-shadow(
            0 20px 20px
            rgba(0, 0, 0, 0.1)
        );

    animation:
        objectFloat 3s ease-in-out infinite,
        objectGlow 2.6s ease-in-out infinite;
}


/* =========================================================
   SCANNER RESULT
========================================================= */

.scanner-result {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 20px;
}

.scanner-label {
    color: #607066;

    font-size: 12px;
    font-weight: 600;
}

.scanner-value {
    color: #1f2d24;

    font-size: 16px;
    font-weight: 800;
}

.confidence {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 3px;
}

.confidence-value {
    color: #1d8f58;

    font-size: 20px;
    font-weight: 800;
}

.confidence-label {
    color: #7b887f;

    font-size: 10px;
}


/* =========================================================
   PROJECT FOOTER LABEL
========================================================= */

.school-project {
    text-align: center;

    padding: 18px 20px;

    background: #ffffff;

    border-top: 1px solid #e8eee9;

    color: #1d8f58;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.2px;
}


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

section {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 80px 24px;
}

.section-title {
    font-size: 38px;

    line-height: 1.15;

    color: #1f2d24;

    margin-bottom: 14px;
}

.section-description {
    max-width: 650px;

    color: #64736a;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes scanMove {

    0% {
        top: 10%;
        opacity: 0.5;
    }

    50% {
        top: 82%;
        opacity: 1;
    }

    100% {
        top: 10%;
        opacity: 0.5;
    }
}


@keyframes glowMove {

    0% {
        top: 10%;
        opacity: 0;
    }

    50% {
        top: 25%;
        opacity: 1;
    }

    100% {
        top: 10%;
        opacity: 0;
    }
}


@keyframes objectFloat {

    0% {
        transform: translateY(0);
    }

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

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


@keyframes objectGlow {

    0% {
        filter:
            drop-shadow(
                0 20px 20px
                rgba(0, 0, 0, 0.1)
            );
    }

    50% {
        filter:
            drop-shadow(
                0 0 20px
                rgba(29, 143, 88, 0.35)
            )
            drop-shadow(
                0 20px 20px
                rgba(0, 0, 0, 0.08)
            );
    }

    100% {
        filter:
            drop-shadow(
                0 20px 20px
                rgba(0, 0, 0, 0.1)
            );
    }
}


@keyframes statusPulse {

    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    nav {
        padding: 0 20px;
    }

    .nav-links {
        gap: 3px;
    }

    .hero {
        padding: 60px 6%;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-visual {
        order: 2;
    }
}


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

@media (max-width: 700px) {

    nav {
        min-height: 0;
        flex-wrap: wrap;
        row-gap: 8px;
        padding: 10px 16px 8px;
    }

    .school-logo {
        width: 38px;
        height: 38px;
    }

    .school-name {
        font-size: 11px;
        letter-spacing: 0.25px;
    }

    .eco-name {
        font-size: 17px;
        margin-top: 4px;
    }

    .nav-links {
        width: 100%;
    }

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

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -1.5px;
    }

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

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-features {
        gap: 14px;

        flex-direction: column;
    }

    .scanner-card {
        padding: 18px;
    }

    .scanner-image {
        min-height: 240px;
    }

    .scanner-object {
        font-size: 100px;
    }

    .container {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 30px;
    }
}


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

@media (max-width: 520px) {

    .brand {
        gap: 8px;
    }

    .school-logo {
        width: 34px;
        height: 34px;
    }

    .school-name {
        font-size: 9px;
    }

    .eco-name {
        font-size: 15px;
    }

    .nav-links {
        gap: 1px;
    }

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