/* ==========================================================================
   CODELIUM MASTER STYLESHEET (V2.0 - MOBILE OPTIMIZED)
   ========================================================================== */

:root {
    /* --- RENK PALETİ --- */
    --bg: #030303;
    --card-bg: #0F0F0F;
    --accent: #00E5FF; /* Codelium Cyan */
    --accent-glow: rgba(0, 229, 255, 0.4);
    --text: #FFFFFF;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
    
    /* --- ÜRÜN TEMALARI --- */
    --love-pink: #FF4081;
    --sky-blue: #448AFF;
    
    /* --- TİPOGRAFİ --- */
    --font: 'Outfit', sans-serif;
}

/* --- TEMEL AYARLAR & RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); }

/* --- DÜZELTİLMİŞ ALAN (EN ÜSTTEKİ BU KISMI DEĞİŞTİR) --- */

/* HTML'e arka plan rengi verme, sadece akıcılık ver */
html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

/* Arka plan rengini SADECE body'ye ver ki z-index -1 olanlar görünsün */
body {
    background-color: var(--bg); 
    color: var(--text);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden !important; /* Sağa sola oynamayı engeller */
    position: relative; /* Blobların referansı olsun */
}

/* Kalan her şey aynı devam edebilir... */

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- ARKA PLAN EFEKTLERİ --- */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.04;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    filter: contrast(150%) brightness(100%);
}

.bg-animation { position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 10s infinite alternate; }
.b1 { width: 500px; height: 500px; background: #2979FF; top: -10%; left: -10%; }
.b2 { width: 400px; height: 400px; background: #FF4081; bottom: -10%; right: -10%; animation-delay: -5s; }
.b3 { width: 300px; height: 300px; background: #00E5FF; top: 40%; left: 40%; filter: blur(100px); opacity: 0.2; }

/* --- CUSTOM CURSOR (SADECE MASAÜSTÜ) --- */
@media (hover: hover) and (pointer: fine) {
    body, a, button, .cursor-hover { cursor: none; }
    
    .cursor-dot {
        width: 5px; height: 5px; background-color: var(--accent);
        position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
        border-radius: 50%; z-index: 10000; pointer-events: none;
    }

    .cursor-outline {
        width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, 0.5);
        position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
        border-radius: 50%; z-index: 9999; pointer-events: none;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }

    body.hovering .cursor-outline {
        width: 50px; height: 50px;
        background-color: rgba(0, 229, 255, 0.1);
        border-color: var(--accent);
    }
}

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: transparent;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.navbar.scrolled { 
    background: rgba(5, 5, 5, 0.85); 
    backdrop-filter: blur(15px); 
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; position: relative; z-index: 2001; }
.logo .dot { color: var(--accent); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; position: relative; padding: 5px 0; }
.nav-links a:hover { color: white; }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-extras { display: flex; align-items: center; gap: 15px; }
.calc-link { color: var(--accent) !important; font-weight: bold; }

.lang-btn {
    background: transparent; border: 1px solid var(--border); color: white;
    padding: 5px 12px; border-radius: 8px; cursor: pointer; font-weight: bold;
    font-size: 0.8rem; transition: 0.3s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

.cta-btn {
    padding: 10px 25px; border: 1px solid var(--border); border-radius: 50px;
    font-size: 0.9rem; font-weight: 600; transition: 0.3s; background: rgba(255,255,255,0.05);
}
.cta-btn:hover { background: var(--accent); color: black; border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

.mobile-menu-icon { display: none; font-size: 1.8rem; cursor: pointer; z-index: 2001; color: white; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 140px 5% 80px; position: relative;
}

.badge {
    background: rgba(0, 229, 255, 0.1); color: var(--accent); padding: 8px 20px;
    border-radius: 30px; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 20px; border: 1px solid rgba(0, 229, 255, 0.2); display: inline-block;
}

.hero h1 { font-size: 5rem; line-height: 1.1; font-weight: 900; margin-bottom: 20px; }
.typewriter { color: var(--accent); border-right: 3px solid var(--accent); padding-right: 10px; animation: blink 0.7s infinite; }

.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin-bottom: 40px; line-height: 1.6; }

.btn-group { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn { padding: 15px 40px; border-radius: 12px; font-weight: 700; transition: 0.3s; cursor: pointer; display: inline-block; }
.btn-primary { background: white; color: black; border: 2px solid white; }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.btn-outline { border: 1px solid var(--border); color: white; background: rgba(255,255,255,0.05); }
.btn-outline:hover { border-color: white; }

/* --- STATS --- */
.stats-container {
    display: flex; gap: 80px; margin-top: 80px; padding: 30px 60px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 20px;
    backdrop-filter: blur(10px);
}
.stat-item h2 { font-size: 3rem; font-weight: 900; color: white; margin: 0; }
.stat-item span { color: var(--accent); font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; }

/* --- MARQUEE (Kayan Yazı) --- */
.tech-marquee {
    padding: 20px 0; background: var(--accent); color: black; font-weight: 900;
    font-size: 1.5rem; overflow: hidden; white-space: nowrap;
    transform: rotate(-2deg) scale(1.05); margin: 50px 0;
    border-top: 5px solid black; border-bottom: 5px solid black;
}
.track { display: inline-block; animation: marquee 20s linear infinite; }
.tech-marquee i { font-weight: normal; vertical-align: middle; margin-right: 5px; font-size: 1.4rem; }
.tech-marquee span { display: inline-flex; align-items: center; margin-right: 20px; }

/* --- GENEL SECTION AYARLARI --- */
.section { padding: 120px 10%; padding-bottom: 150px; }
.alt-bg {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- ÜRÜN KARTLARI --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.product-card {
    height: 500px; border-radius: 30px; position: relative; overflow: hidden;
    border: 1px solid var(--border); transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
    background: #111;
}
.product-card:hover { transform: translateY(-15px); }
.lm-theme:hover { border-color: var(--love-pink); box-shadow: 0 10px 30px rgba(255, 64, 129, 0.2); }
.sp-theme:hover { border-color: var(--sky-blue); box-shadow: 0 10px 30px rgba(68, 138, 255, 0.2); }

.p-badge {
    position: absolute; top: 30px; right: 30px; padding: 8px 15px;
    background: rgba(255,255,255,0.1); border-radius: 20px; font-weight: 700; font-size: 0.8rem;
    backdrop-filter: blur(5px);
}
.p-info h3 { font-size: 2.5rem; margin: 15px 0; }
.p-info p { color: #aaa; margin-bottom: 20px; font-size: 1rem; }
.icon-box { font-size: 3rem; }
.tags span { padding: 5px 15px; background: rgba(255,255,255,0.05); border-radius: 15px; font-size: 0.8rem; color: white; margin-right: 10px; border: 1px solid var(--border); }

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    max-width: 1200px; margin: 0 auto;
}
.bento-card {
    background: #0A0A0A; border: 1px solid var(--border);
    border-radius: 24px; padding: 30px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-card:hover { border-color: var(--accent); transform: scale(0.98); }
.large { grid-column: span 2; grid-row: span 2; background: linear-gradient(145deg, #0A0A0A, #111); }
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

.icon-box-sm { font-size: 2rem; margin-bottom: 15px; }
.bento-content h3 { font-size: 1.4rem; margin-bottom: 10px; color: white; }
.bento-content p { font-size: 0.9rem; color: #888; }
.bento-visual { position: absolute; bottom: 0; right: 0; opacity: 0.3; pointer-events: none; }
.mobile-visual { width: 100%; height: 50%; background: linear-gradient(to top, var(--accent-glow), transparent); bottom: -20px; filter: blur(40px); }
.ai-visual { width: 150px; height: 150px; background: radial-gradient(circle, var(--love-pink), transparent); right: -20px; bottom: -20px; filter: blur(30px); }

/* --- TIMELINE --- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--border); }
.step-number { font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.1); margin-bottom: 10px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* --- CASE STUDY --- */
.case-study-card {
    background: linear-gradient(135deg, #111, #050505); border: 1px solid var(--border);
    border-radius: 30px; padding: 50px; display: flex; align-items: center; gap: 50px;
    position: relative; overflow: hidden;
}
.cs-content { flex: 1; z-index: 2; }
.cs-tag { color: var(--accent); font-weight: 900; letter-spacing: 2px; margin-bottom: 15px; font-size: 0.8rem; }
.cs-content h3 { font-size: 2.5rem; margin-bottom: 20px; }
.cs-content p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }
.cs-stats { display: flex; gap: 40px; }
.cs-stats strong { display: block; font-size: 2rem; color: white; }
.cs-stats span { font-size: 0.9rem; color: var(--text-muted); }
.cs-image { flex: 1; height: 300px; background: rgba(255,255,255,0.05); border-radius: 20px; position: relative; }
.graph-mockup { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 229, 255, 0.05) 10px, rgba(0, 229, 255, 0.05) 20px); }

/* --- TESTIMONIALS --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testi-card {
    background: #0A0A0A; border: 1px solid var(--border); padding: 30px;
    border-radius: 20px; transition: 0.3s; position: relative;
}
.testi-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.testi-avatar { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.testi-header h4 { margin: 0; font-size: 1rem; color: white; }
.testi-header small { color: #888; }
.stars { margin-left: auto; font-size: 0.8rem; letter-spacing: 2px; }
.testi-card p { color: #ccc; font-size: 0.95rem; line-height: 1.6; font-style: italic; }

/* --- BLOG --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card {
    background: var(--card-bg); padding: 30px; border-radius: 20px; border: 1px solid var(--border);
    transition: 0.3s; display: flex; flex-direction: column; align-items: flex-start; height: auto;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.blog-tag { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 5px; font-size: 0.7rem; font-weight: bold; margin-bottom: 15px; }
.blog-card h3 { font-size: 1.5rem; margin-bottom: 10px; line-height: 1.3; }
.blog-summary { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }
.blog-details {
    max-height: 0; opacity: 0; overflow: hidden; padding: 0; margin-top: 0; 
    transition: max-height 0.5s ease-out, opacity 0.5s ease; color: #ccc; font-size: 0.9rem; line-height: 1.6;
}
.blog-card.active .blog-details { max-height: 500px; opacity: 1; margin-top: 10px; margin-bottom: 15px; transition: max-height 0.5s ease-in, opacity 0.5s ease-in; }
.blog-card.active { background: rgba(0, 229, 255, 0.05); border-color: var(--accent); }
.read-more { color: var(--accent); font-weight: bold; font-size: 0.9rem; margin-top: auto; display: inline-block; padding: 5px 0; }

/* --- FOOTER --- */
footer { padding: 0 5% 50px; background: transparent !important; border-top: none !important; position: relative; z-index: 1; }
.footer-cta {
    background: rgba(0, 229, 255, 0.05); border: 1px solid var(--accent); padding: 80px;
    border-radius: 40px; margin-top: 80px; margin-bottom: 60px;
    box-shadow: 0 0 80px rgba(0, 229, 255, 0.15); backdrop-filter: blur(10px);
    text-align: center; position: relative; z-index: 2;
}
.footer-cta h2 { font-size: 3.5rem; margin-bottom: 30px; line-height: 1.2; }
.big-btn { font-size: 1.8rem; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); transition: 0.3s; font-weight: bold; }
.big-btn:hover { color: white; border-color: white; }
.footer-bottom { margin-top: 0; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; color: #666; }
.f-links a { margin-left: 30px; color: #888; font-weight: 500; }
.f-links a:hover { color: var(--accent); }

/* --- WHATSAPP BUTONU --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background-color: #25d366; color: white; border-radius: 50px;
    text-align: center; font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- ANIMASYONLAR --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes float { from { transform: translate(0, 0); } to { transform: translate(30px, 50px); } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   MOBILE & TABLET OPTIMIZASYONU (KRİTİK BÖLÜM)
   ========================================================================== */

@media (max-width: 1024px) {
    .section { padding: 80px 5%; }
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 900px) {
    /* 1. Navbar & Tam Ekran Menü */
    .navbar {
        padding: 15px 20px;
        background: rgba(0,0,0,0.95) !important;
        backdrop-filter: blur(10px);
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #000000;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 0; margin: 0;
    }

    .nav-links.active { transform: translateX(0); }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.5s ease 0.2s;
    }

    .nav-links.active li { opacity: 1; transform: translateY(0); }
    .nav-links a { font-size: 2rem; font-weight: 800; color: white; }
    
    .nav-extras { display: none !important; }
    .mobile-menu-icon { display: block !important; }

    /* 2. Hero Bölümü */
    .hero {
        padding-top: 130px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero h1 { font-size: 2.8rem !important; line-height: 1.1; }
    .hero p { font-size: 1rem; padding: 0 10px; line-height: 1.5; }
    .btn-group { flex-direction: column; width: 100%; gap: 15px; }
    .btn { width: 100%; text-align: center; }

    /* 3. İstatistikler */
    .stats-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
        margin-top: 40px;
        width: 100%;
        text-align: center;
    }

    /* 4. Bento Grid (Mobilde Alt Alta) */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        grid-template-rows: auto;
    }
    .bento-card { min-height: 250px; padding: 30px; }

    /* 5. Ürün Kartları & Diğer Gridler */
    .products-grid, .blog-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .product-card { height: auto; min-height: 450px; }
    .case-study-card { flex-direction: column; text-align: center; padding: 30px; }
    .cs-stats { justify-content: center; }
    
    /* 6. Footer */
    .footer-cta { padding: 50px 20px; margin-top: 40px; }
    .footer-cta h2 { font-size: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 25px; }
    .f-links { flex-direction: column; gap: 15px; }
    .f-links a { margin: 0; }

    /* 7. Gereksiz Efektleri Kapat */
    .cursor-dot, .cursor-outline { display: none !important; }
}