/* --- RESET & VARIABLES --- */
:root {
    --raw-red: #ff0033;
    --bg-dark: #050505;
    --text-white: #ffffff;
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--raw-red); border-radius: 3px; }

/* --- NAVBAR (HEADER - BÜYÜK BOYUT) --- */
.navbar {
    position: sticky; top: 0; width: 100%; 
    height: 130px; 
    padding: 0 50px; 
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(5,5,5,0.95); border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.logo-container {
    position: relative; padding: 12px 30px; 
    background: rgba(255, 255, 255, 0.9); border-radius: 50px;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.2);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    flex-shrink: 0;
}
.logo-container::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-25deg); animation: logoShine 5s infinite;
}
@keyframes logoShine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

.main-logo { height: 60px; width: auto; display: block; position: relative; z-index: 2; }

.nav-links { display: flex; align-items: center; }

.nav-links a {
    color: #ccc; text-decoration: none; margin-left: 45px;
    font-family: var(--font-head); text-transform: uppercase; 
    font-size: 1.2rem; 
    font-weight: 600; 
    transition: 0.3s; letter-spacing: 1.5px; white-space: nowrap;
}
.nav-links a:hover, .active-link { color: var(--raw-red); }

/* --- INTRO --- */
#intro-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 9999; background: var(--bg-dark);
    overflow-y: auto; pointer-events: auto; transition: opacity 1s ease;
}
#intro-container.hidden { opacity: 0; pointer-events: none; }
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.virtual-scroll { height: 8000px; width: 1px; pointer-events: none; }

.intro-ui { position: fixed; top: 40px; left: 50px; z-index: 10; pointer-events: none; mix-blend-mode: difference; }
.intro-brand-text { font-family: var(--font-head); font-size: 2rem; margin: 0; letter-spacing: 4px; color: white; line-height: 1; }
.intro-brand-text span { color: var(--raw-red); }
.intro-brand-sub { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 6px; color: #aaa; display: block; margin-top: 5px; }

#cinematic-text { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; z-index: 20; pointer-events: none; }
.scroll-step { position: absolute; width: 90%; left: 5%; top: 50%; opacity: 0; transform: translateY(60px) scale(0.9); filter: blur(15px); transition: all 0.8s ease-out; }
.scroll-step.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
.scroll-step.passed { opacity: 0; transform: translateY(-60px) scale(1.1); filter: blur(8px); }
.scroll-step h2 { font-family: var(--font-head); font-size: 4rem; margin: 0; line-height: 1.1; text-shadow: 0 0 30px rgba(0,0,0,0.8); }
.scroll-step p { color: var(--raw-red); font-size: 1.1rem; letter-spacing: 3px; margin-top: 10px; font-weight: 700; background: rgba(0,0,0,0.7); padding: 8px 20px; display: inline-block; border: 1px solid rgba(255,0,51,0.3); }

#enter-wrapper { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; opacity: 0; pointer-events: none; transition: all 1s ease; z-index: 30; }
#enter-wrapper.show { opacity: 1; pointer-events: auto; }
#enter-btn { background: rgba(0,0,0,0.6); border: 2px solid var(--raw-red); color: var(--raw-red); padding: 20px 60px; font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 3px; cursor: pointer; transition: 0.4s; backdrop-filter: blur(5px); }
#enter-btn:hover { background: var(--raw-red); color: white; box-shadow: 0 0 50px rgba(255,0,51,0.6); }

/* --- ANA İÇERİK YAPISI --- */
#main-content { opacity: 0; pointer-events: none; transition: opacity 1.5s ease; min-height: 100vh; }
.page-visible #main-content, #main-content.active { opacity: 1; pointer-events: auto; }

/* MASAÜSTÜ VARSAYILAN */
section { 
    padding: 160px 10% 100px 10%; 
    display: flex; flex-direction: column; justify-content: center; 
    position: relative; border-bottom: 1px solid #111; 
    width: 100%; min-height: 90vh;
}

.hero-head { font-family: var(--font-head); font-size: 5rem; line-height: 0.9; margin: 0; background: linear-gradient(to right, #fff, #777); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--raw-red); font-size: 1.4rem; margin: 30px 0; letter-spacing: 4px; font-weight: 600; }
.section-title { font-family: var(--font-head); font-size: 3.5rem; text-align: center; margin-bottom: 60px; color: white; }

/* Grid Yapıları */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 50px; width: 100%; }
.story-content h3 { font-family: var(--font-head); font-size: 2.2rem; color: white; margin-bottom: 20px; line-height: 1.1; }
.story-content p { color: #aaa; font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; border-left: 3px solid var(--raw-red); padding-left: 20px; }

.stats-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px; text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--raw-red); transform: scaleX(0); transition: transform 0.4s ease;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: rgba(255, 255, 255, 0.1); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card h4 { font-family: var(--font-head); font-size: 2.5rem; color: white; margin: 0; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.stat-card span { display: block; margin-top: 5px; color: var(--raw-red); font-size: 0.9rem; letter-spacing: 2px; font-weight: 600; }

/* Hizmetler Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; width: 100%; }
.service-box { background: #0a0a0a; padding: 40px; border: 1px solid #1a1a1a; transition: all 0.4s ease; position: relative; overflow: hidden; cursor: pointer; height: auto; }
.service-box:hover, .service-box.active { background: #0f0f0f; border-color: var(--raw-red); transform: translateY(-5px); }
.service-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.service-num { font-family: var(--font-head); font-size: 3rem; color: #222; transition: 0.3s; }
.service-box:hover .service-num { color: var(--raw-red); }
.service-box h3 { font-family: var(--font-head); font-size: 2rem; color: white; margin: 0; }
.service-details { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.5s ease; color: #999; line-height: 1.6; margin-top: 0; }
.service-box:hover .service-details, .service-box.active .service-details { max-height: 300px; opacity: 1; margin-top: 20px; }

/* İletişim Grid */
.contact-container { display: flex; gap: 60px; margin-top: 40px; align-items: stretch; width: 100%; }
.contact-info { flex: 1; background: rgba(255,255,255,0.02); padding: 40px; border: 1px solid rgba(255,255,255,0.05); }
.contact-form { flex: 1.5; }
.info-item { margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 20px; }
.info-item:last-child { border: none; }
.info-label { color: var(--raw-red); font-family: var(--font-head); letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 5px; }
.info-value { color: #ddd; font-size: 1.1rem; line-height: 1.6; }
.raw-input { width: 100%; background: #0a0a0a; border: 1px solid #222; padding: 20px; color: white; margin-bottom: 20px; font-family: var(--font-body); transition: 0.3s; box-sizing: border-box; }
.raw-input:focus { border-color: var(--raw-red); outline: none; background: #111; }
.submit-btn { width: 100%; padding: 20px; background: var(--raw-red); border: none; color: white; font-family: var(--font-head); font-size: 1.2rem; cursor: pointer; transition: 0.3s; letter-spacing: 2px; }
.submit-btn:hover { background: #cc0029; }


/* --- İŞLER SAYFASI --- */
.works-container {
    height: calc(100vh - 130px); 
    width: 100%;
    background: black;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

/* MARQUEE */
.client-marquee {
    width: 100%; height: 100px; flex-shrink: 0;
    background: linear-gradient(to bottom, #000, #0a0a0a);
    display: flex; align-items: center; overflow: hidden;
    border-bottom: 1px solid #222; z-index: 10;
}
.track { display: flex; animation: scrollLeft 25s linear infinite; width: max-content; }

.client-logo-box {
    width: 180px; height: 60px; margin: 0 30px; 
    border: 1px solid #222;
    display: flex; align-items: center; justify-content: center; 
    border-radius: 8px; background: #0e0e0e; 
    transition: 0.3s;
}
.client-logo-box img { max-width: 80%; max-height: 80%; object-fit: contain; opacity: 1; transition: 0.3s; }
.client-logo-box:hover { border-color: var(--raw-red); box-shadow: 0 0 15px rgba(255, 0, 51, 0.2); }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* DİKEY VİDEO DÜZENİ */
.strip-layout {
    flex: 1; 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    overflow: hidden; 
    position: relative;
    padding-top: 20px;
}
.strip-col {
    width: 320px; 
    display: flex; flex-direction: column; 
    will-change: transform; gap: 30px; 
}
.video-card {
    width: 100%; aspect-ratio: 9 / 16; background: #000; border: 1px solid #222;
    position: relative; overflow: hidden; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); flex-shrink: 0;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scroll-up { animation: scrollUp 20s linear infinite; } 
.scroll-down { animation: scrollDown 20s linear infinite; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes scrollDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }


/* ========================================================= */
/* --- MOBİL UYUMLULUK (BÜYÜK HEADER & FULL GENİŞLİK) --- */
/* ========================================================= */

@media (max-width: 900px) {
    /* 1. HEADER (Navbar) */
    .navbar { 
        padding: 0 20px !important; 
        height: 110px !important; 
    }
    .logo-container { padding: 10px 25px !important; }
    .main-logo { height: 48px !important; } 
    .nav-links a { 
        margin-left: 15px !important; 
        font-size: 0.95rem !important; 
        font-weight: 600 !important;
    }

    /* 2. GENEL SAYFA */
    section { 
        padding: 150px 15px 50px 15px !important; 
        display: block !important; 
        width: 100% !important;
        min-height: auto !important;
    }

    /* 3. BAŞLIKLAR */
    .hero-head, .section-title { 
        font-size: 3.8rem !important; 
        text-align: left !important; 
        margin-bottom: 40px !important;
        line-height: 1 !important;
        width: 100% !important;
    }
    .hero-sub { font-size: 1.3rem !important; }

    /* 4. GRİDLER */
    .services-grid, .contact-container, .story-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        width: 100% !important;
    }

    /* KUTULAR */
    .service-box { 
        padding: 30px 20px !important; 
        width: 100% !important; 
        border-radius: 8px !important;
    }
    .service-box h3 { font-size: 2.2rem !important; } 

    .contact-info, .contact-form { 
        padding: 30px 20px !important; 
        width: 100% !important; 
    }
    .raw-input { padding: 25px !important; font-size: 1.1rem !important; width: 100% !important; }
    .submit-btn { width: 100% !important; font-size: 1.3rem !important; padding: 20px !important; }

    /* 5. İŞLER (VİDEO) */
    .works-container { height: calc(100vh - 110px) !important; }
    .client-marquee { height: 80px !important; }
    .client-logo-box { width: 120px !important; height: 50px !important; margin: 0 10px !important; }
    .strip-layout { gap: 10px !important; }
    .strip-col { width: 48vw !important; }
    .video-card { width: 100% !important; border-radius: 6px !important; }
}


/* ========================================================= */
/* --- YILDIZ EFEKTİ (SADECE ANASAYFA ARKA PLANI) --- */
/* ========================================================= */
#star-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; /* En arkada */
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    100% { opacity: 0; transform: scale(0.5); }
}