@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');

:root {
    --bg-deep: #08080a;
    --bg-surface: #121214;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b5;
    /* Lighter grey for better readability */
    --glass: rgba(255, 255, 255, 0.08);
    /* More visible glass */
    --glass-border: rgba(255, 255, 255, 0.15);
    /* Stronger border */
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --color-accent: #ccff00;
    /* Neon Lime Green Brand Color */
}

/* Neon Pulse Animation for Seed Funding Card */
@keyframes neon-border-pulse {
    0% {
        box-shadow: 0 0 10px rgba(204, 255, 0, 0.2), inset 0 0 10px rgba(204, 255, 0, 0.1);
        border-color: rgba(204, 255, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(204, 255, 0, 0.5), inset 0 0 20px rgba(204, 255, 0, 0.2);
        border-color: rgba(204, 255, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(204, 255, 0, 0.2), inset 0 0 10px rgba(204, 255, 0, 0.1);
        border-color: rgba(204, 255, 0, 0.4);
    }
}

.neon-card {
    border: 1px solid var(--color-accent) !important;
    animation: neon-border-pulse 3s infinite ease-in-out;
    background: rgba(204, 255, 0, 0.05) !important;
}

/* Neon Marker Pulse */
@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(204, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 255, 0, 0);
    }
}

.custom-div-icon div {
    background-color: var(--color-accent) !important;
    box-shadow: 0 0 15px var(--color-accent) !important;
    border: 2px solid #000 !important;
    animation: marker-pulse 2s infinite;
}

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

body {
    background-color: var(--bg-deep);
    background-image: linear-gradient(to bottom, #0a0a0c, #000000);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

/* --- Reveal Animation --- */
/* Elements are visible by default to prevent "pitch dark" issues if JS fails */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

/* Only hide if the 'hidden' class is applied by JS */
.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 900;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-top: 80px;
    padding-bottom: 120px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    z-index: -2;
}

.hero h1 {
    font-size: clamp(56px, 12vw, 120px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -6px;
    margin-bottom: 48px;
}

.hero p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 64px;
    max-width: 700px;
}

.hero-aurora {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: nebulaPulse 12s infinite alternate ease-in-out;
}

@keyframes nebulaPulse {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- Sections --- */
section {
    padding: 180px 0;
}

.section-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 32px;
    display: block;
}

.section-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: -3px;
    line-height: 1;
}

/* --- Glass Cards (The 'Best' Style) --- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 32px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 100%;
    transition: 0.7s;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 24px 0 16px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 20px 48px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-white {
    background: #fff;
    color: #000;
}

.btn-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
}

/* --- Original Timeline (Process) --- */
.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 23px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    background: var(--bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--text-secondary);
    z-index: 1;
    flex-shrink: 0;
    font-size: 14px;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* --- Roadmap Timeline (Benefits - Xvector Style) --- */
/* --- Roadmap Timeline (Benefits - Clean & Smooth) --- */
.roadmap-timeline {
    position: relative;
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 20px 0;
}

/* The vertical track */
.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle base line */
    transform: translateX(-50%);
    border-radius: 2px;
}

/* The active progress fill */
.roadmap-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-accent), #60a5fa);
    /* Gradient for smoothness */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    /* Stronger glow */
    transform: translateX(-50%);
    z-index: 1;
    transition: height 0.1s linear;
    border-radius: 2px;
}

.roadmap-item {
    position: relative;
    margin-bottom: 120px;
    /* More breathing room */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roadmap-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 50%;
}

.roadmap-item:nth-child(odd) {
    justify-content: flex-end;
    padding-left: 50%;
}

/* Clean, Minimal Dot Marker */
.roadmap-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    /* Center vertically relative to item */
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--bg-deep);
    /* Match bg to hide line behind */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 0 4px var(--bg-deep);
    /* Spacing from line */
}

/* Active State for Marker */
.roadmap-item.active .roadmap-marker {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--bg-deep), 0 0 20px var(--color-accent);
    transform: translate(-50%, -50%) scale(1.5);
}

/* Content Card Styling */
.roadmap-content {
    width: 80%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Thinner, subtler border */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Effect for Cards */
.roadmap-content:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Positioning content */
.roadmap-item:nth-child(even) .roadmap-content {
    margin-right: 60px;
    /* Distance from center line */
    text-align: right;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.roadmap-item:nth-child(odd) .roadmap-content {
    margin-left: 60px;
    /* Distance from center line */
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.roadmap-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    /* To align icon if added here */
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.roadmap-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Icon styling inside card */
.roadmap-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* --- Grid Systems --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* --- New Components --- */
.pill-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

.country-tag {
    padding: 15px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    transition: all 0.3s;
}

.country-tag:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-5px);
}

/* Leaflet Map Dark Override */
.leaflet-container {
    background: #050505 !important;
    font-family: 'Inter', sans-serif !important;
}

/* FinnoFest Section Grid */
.finnofest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.finnofest-image {
    height: 400px;
    background-image: url('assets/finnofest.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.9;
    border-radius: 24px;
    /* Decoupled from .glass-card basics */
    background-color: #1a1a1a;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Hover effect removed entirely for finnofest-image */

/* --- Mobile --- */
/* --- Mobile Navigation & Hamburger --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    /* Above nav backdrop */
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobile Breakpoint --- */
@media (max-width: 768px) {

    /* Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        /* Behind hamburger */
    }

    .nav-links.active {
        transform: translateY(0);
    }

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

    /* Hero */
    .hero {
        padding-top: 120px;
        /* More space for fixed header */
        align-items: center;
        /* Center content vertically if needed, or stick to flex-end */
    }

    .hero h1 {
        font-size: 44px;
        /* Slightly adjusted */
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 24px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 40px;
    }

    /* General Layout */
    .container {
        padding: 0 20px;
        /* Reduced side padding */
    }

    section {
        padding: 80px 0;
        /* Reduced vertical padding */
    }

    .section-title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-6 {
        grid-template-columns: 1fr;
    }

    /* Roadmap Timeline (Mobile Reset) */
    .roadmap-timeline::before {
        left: 20px;
        /* Move line to left */
    }

    .roadmap-progress {
        left: 20px;
    }

    .roadmap-item {
        margin-bottom: 60px;
        flex-direction: column !important;
        /* Force column for both odd/even */
        align-items: flex-start !important;
        padding: 0 !important;
        /* Remove alternating padding */
        padding-left: 50px !important;
        /* Space for line */
        width: 100% !important;
        display: flex !important;
    }

    .roadmap-item:nth-child(even) .roadmap-content,
    .roadmap-item:nth-child(odd) .roadmap-content {
        margin: 0 !important;
        text-align: left !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .roadmap-marker {
        left: 20px;
        /* Align marker with line */
    }

    /* Footer / Final Call */
    #cta p {
        font-size: 20px !important;
    }

    /* Map */
    #map {
        height: 300px !important;
    }

    /* Cohort Timeline (Gantt) - Scrollable container */
    section#cohort .container>div {
        overflow-x: auto;
        padding-bottom: 20px;
    }

    /* Adjust simple timeline items */
    .timeline-item {
        flex-direction: column;
        gap: 20px;
    }

    /* FinnoFest Mobile Optimizations */
    .finnofest-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .finnofest-image {
        height: 250px;
        order: -1;
        /* Ensure image is on top */
        width: 100%;
        margin-bottom: 10px;
    }
}

/* --- Application Sliding Drawer --- */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.drawer.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.drawer-section {
    margin-bottom: 40px;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: rgba(204, 255, 0, 0.05);
}

.file-upload {
    position: relative;
    padding: 12px;
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.form-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 15px;
    text-align: center;
}

/* --- Banner Animations --- */
@keyframes bannerGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }

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

@keyframes bannerFloat {
    0% {
        transform: translateY(0);
    }

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

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

@keyframes neonPulse {
    0% {
        text-shadow: 0 0 10px rgba(204, 255, 0, 0);
    }

    50% {
        text-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
    }

    100% {
        text-shadow: 0 0 10px rgba(204, 255, 0, 0);
    }
}

@keyframes gridDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}