/* =========================================================================
   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: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1100px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --section-spacing: clamp(60px, 10vw, 120px); /* 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;
}

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: 2.5rem; /* Başlıklardan sonra daha fazla nefes alanı */
    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: var(--section-spacing) 0;
}

.text-center { text-align: center; }
.bg-surface-alt { background-color: var(--c-bg-surface); }
.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;
}

/* =========================================================================
   NAVBAR (Sticky & Glass)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: padding 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(5, 8, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}

:root.light-mode .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-text-main);
    display: flex;
    align-items: center;
}
.logo-text { font-weight: 300; opacity: 0.8; margin-left: 2px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--c-text-main);
}
.nav-links .nav-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--c-border);
    border-radius: 100px;
    color: var(--c-text-main);
}
.nav-links .nav-btn:hover {
    background-color: var(--c-text-main);
    color: var(--c-bg);
}

.theme-switch {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    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;
}

/* Default (Dark Mode) - Sun is shown to switch to light */
.theme-switch .moon-icon {
    transform: translateY(20px) rotate(45deg);
    opacity: 0;
}
.theme-switch .sun-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

/* Light Mode - Moon is shown to switch to dark */
: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;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

: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: 30px;
    height: 20px;
    position: relative;
    z-index: 200;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--c-text-main);
    position: absolute;
    transition: var(--transition-fast);
}
.mobile-menu-btn span:first-child { top: 0; }
.mobile-menu-btn span:last-child { bottom: 0; }
.mobile-menu-btn.active span:first-child { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.active span:last-child { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--c-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 150;
    }
    .nav-links.show {
        right: 0;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    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: 2rem;
}

.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 3.5rem auto;
    font-weight: 300;
    line-height: 1.6;
    color: var(--c-text-dark); /* Koyu arkaplanda az daha görünürlük */
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    animation: bounce 2s infinite ease-in-out;
}
.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.mouse-icon {
    width: 24px;
    height: 36px;
    border: 1px solid var(--c-text-muted);
    border-radius: 12px;
    position: relative;
}
.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--c-text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

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

.manifesto-block {
    margin-bottom: 4rem;
    opacity: 1; /* Normally would trigger via intersection observer */
    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.5rem;
    line-height: 1.8;
}

.divider-block {
    padding: 3rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    margin: 5rem 0;
}
.divider-block h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    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;
}

.final-welcome {
    font-family: var(--font-heading);
    font-size: 2rem !important;
    margin-top: 2rem;
}

/* =========================================================================
   EXPECTATIONS BLOCK
   ========================================================================= */
.expectation-list {
    list-style: none;
    margin: 3rem auto;
    max-width: 600px;
    text-align: left;
}

.expectation-list li {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: var(--c-text-dark);
    margin-bottom: 1.8rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 300;
}

.expectation-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background-color: var(--c-accent-blue);
}

.expectation-conclusion {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    color: var(--c-text-main);
    margin-top: 3rem;
}

/* =========================================================================
   9 CANLI OLMAK (CARDS)
   ========================================================================= */
.meaning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}
@media (min-width: 768px) {
    .meaning-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .meaning-grid { grid-template-columns: repeat(3, 1fr); }
    /* Making the last two span nicely if modulo isn't 0 */
    .meaning-card:nth-child(4) { grid-column: span 1; }
    .meaning-card:nth-child(5) { grid-column: span 1; }
}

.meaning-card {
    background: var(--c-bg-surface-elevated);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.meaning-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-border-hover);
    background: var(--c-bg-surface-hover);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 200;
    color: var(--c-text-main);
    opacity: 0.15;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    line-height: 1;
}

.meaning-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem; /* space for absolute number */
}

/* =========================================================================
   COMMUNITY FEATURES
   ========================================================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}
@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: 2.5rem;
    position: relative;
    overflow: hidden;
}

.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: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--c-border);
    margin-bottom: 6rem;
}

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

.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);
}

.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: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-view-all {
    color: var(--c-text-main);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 2px;
    font-size: 0.9rem;
}
.link-view-all:hover {
    color: var(--c-accent-blue);
    border-bottom-color: var(--c-accent-blue);
}

.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 {
    border-color: var(--c-border-hover);
    background: var(--c-bg-surface-elevated);
}

.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: 80%;}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    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
   ========================================================================= */
.network-flex {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
@media (min-width: 1024px) {
    .network-flex { flex-direction: row; align-items: center; }
    .network-text { flex: 1; padding-right: 4rem; }
    .network-bubbles { flex: 1; }
}

.network-text p { font-size: 1.1rem; }

.network-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.bubble {
    padding: 1rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    font-size: 0.9rem;
    color: var(--c-text-muted);
}
.bubble.active {
    border-color: var(--c-accent-yellow);
    color: var(--c-accent-yellow);
    background: rgba(253, 250, 221, 0.05);
}

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: 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: 6rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}
@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: 70px;
    width: auto;
    display: block;
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.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: 2rem;
    font-size: 0.8rem;
    color: var(--c-text-muted);
}
