/* Global Reset */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "fira-mono", monospace;
    font-weight: 400;
    font-style: normal;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Utility */
.flex {
    display: flex;
    align-items: center;
}

.gap-sm {
    gap: 1rem;
}

/* Navbar Wrapper */
.dash-nav {
    width: 100%;
    height: 70px;
    padding: 0 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #fff;
    border-bottom: 1px solid #e5e5e5;

    overflow-x: hidden;
}

/* Logo */
.dash-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Link Container */
.dash-links {
    display: flex;
    gap: 1.5rem;
}

/* Links */
.dash-link {
    text-decoration: none;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    transition: color .2s ease;
}

.dash-link:hover {
    color: #5a3ec8;
}

/* ============ HAMBURGER ICON (hidden on desktop) ============ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all .3s ease;
}

/* ============ MOBILE NAV MENU ============ */
@media (max-width: 768px) {

    /* Hide desktop links */
    .dash-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;

        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;

        padding: 1.2rem 2rem;

        display: none; /* Hidden until hamburger clicked */
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .dash-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* ACTIVE STATE */
    .dash-links.open {
        display: flex;
    }

    /* Hamburger animation (X shape) */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(9px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
    }
}


/* HERO STRUCTURE */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
}

.hero-left { flex: 1.2; }
.hero-right { flex: 1; }

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.25rem;
    color: #444;
    max-width: 420px;
}

.map-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
}

/* MAP WRAPPER — tilt effect */
.map-wrapper {
    width: 100%;
    max-width: 520px;
    perspective: 1000px;
    cursor: pointer;
}

.hero-map {
    width: 100%;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* On hover, gentle elevation */
.map-wrapper:hover .hero-map {
    box-shadow: 0 15px 30px rgba(0,0,0,0.20);
}

/* FULLSCREEN VIDEO OVERLAY */
.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;           /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.youtube-frame {
    width: 100%;
    height: 500px;
    border-radius: 14px;
    background: #000;
}

/* Close button */
.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    font-size: 32px;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
}

@media (max-width: 768px) {

    /* Make hero vertical */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .hero-left, 
    .hero-right {
        flex: none;
        width: 100%;
    }

    /* Title and subtitle scale down */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
    }

    .hero-sub {
        font-size: 1.1rem;
        max-width: 100%;
        margin: 0 auto;
        line-height: 1.5;
    }

    /* Map title center */
    .map-title {
        text-align: center;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    /* Map should be smaller on mobile */
    .hero-map {
        max-width: 90%;
        margin: 0 auto;
        border-radius: 14px;
    }

    /* YouTube iframe responsive */
    .youtube-frame {
        height: 260px;
        border-radius: 10px;
    }

    /* Modal container padding reduced */
    .video-container {
        width: 95%;
        max-width: 100%;
    }

    /* Close button spacing */
    .close-video {
        top: -30px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}


/* SECTION WRAPPER */
.purpose-section {
    padding: 4rem 2rem;
    text-align: center;
}

/* SECTION TITLE */
.purpose-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
}

/* GRID FOR THE FOUR ROLES */
.role-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* INDIVIDUAL TILE */
.role-card {
    width: 220px;
    height: 180px;

    background: #fff;
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #1a1a1a;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 24px rgba(0,0,0,0.15);
}

/* ICON INSIDE THE TILE */
.role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.6rem;
}

/* LABEL */
.role-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* COLOR VARIANTS */
.red { background: #1e3a8a; color: #fff; }
.blue { background: #f5ad9a; }
.green { background: #54acac; }
.yellow { background: #ffe746; }

/* MOBILE */
@media (max-width: 768px) {
    .role-card {
        width: 180px;
        height: 160px;
    }
}

