/* Satoshi (Indian Type Foundry, Fontshare free licence), self-hosted */
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* =========================================================================
   CSS RESET & VARIABLES
   ========================================================================= */
   :root {
    /* Color Palette */
    --c-bg: #05080f;             /* Deep night blue */
    --c-bg-surface: #0a0f1d;     /* Slightly lighter for sections */
    --c-bg-surface-elevated: rgba(255, 255, 255, 0.03); /* Card backgrounds */
    --c-bg-surface-hover: rgba(255, 255, 255, 0.06);
    
    --c-text-main: #f0f2f5;      /* Off-white */
    --c-text-muted: #94a3b8;     /* Soft grey-blue */
    --c-text-dark: #cbd5e1;
    
    --c-accent-yellow: #fdfadd;  /* Starlight yellow */
    --c-accent-blue: #93c5fd;    /* Soft ice blue */
    --c-border: rgba(255, 255, 255, 0.08);
    --c-border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Satoshi', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1100px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --section-spacing: clamp(48px, 7vw, 88px); /* Dinamik boşluk (Mobil/Desktop uyumu) */
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Variables */
:root.light-mode {
    --c-bg: #ffffff;
    --c-bg-surface: #f0f2f5;
    --c-bg-surface-elevated: rgba(0, 0, 0, 0.03);
    --c-bg-surface-hover: rgba(0, 0, 0, 0.06);
    
    --c-text-main: #05080f; /* Lacivert text */
    --c-text-muted: #475569;
    --c-text-dark: #1e293b;
    
    --c-accent-yellow: #d97706; 
    --c-accent-blue: #2563eb;
    --c-border: rgba(0, 0, 0, 0.1);
    --c-border-hover: rgba(0, 0, 0, 0.2);
}

:root.light-mode #tsparticles {
    filter: invert(1);
}

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

/* Keyboard focus — visible on every interactive element, on-brand accent */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--c-accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    background-color: var(--c-bg);
    color: var(--c-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

body {
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--c-text-main);
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--c-text-muted);
    font-size: 1.05rem; /* Genel gövde metni okunaklılığı biraz artırıldı */
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-spacing {
    padding: calc(var(--section-spacing) * 0.6) 0;
}

/* Section divider: no solid band (it would cover the fixed particle sky), just a
   hairline of light with a star in the middle. When the section scrolls in, the
   line opens outward from the star. JS adds .divider-ready/.is-drawn; without JS
   or with reduced motion the line is simply shown. */
.has-divider { position: relative; }
.has-divider::before,
.has-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    pointer-events: none;
}
.has-divider::before {
    width: min(var(--max-width), 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-accent-blue) 50%, transparent);
    opacity: 0.45;
    transform: translateX(-50%);
}
.has-divider::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-text-main);
    box-shadow: 0 0 10px 2px rgba(147, 197, 253, 0.45);
    transform: translate(-50%, -50%);
}
@media (prefers-reduced-motion: no-preference) {
    .has-divider.divider-ready::before {
        transform: translateX(-50%) scaleX(0);
        transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    }
    .has-divider.divider-ready::after {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
        transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .has-divider.divider-ready.is-drawn::before { transform: translateX(-50%) scaleX(1); }
    .has-divider.divider-ready.is-drawn::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.text-center { text-align: center; }
.highlight { color: var(--c-accent-blue); }

/* =========================================================================
   TSPARTICLES BACKGROUND
   ========================================================================= */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Keeps it behind ambient glows and everything else */
    pointer-events: none; /* Allows clicks to pass through to the rest of the site */
}

/* =========================================================================
   AMBIENT GLOW EFFECTS (Low CPU usage)
   ========================================================================= */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}
.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.15) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}
.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 250, 221, 0.08) 0%, transparent 70%);
    bottom: 20%;
    right: -15%;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px; /* Pill shape */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--c-text-main);
    color: var(--c-bg);
}
.btn-primary:hover {
    background-color: var(--c-accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(147, 197, 253, 0.2);
}

.btn-ghost {
    background-color: transparent;
    border-color: var(--c-border);
    color: var(--c-text-main);
}
.btn-ghost:hover {
    border-color: var(--c-text-main);
    background-color: var(--c-bg-surface-elevated);
}

.btn-secondary {
    background-color: var(--c-bg-surface-elevated);
    border-color: var(--c-border);
    color: var(--c-text-main);
}
.btn-secondary:hover {
    background-color: var(--c-bg-surface-hover);
    border-color: var(--c-border-hover);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

.btn-cta-lg {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}
@media (max-width: 420px) {
    .btn-cta-lg {
        font-size: 0.95rem;
        padding: 0.85rem 1.5rem;
    }
}

/* =========================================================================
   NAVBAR
   Transparent at the top of the page; once scrolled it shrinks into a floating
   glass capsule. Hides while scrolling down, comes back on scroll up.
   Note: .navbar only gets a transform while hidden and .nav-container only gets
   backdrop-filter while scrolled; both would otherwise trap the fixed mobile
   menu inside them, so .menu-open switches them off.
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 12px 16px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.nav-hidden { transform: translateY(-120%); }

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px 8px 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease,
        border-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled .nav-container {
    max-width: 860px;
    background-color: rgba(8, 12, 24, 0.9);
    border-color: var(--c-border);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.35);
}
:root.light-mode .navbar.scrolled .nav-container {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 32px rgba(15, 23, 42, 0.08);
}
@media (prefers-reduced-transparency: reduce) {
    .navbar.scrolled .nav-container { background-color: var(--c-bg); }
}

.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 200; /* stays visible above the open mobile menu */
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.4s ease;
}
.navbar.scrolled .logo-img { height: 40px; }

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--c-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--c-text-main); }

/* Star under the current section's link; JS moves it with --ind-x */
.nav-indicator {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-accent-blue);
    box-shadow: 0 0 8px 2px rgba(147, 197, 253, 0.5);
    transform: translateX(var(--ind-x, 0px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.nav-indicator.is-on { opacity: 1; }

.nav-links .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--c-border-hover);
    border-radius: 100px;
    color: var(--c-text-main);
}
.nav-links .nav-btn:hover,
.nav-links .nav-btn.is-active {
    background-color: var(--c-text-main);
    border-color: var(--c-text-main);
    color: var(--c-bg);
}

/* "Has an upcoming event": a live star inside the button */
.nav-links a.has-event::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-accent-blue);
    animation: nav-event-pulse 1.8s ease-in-out infinite;
}
@keyframes nav-event-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.55); }
    50% { box-shadow: 0 0 0 5px rgba(147, 197, 253, 0); }
}

.theme-switch {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}
.theme-switch:hover {
    color: var(--c-text-main);
    background: var(--c-bg-surface-hover);
}
.theme-switch svg {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
/* Dark mode shows the sun (switch to light), light mode shows the moon */
.theme-switch .moon-icon { transform: translateY(20px) rotate(45deg); opacity: 0; }
.theme-switch .sun-icon { transform: translateY(0) rotate(0); opacity: 1; }
:root.light-mode .theme-switch .sun-icon { transform: translateY(-20px) rotate(-45deg); opacity: 0; }
:root.light-mode .theme-switch .moon-icon { transform: translateY(0) rotate(0); opacity: 1; }

:root.light-mode .logo-img,
:root.light-mode .logo-img-footer,
:root.light-mode .hero-logo-img {
    filter: invert(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 200;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--c-text-main);
    position: absolute;
    left: 10px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-btn span:first-child { top: 17px; }
.mobile-menu-btn span:last-child { top: 25px; }
.mobile-menu-btn.active span:first-child { transform: translateY(4px) rotate(45deg); }
.mobile-menu-btn.active span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 768px) {
    .navbar { padding: 10px 12px; }
    .nav-container { padding: 4px 4px 4px 12px; }
    .logo-img { height: 40px; }

    /* Fullscreen menu: big left-aligned list that rises in item by item */
    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 0 2rem;
        background-color: rgba(5, 8, 15, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0s linear 0.35s;
        z-index: 150;
    }
    :root.light-mode .nav-links { background-color: rgba(255, 255, 255, 0.94); }
    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.35s ease;
    }
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links.show li { opacity: 1; transform: none; }
    .nav-links.show li:nth-child(3) { transition-delay: 0.05s; }
    .nav-links.show li:nth-child(4) { transition-delay: 0.1s; }
    .nav-links.show li:nth-child(5) { transition-delay: 0.15s; }
    .nav-links.show li:nth-child(6) { transition-delay: 0.2s; }
    .nav-links.show li:nth-child(7) { transition-delay: 0.25s; }
    .nav-links.show li:nth-child(8) { transition-delay: 0.3s; }

    .nav-links a {
        padding: 0.9rem 0;
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: -0.02em;
        color: var(--c-text-main);
        border-bottom: 1px solid var(--c-border);
    }
    .nav-links .nav-btn {
        margin: 1.75rem 0 0;
        padding: 0.8rem 1.6rem;
        font-family: var(--font-body);
        font-size: 1.05rem;
        border-bottom: 1px solid var(--c-border-hover);
    }
    .nav-links a.is-active:not(.nav-btn) { color: var(--c-accent-blue); }
    .theme-switch { margin: 1rem 0 0 -8px; }
    .nav-indicator { display: none; }
    .mobile-menu-btn { display: block; }

    .menu-open .navbar { transform: none; }
    .menu-open .navbar .nav-container {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: transparent;
        border-color: transparent;
        box-shadow: none;
    }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 82vh;
    min-height: 82dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px; /* Offset nav */
}

.hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent-blue);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-logo-img {
    height: clamp(160px, 35vw, 320px);
    width: auto;
    max-width: 90vw;
    margin: 0 auto 1.5rem auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem); /* Daha zarif ve rafine boyut */
    max-width: 550px;
    margin: 0 auto 2.25rem auto;
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-text-dark); /* Koyu arkaplanda az daha görünürlük */
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn { white-space: nowrap; }

/* =========================================================================
   VISION / MANIFESTO
   ========================================================================= */
.vision-container {
    max-width: 800px; /* narrower for reading */
}

.manifesto-block {
    margin-bottom: 1.75rem;
}

/* Scroll-reveal: JS adds .reveal-ready right before observing an element, so
   content stays visible by default if JS never runs. Motion is also gated
   behind prefers-reduced-motion, so reduced-motion users just see it settled. */
@media (prefers-reduced-motion: no-preference) {
    .fade-in.reveal-ready {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .fade-in.reveal-ready.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.manifesto .lead-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--c-text-main);
    font-family: var(--font-heading);
    font-weight: 400; /* Biraz daha vurgulu */
    line-height: 1.5;
}

.manifesto-block p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    margin-bottom: 1.1rem;
    line-height: 1.65;
}

.divider-block {
    padding: 1.75rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    margin: 2rem 0;
}
.divider-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--c-accent-yellow);
}
.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .vision-grid { grid-template-columns: repeat(3, 1fr); }
}
.vision-col {
    color: var(--c-text-muted);
    font-size: 1rem;
}
.vision-col strong {
    color: var(--c-text-main);
    font-weight: 500;
}

.manifesto-close {
    margin-top: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--c-accent-blue);
}
.manifesto-block .close-lead {
    font-size: 1.05rem;
    color: var(--c-text-main);
    margin-bottom: 0.4rem;
}
.manifesto-block .close-statement {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--c-text-main);
    margin: 0;
}

/* =========================================================================
   9 CANLI OLMAK (CARDS)
   ========================================================================= */
/* Plain numbered list, not cards: the Community section right below already
   uses a card grid, so this one stays typographic to keep the two distinct. */
.meaning-list {
    list-style: none;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 4rem;
}
@media (min-width: 768px) {
    .meaning-list { grid-template-columns: repeat(2, 1fr); }
    /* odd count: the last value spans the full row instead of leaving a gap */
    .meaning-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.meaning-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    column-gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--c-border);
}

.meaning-num {
    grid-row: span 2;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--c-accent-blue);
    font-variant-numeric: tabular-nums;
    padding-top: 0.3rem;
}

.meaning-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}
.meaning-item:hover h3 { color: var(--c-accent-yellow); }

.meaning-item p {
    margin: 0;
    max-width: 52ch;
}

/* =========================================================================
   COMMUNITY FEATURES
   ========================================================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
}
@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .info-card:nth-child(1) { grid-column: span 2; }
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-border-hover);
    box-shadow: 0 16px 32px rgba(147, 197, 253, 0.08);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.info-card:hover .card-glow {
    opacity: 1;
}

.info-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--c-text-main);
}
.info-card p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* =========================================================================
   COUNTDOWN & EVENTS
   ========================================================================= */
.countdown-container {
    background: var(--c-bg-surface-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--c-border);
    margin-bottom: 3rem;
}

.countdown-container[hidden] { display: none; }

.countdown-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--c-accent-blue);
}

.countdown-event-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--c-text-main);
    margin-bottom: 1.5rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.time-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1;
    color: var(--c-text-main);
    font-variant-numeric: tabular-nums;
}

.time-label {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.time-separator {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--c-text-muted);
    opacity: 0.3;
    transform: translateY(-10px);
}

@media (max-width: 600px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    .time-box { min-width: 50px; }
    .time-separator { font-size: 1.5rem; }
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.event-card {
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-fast);
}
.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-border-hover);
    background: var(--c-bg-surface-elevated);
    box-shadow: 0 16px 32px rgba(147, 197, 253, 0.08);
}

/* Event cards with photos: image column + text column, side by side */
.event-card.has-image {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.event-card.has-image .event-content {
    position: relative; /* anchors the "Yakında" badge to the text column, not the photo */
    flex: 1 1 50%;
    min-width: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Instagram-style image carousel — equal footing with the text column */
.event-media {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden;
    background: var(--c-bg-surface-elevated);
}

.event-media-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.event-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.event-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 15, 25, 0.55);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    font-size: 1.1rem;
    line-height: 1;
}
.event-media-nav:hover {
    background: rgba(10, 15, 25, 0.8);
}
.event-media-next { right: 10px; }
.event-media-prev { left: 10px; }
.event-media:hover .event-media-nav {
    opacity: 1;
}
.event-media-nav.is-hidden {
    display: none;
}

/* Touch devices can't hover — keep controls visible at reduced opacity */
@media (hover: none) {
    .event-media-nav {
        opacity: 0.85;
    }
}

.event-media-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.event-media-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}
.event-media-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 700px) {
    .event-card.has-image {
        flex-direction: column;
    }
    .event-media {
        flex: none;
        width: 100%;
        aspect-ratio: 4 / 5;
    }
}

.event-status {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-upcoming {
    background: rgba(147, 197, 253, 0.1);
    color: var(--c-accent-blue);
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}
.event-meta span { display: flex; align-items: center; }
.event-title { font-size: 1.6rem; margin-bottom: 0.5rem; padding-right: 80px;}
.event-desc { font-size: 0.95rem; margin-bottom: 2rem; max-width: 60ch;}
/* the card is a flex column, so without this the button stretches edge to edge */
.event-content .btn { align-self: flex-start; }

/* Empty State */
.empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-md);
}
.empty-text { font-style: italic; opacity: 0.7; margin: 0; }

/* =========================================================================
   NETWORK SECTION (constellation)
   ========================================================================= */
.network-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .network-layout { grid-template-columns: 5fr 6fr; gap: 3rem; }
}

.network-text p { font-size: 1.1rem; max-width: 46ch; }
.network-note { color: var(--c-accent-yellow); margin-bottom: 0; }

.constellation {
    position: relative;
    aspect-ratio: 16 / 11;
    width: 100%;
    max-width: 520px;
    margin: 1.5rem auto; /* room for labels above the top star / below the bottom one */
}
@media (max-width: 600px) {
    .constellation { aspect-ratio: 1 / 1; }
}

.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.constellation-lines line {
    stroke: var(--c-accent-blue);
    stroke-opacity: 0.45;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.constellation-lines .link-outer {
    stroke: var(--c-text-muted);
    stroke-opacity: 0.2;
}

.constellation-nodes { list-style: none; }

/* Each node is a zero-size anchor at (--x, --y); the star and label hang off it. */
.node {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
}
.node::before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c-text-main);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--c-bg);
}

.node-label {
    position: absolute;
    font-size: 0.95rem;
    color: var(--c-text-dark);
    white-space: nowrap;
}
/* labels point inward so they never spill out of the box */
.node-start .node-label { left: -4px; }
.node-end .node-label { right: -4px; }
.node-above .node-label { bottom: 10px; }
.node-below .node-label { top: 10px; }

/* center label sits to the right, where no link passes */
.node-center .node-label {
    left: 18px;
    top: 0;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--c-accent-yellow);
}
.node-center::before {
    width: 16px;
    height: 16px;
    background: var(--c-accent-yellow);
    box-shadow: 0 0 0 6px var(--c-bg), 0 0 24px rgba(253, 250, 221, 0.35);
}

/* Once in view: links from the center appear one by one, then the outer ones.
   (Opacity only: dash-offset "drawing" breaks with non-scaling strokes.) */
@media (prefers-reduced-motion: no-preference) {
    .constellation.reveal-ready .constellation-lines line {
        opacity: 0;
        transition: opacity 0.6s ease;
    }
    .constellation.reveal-ready.is-visible .constellation-lines line { opacity: 1; }
    .constellation.reveal-ready .constellation-lines line:nth-child(3) { transition-delay: 0.15s; }
    .constellation.reveal-ready .constellation-lines line:nth-child(4) { transition-delay: 0.3s; }
    .constellation.reveal-ready .constellation-lines line:nth-child(5) { transition-delay: 0.45s; }
    .constellation.reveal-ready .constellation-lines line:nth-child(6) { transition-delay: 0.6s; }
    .constellation.reveal-ready .constellation-lines .link-outer { transition-delay: 0.9s; }
}

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-cta-wrap {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
@media (min-width: 600px) {
    .newsletter-form { flex-direction: row; }
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 100px;
    padding: 1rem 1.5rem;
    color: var(--c-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}
.newsletter-form input:focus {
    border-color: var(--c-text-main);
}
.newsletter-form input::placeholder {
    color: var(--c-text-muted);
    opacity: 0.6;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: block; /* will toggle via hidden attribute */
}
.form-message.success {
    background: rgba(147, 197, 253, 0.1);
    color: var(--c-accent-blue);
    border: 1px solid rgba(147, 197, 253, 0.2);
}
.form-message[hidden] {
    display: none;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    border-top: 1px solid var(--c-border);
    padding: 3rem 0 1.5rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-brand { max-width: 300px; }
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}
.logo-img-footer {
    height: 56px;
    width: auto;
    display: block;
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a, .footer-social a {
    color: var(--c-text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover, .footer-social a:hover {
    color: var(--c-text-main);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--c-border);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--c-text-muted);
}
