:root {
    --ana-mavi: #0a1120;
    /* Görselden alınan gerçek logo arka plan rengi */
    --vurgu-turuncu: #ff8c00;
    --acik-mavi: #00b4d8;
    --beyaz: #ffffff;
    --gri: #e0e0e0;
    --gecis-siyah: rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    /* overflow-x: hidden kaldırıldı çünkü sticky özelliğini engelliyor[cite: 3, 5] */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--ana-mavi);
    color: var(--beyaz);
    line-height: 1.6;
    width: 100%;
    /* Sticky özelliğinin çalışması için body üzerinde overflow-x kısıtlaması olmamalıdır[cite: 3, 5] */
}


/* --- Navigasyon Çubuğu --- */

.navbar {
    position: fixed;
    width: 100%;
    background-color: var(--ana-mavi) !important;
    /* Rengi kesin olarak dayatıyoruz */
    z-index: 1000;
    border-bottom: none;
    /* Ton farkı yaratan alt çizgiyi kaldırdık */
    min-height: 100px;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img {
    height: 100px;
    width: 250px;
    display: block;
    mix-blend-mode: screen;
    /* Siyah/Lacivert arka planı şeffaf yapar[cite: 3] */
    filter: brightness(1.1) contrast(1.1);
    /* Beyazları parlatır[cite: 3] */
}

.logo img {
    height: 100px;
    width: 250px;
    display: block;
    mix-blend-mode: screen;
    object-fit: fill;
    margin-left: -60px;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

.nav-links a {
    color: var(--beyaz);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--vurgu-turuncu);
}


/* --- Hero Bölümü --- */

.hero {
    height: 100vh;
    position: relative;
    background: url('assets/ALUBAT su roketi 2.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--beyaz);
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#moon {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: absolute;
    top: 25%;
    left: 50%;
    z-index: 1;
    background: #ffffff;
    box-shadow: 0 0 30px #ffffff, 0 0 60px #ffffff, 0 0 100px rgba(255, 255, 255, 0.5);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, transparent 60%, black 61%);
    mask-image: radial-gradient(circle at 70% 30%, transparent 60%, black 61%);
    transform: translate(-50%, 0) rotate(-20deg);
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

#stars {
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gecis-siyah);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.handwritten-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 700;
    font-style: italic;
    white-space: nowrap;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
    background: linear-gradient(to right, #ffffff, var(--acik-mavi), #f0f0f0, var(--vurgu-turuncu), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: galaksiAkisi 4s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

@keyframes galaksiAkisi {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}


/* --- VİZYON, MİSYON, MANİFESTO --- */

.info-section,
.manifesto-section,
.modern-info-section,
.manifesto-modern-section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Dikeyde ortalama sağlar */
    min-height: 100vh;
    /* Her bölümün ekranı tam kaplamasını sağlar */
    width: 100%;
}

.content-container {
    max-width: 1200px;
    /* Geniş metin içeriği için alan artırıldı */
    width: 100%;
    margin: 0 auto;
    /* Yatayda dıştan ortalama */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Metinleri genel olarak ortalar[cite: 6] */
}

.info-box,
.manifesto-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 900px;
    /* Okunabilirlik için metin bloğu sınırlandırıldı[cite: 6] */
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    /* Ekran boyutuna göre dinamik başlık[cite: 6] */
    color: var(--vurgu-turuncu);
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* Kartların içindeki metin hizalaması */

.info-text {
    text-align: left;
    /* Uzun metinlerde okunabilirlik için sol hizalama[cite: 6] */
    color: var(--gri);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* --- ATÖLYE SCROLLYTELLING BÖLÜMÜ --- */

.scrolly-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at center, #0a192f 0%, var(--ana-mavi) 100%);
    /* Sticky'nin çalışması için üst kapsayıcıda overflow kısıtlaması olmamalıdır[cite: 3, 5] */
    overflow: visible !important;
}

.scrolly-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 250vh;
    position: relative;
    width: 100%;
}

.scrolly-left {
    flex: 1;
    height: 100vh;
    position: -webkit-sticky !important;
    position: sticky !important;
    /* Görseli ekranda sabit tutar[cite: 3, 5] */
    top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sticky-element {
    position: relative;
    width: 80%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#rocket-image,
#stem-robot-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 180, 216, 0.3));
    transition: all 0.5s ease;
    backface-visibility: hidden;
}

.scrolly-right {
    flex: 1;
    padding: 50px;
    position: relative;
    z-index: 5;
}

.scroll-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.1;
    transition: all 0.7s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.scroll-step.active {
    opacity: 1;
}

.step-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--acik-mavi);
    backdrop-filter: blur(5px);
}


/* --- STEM ÖZEL EFEKTLER (DÖRT YÖNDEN GELİŞ) --- */

.stem-bg {
    background: radial-gradient(circle at center, #050a14 0%, #001a2c 100%);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--acik-mavi);
    box-shadow: 0 0 15px var(--acik-mavi);
    animation: scan 3s linear infinite;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}


/* Yön Belirleme */

.stem-step[data-side="left"] {
    transform: translateX(-150px);
}

.stem-step[data-side="right"] {
    transform: translateX(150px);
}

.stem-step[data-side="bottom"] {
    transform: translateY(150px);
}

.stem-step[data-side="top"] {
    transform: translateY(-150px);
}

.stem-step.active {
    transform: translate(0, 0) !important;
}

.code-block {
    display: block;
    background: #000;
    color: #0f0;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 3px solid #0f0;
}

.tech-list {
    list-style: none;
    color: var(--gri);
}

.tech-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tech-list li::before {
    content: "◈";
    position: absolute;
    left: 0;
    color: var(--acik-mavi);
}


/* Mobil Düzenleme */

@media (max-width: 992px) {
    .scrolly-container {
        flex-direction: column;
    }
    .scrolly-left {
        position: relative;
        height: 40vh;
        top: 0;
    }
    .scroll-step {
        min-height: auto;
        margin-bottom: 60px;
        transform: none !important;
    }
}


/* --- MODERN BİLGİ KARTLARI (GLASSMORPHISM) --- */

.glass-card-grid {
    display: flex;
    /* Daha iyi ortalama için flex'e dönüştürüldü */
    flex-wrap: wrap;
    /* Kartların alt alta inebilmesini sağlar */
    justify-content: center;
    /* Kartları yatayda tam ortalar */
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: 0.4s ease;
    flex: 1;
    /* Kartların esnek büyümesini sağlar */
    min-width: 350px;
    /* Kartların çok daralmasını önler[cite: 6] */
    max-width: 550px;
    /* Kartların aşırı yayılmasını önler[cite: 6] */
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: var(--vurgu-turuncu);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    /* Başlığı kart içinde ortalar[cite: 6] */
}

.card-icon {
    font-size: 2.5rem;
}

.info-text {
    text-align: left;
    /* Uzun metinlerin okunabilirliği için sol hizalama[cite: 6] */
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    color: var(--gri);
    text-align: left;
    /* Liste elemanlarını sola yaslar[cite: 6] */
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--vurgu-turuncu);
    font-weight: bold;
}


/* --- MANİFESTO MODERİNİZASYON --- */

.glow-text {
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
    margin-bottom: 50px !important;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.manifesto-intro {
    text-align: center;
    font-size: 1.25rem;
    max-width: 900px;
    /* Genişletilen metin için alan artırıldı */
    margin: 0 auto 60px;
    color: var(--beyaz);
    font-style: italic;
    line-height: 1.8;
}

.principle-grid {
    display: flex;
    /* Daha iyi ortalama için flex'e geçildi */
    flex-wrap: wrap;
    justify-content: center;
    /* Kutuları yatayda ortalar */
    gap: 25px;
    margin-bottom: 60px;
    width: 100%;
}

.principle-box {
    text-align: center;
    padding: 35px 25px;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 20px;
    border: 1px dashed rgba(0, 180, 216, 0.3);
    transition: all 0.4s ease;
    flex: 1;
    min-width: 240px;
    /* Kutuların mobilde ve masaüstünde dengeli durması için */
    max-width: 300px;
    /* Kutuların aşırı büyümesini engeller[cite: 6] */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.principle-box:hover {
    background: rgba(0, 180, 216, 0.1);
    border-style: solid;
    border-color: var(--acik-mavi);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.1);
}

.p-word {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--acik-mavi);
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.manifesto-content {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--gri);
    font-size: 1.1rem;
    line-height: 1.9;
}

.highlight-quote {
    font-size: clamp(1.4rem, 3vw, 2rem);
    /* Ekran boyutuna göre ölçeklenir[cite: 6] */
    text-align: center;
    color: var(--beyaz);
    font-family: 'Dancing Script', cursive;
    margin-top: 50px;
    padding: 0 20px;
    line-height: 1.4;
}

.final-motto {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--vurgu-turuncu);
    margin-top: 20px;
    letter-spacing: 3px;
}

.final-sub {
    font-size: 1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--acik-mavi);
    margin-top: 10px;
}

#iletisim .glass-card a {
    transition: 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

#iletisim .glass-card a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}


/* --- GÜVENLİ MOBİL OPTİMİZASYON (HİÇBİR ŞEYİ BOZMAZ) --- */

@media (max-width: 992px) {
    /* 1. Atölyelerdeki yan yana yapıyı sadece mobilde dikey yap */
    /* Bu sayede sticky özelliğini mobilde güvenli bir şekilde kapatırız */
    .scrolly-container {
        display: block !important;
    }
    .scrolly-left {
        position: relative !important;
        /* Mobilde görselin ekrana çakılı kalmasını engeller */
        height: auto !important;
        top: 0 !important;
        margin-bottom: 30px;
    }
    .sticky-element {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    /* 2. Slayt metinlerinin mobilde dışarı taşmasını engelle */
    .slide {
        padding: 40px 20px !important;
        overflow-wrap: break-word;
        /* Uzun kelimeleri böler, sayfayı sağa itmez */
    }
    /* 3. Kartları alt alta diz (Masaüstünde dokunmaz) */
    .glass-card-grid,
    .principle-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .glass-card,
    .principle-box {
        width: 100% !important;
        min-width: unset !important;
    }
}


/* 4. Yatay sallanmayı engellemek için en zararsız yöntem */


/* Body veya html yerine sadece taşma yapan içeriğe odaklanır */

.pdf-content-area,
.slider-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
}