:root {
    --accent: #00f2ff;
    --purple: #7000ff;
    --bg-dark: #020205;
    --glass: rgba(255, 255, 255, 0.01);
}

/* --- MOBİL SAĞA KAYMAYI VE BEYAZ EKRANI KÖKTEN ÇÖZEN KOD --- */
/* --- ATMOSPHERE & BACKGROUND --- */
body {
    /* Sabit arka plan: Koyu mordan siyaha naif bir geçiş */
    background: radial-gradient(circle at top right, #0a0510, #020205); 
    background-attachment: fixed;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* Mouse Takip Eden Mor Işık */
.blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px; /* Biraz daha büyüttüm ki daha naif yayılsın */
    height: 800px;
    /* Mor ve Turkuaz karışımı efsane gradient */
    background: radial-gradient(circle, rgba(112, 0, 255, 0.12) 0%, rgba(0, 242, 255, 0.05) 100%);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

/* GLOBAL CONTAINERS */
.container { max-width: 1280px; margin: 0 auto; width: 100%; padding: 0 2rem; box-sizing: border-box; }
.container-narrow { max-width: 1000px; margin: 0 auto; width: 100%; padding: 0 2rem; box-sizing: border-box; }


/* NAVBAR */
.navbar { position: fixed; width: 100%; z-index: 100; padding: 1.5rem 0; pointer-events: none; }
.nav-container { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; background: var(--glass); backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9999px; padding: 0.8rem 2.5rem; pointer-events: auto; transition: all 0.5s ease; }
@media (max-width: 768px) { .nav-container { justify-content: center; padding: 0.6rem 2rem; } }
#main-logo { height: 3.5rem; width: auto; transition: 0.5s ease; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
@media (max-width: 768px) { #main-logo { height: 2.5rem; } }
.nav-links { display: none; gap: 3.5rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-item { font-size: 11px; text-transform: uppercase; font-weight: bold; letter-spacing: 0.3em; text-decoration: none; color: #fff; opacity: 0.6; transition: 0.3s; }
.nav-item:hover { opacity: 1; color: var(--accent); }
.terminal-link { color: var(--accent); font-style: italic; opacity: 1; }

/* HERO SECTION (Yazı Solda, Obje Sağda Garantili) */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 6rem; position: relative; }
.hero-grid { 
    display: flex; 
    flex-direction: column; /* Mobilde alt alta */
    align-items: center; 
    gap: 3rem; 
}
@media (min-width: 768px) { 
    .hero-grid { 
        flex-direction: row; /* Masaüstünde yan yana */
        justify-content: space-between;
    } 
    .hero-text-content { width: 55%; }
    .hero-3d-content { width: 45%; display: flex; justify-content: flex-end; }
}
.hero-text-content { text-align: center; }
@media (min-width: 768px) { .hero-text-content { text-align: left; } }
.hero-badge { color: var(--accent); letter-spacing: 1em; font-size: 10px; margin-bottom: 1.5rem; font-weight: bold; opacity: 0.8; }
.hero-title { font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 700; line-height: 0.85; margin: 0 0 2rem 0; letter-spacing: -0.04em; }
.gradient-text { background: linear-gradient(to right, #fff, var(--accent), var(--purple), #fff); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 6s linear infinite; padding-right: 25px; }
@keyframes shine { to { background-position: 200% center; } }
.hero-desc { color: #9ca3af; max-width: 35rem; font-size: 1.15rem; line-height: 1.6; margin: 0 auto; }
@media (min-width: 768px) { .hero-desc { margin: 0; } }

/* 3D CANVAS (Çökmeyi Önler) */
#canvas-container { width: 320px; height: 320px; display: block; position: relative; }
@media (min-width: 768px) { #canvas-container { width: 500px; height: 500px; } }

/* SCROLL INDICATOR */
.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; opacity: 0.4; }
.scroll-text { font-size: 8px; text-transform: uppercase; letter-spacing: 0.5em; font-weight: bold; margin-bottom: 1rem; color: #fff; }
.scroll-line { width: 1px; height: 4rem; background: linear-gradient(to bottom, var(--accent), transparent); animation: scroll-slide 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes scroll-slide { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } 51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }

/* THE CORE */
.core-section { padding: 8rem 0; }
.core-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .core-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.asset-frame { background: var(--glass); border: 1px solid rgba(255,255,255,0.05); border-radius: 3.5rem; height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
@media (min-width: 768px) { .asset-frame { height: 550px; } }
.main-asset-img { width: 80%; height: auto; filter: drop-shadow(0 0 40px rgba(255,165,0,0.15)); transition: 1.2s; }
.asset-frame:hover .main-asset-img { transform: scale(1.08); }
.core-text { text-align: center; }
@media (min-width: 768px) { .core-text { text-align: left; } }
.section-badge { color: var(--accent); letter-spacing: 0.8em; font-size: 10px; font-weight: bold; margin-bottom: 2rem; display: block; }
.section-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1; color: #fff; margin: 0 0 1.5rem 0; }
.section-desc { font-size: 1.15rem; color: #9ca3af; line-height: 1.7; max-width: 38rem; margin: 0 auto; }

/* THE LAB */
.lab-section { padding: 8rem 0; background: rgba(3, 3, 8, 0.4); }
.lab-header { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; margin-bottom: 5rem; }
.lab-main-title { font-size: 4rem; opacity: 0.1; margin: 0; color: #fff; }
@media (min-width: 768px) { .lab-main-title { font-size: 6rem; } }
.lab-sub-tag { color: var(--accent); font-size: 11px; font-weight: bold; letter-spacing: 0.5em; margin-top: 1rem; }
.lab-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .lab-grid { grid-template-columns: 1fr 1fr; } }
.project-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 3rem; padding: 0.6rem; transition: 0.5s; }
.project-card:hover { border-color: var(--accent); }
.card-inner { background: #020205; border-radius: 2.5rem; padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.card-img-wrap { height: 350px; background: #050505; border-radius: 2rem; overflow: hidden; margin-bottom: 2rem; }
@media (min-width: 768px) { .card-img-wrap { height: 450px; } }
.card-img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1); opacity: 0.5; transition: 0.8s; }
.project-card:hover .card-img { filter: grayscale(0); opacity: 1; }
.card-title { font-size: 1.8rem; font-weight: bold; color: #fff; margin: 0 0 1rem 0; }
.card-desc { color: #6b7280; font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; margin-top: auto; }
.status-badge { color: var(--accent); font-size: 10px; font-weight: bold; letter-spacing: 0.2em; }
.stage-badge { font-size: 10px; opacity: 0.3; color: #fff; font-weight: bold; letter-spacing: 0.1em; }
.encrypted-box { border: 1px dashed rgba(255,255,255,0.1); border-radius: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; opacity: 0.2; }
.encrypted-text { font-size: 10px; color: #fff; letter-spacing: 0.4em; }

/* BLUEPRINT */
.blueprint-section { padding: 8rem 0; }
.timeline { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 3rem; margin-top: 4rem; display: flex; flex-direction: column; gap: 6rem; margin-left: 1rem; }
@media (min-width: 768px) { .timeline { padding-left: 5rem; margin-left: 0; } }
.timeline-step { position: relative; }
.node { position: absolute; left: -4.15rem; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 30px var(--accent); }
@media (min-width: 768px) { .node { left: -6.15rem; width: 2.4rem; height: 2.4rem; } }
.node-dim { position: absolute; left: -4.15rem; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,255,255,0.05); }
@media (min-width: 768px) { .node-dim { left: -6.15rem; width: 2.4rem; height: 2.4rem; } }
.step-title { font-size: 1.5rem; font-weight: bold; color: #fff; margin: 0 0 0.8rem 0; }
@media (min-width: 768px) { .step-title { font-size: 2rem; } }
.active .step-title { color: var(--accent); }
.status-tag { color: var(--accent); font-size: 10px; font-weight: bold; letter-spacing: 0.3em; margin-bottom: 1rem; display: block; }
.step-desc { color: #6b7280; font-size: 1rem; line-height: 1.6; }
.locked { opacity: 0.4; }
.locked-deep { opacity: 0.15; }

/* FOOTER & ANIMATIONS */
.footer { padding: 6rem 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
@media (min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; } }
.footer-brand { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 768px) { .footer-brand { align-items: flex-start; } }
.footer-logo { height: 4rem; opacity: 0.7; transition: 0.4s; filter: grayscale(1); margin-bottom: 1rem; }
.footer-logo:hover { opacity: 1; filter: grayscale(0); }
.footer-copy { font-size: 10px; color: #4b5563; margin: 0; }
.footer-social { display: flex; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .footer-social { gap: 4rem; } }
.social-link { font-size: 10px; text-decoration: none; color: #9ca3af; font-weight: bold; letter-spacing: 0.2em; transition: 0.3s; }
.social-link:hover { color: var(--accent); }

.terminal-standby { color: var(--accent); font-size: 10px; font-weight: bold; letter-spacing: 0.2em; border-bottom: 2px solid var(--accent); padding-bottom: 5px; animation: terminal-blink 1.2s infinite ease-in-out; }
@keyframes terminal-blink { 0%, 100% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 10px var(--accent)); } 50% { opacity: 0.2; } }

.animate-pulse { animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.reveal-up { opacity: 0; transform: translateY(60px); }

.project-card:active {
    transform: scale(0.98); /* Tıklayınca hafifçe içeri çöker */
    transition: 0.1s;
}