/* =========================================
   1. MODERN RESET & DEĞİŞKENLER (THEME)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Renk Paleti: Slate (Zemin) & Indigo (Vurgu) */
    --bg-dark: #0f172a;      /* Çok koyu lacivert/siyah */
    --bg-light: #f8fafc;     /* Kırık beyaz */
    --primary: #4f46e5;      /* BTH İndigo */
    --primary-hover: #4338ca;
    --text-main: #1e293b;    /* Koyu gri metin */
    --text-muted: #64748b;   /* Gri açıklama metni */
    --white: #ffffff;
    
    /* Neon Efektler */
    --neon-purple: #a855f7;
    --neon-blue: #0ea5e9;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   2. HERO SECTION (GÖRSELLİ & GÜNCELLENMİŞ)
   ========================================= */
#hero-modern {
    position: relative;
    height: 100vh; /* Tam ekran */
    min-height: 600px;
    
    /* GÜNCELLENEN KISIM: Arka Plan Resmi ve Filtre */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax efekti (Kaydırınca resim sabit kalır) */
    
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

/* Ana Taşıyıcıyı İkiye Bölüyoruz */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 2rem; 
    padding: 0 2rem;
}

/* Sol Taraf: Yazılar */
.hero-text {
    flex: 1; 
    max-width: 650px;
    text-align: left;
}

.badge-pill {
    background: rgba(14, 165, 233, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem; 
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Yazı okunsun diye gölge */
}

.hero-title .typewriter {
    color: var(--primary);
    background: -webkit-linear-gradient(0deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1; /* Daha açık gri yaptık ki koyu resim üstünde okunsun */
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Sağ Taraf: Kod Kutusu */
.code-decoration {
    flex: 1; 
    position: relative;
    right: auto; 
    top: auto;
    background: rgba(15, 23, 42, 0.85); 
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    max-width: 500px;
    display: none; 
}

/* Kod Kutusundaki Mac Tarzı Noktalar */
.window-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.window-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}
.window-buttons span:nth-child(2) { background-color: #ffbd2e; }
.window-buttons span:nth-child(3) { background-color: #27c93f; }

.code-decoration code { font-family: 'Courier New', monospace; color: #e2e8f0; font-size: 0.9rem; }
.var { color: #c084fc; }
.func { color: #60a5fa; }
.str { color: #4ade80; }
.key { color: #94a3b8; }

/* Responsive Ayarları */
@media (min-width: 992px) {
    .code-decoration { display: block; } 
}

@media (max-width: 991px) {
    .hero-content {
        flex-direction: column; 
        justify-content: center;
        text-align: center;
        padding-top: 4rem;
    }
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1rem; }
}

/* =========================================
   3. BUTONLAR
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.btn-secondary {
    background: rgba(255,255,255,0.1); /* Görsel üstünde belli olsun diye */
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    margin-left: 1rem;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* =========================================
   4. BENTO GRID (HİZMETLER)
   ========================================= */
#bento-services {
    padding: 6rem 0;
    background: #f8fafc; /* Sayfa zemini çok hafif gri */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px; /* Kutular arası boşluk */
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 1. STANDART KUTU (BEYAZ & TEMİZ) --- */
.bento-box {
    background: #ffffff;
    border-radius: 24px; /* Daha yuvarlak köşeler */
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0; /* Çok ince gri çerçeve */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Çok hafif gölge */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Mouse gelince hafif yukarı kalksın */
.bento-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Standart Kutu Yazı Ayarları */
.bento-box h3 { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.bento-box p { color: #64748b; font-size: 1rem; line-height: 1.6; }
.bento-box i { font-size: 2.5rem; color: #4f46e5; margin-bottom: 20px; } /* İkon mor olsun */


/* --- 2. VURGULU KUTU (LARGE - MOR GRADYAN) --- */
/* Bu kutu markayı temsil eder, en dikkat çekici olandır */
.box-large {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    border: none;
    color: white;
}
.box-large h3 { color: white; }
.box-large p { color: #e0e7ff; } /* Beyazımsı mor */
.box-large i { color: #a5b4fc; } /* Açık lila ikon */
.box-large:hover { box-shadow: 0 20px 40px -10px rgba(67, 56, 202, 0.5); }


/* --- 3. DİKEY KUTU (TALL - KOYU MOD) --- */
/* Denge sağlamak için siyah/lacivert */
.box-tall {
    background: #0f172a;
    border: 1px solid #1e293b;
}
.box-tall h3 { color: white; }
.box-tall p { color: #94a3b8; }
.box-tall i { color: #38bdf8; } /* Açık mavi ikon (Cyan) */


/* MOBİL VE TABLET AYARLARI */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 320px); /* Yükseklik ayarı */
    }
    .box-large { grid-column: span 2; } /* Geniş kutu 2 birim yer kaplar */
    .box-tall { grid-row: span 2; }    /* Uzun kutu 2 satır yer kaplar */
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-box { min-height: 280px; }
}

/* Liste Varsa (Teknolojiler listesi) */
.micro-list { margin-top: auto; padding-top: 20px; }
.micro-list li { 
    display: flex; align-items: center; gap: 10px; 
    margin-bottom: 8px; font-weight: 600; font-size: 0.9rem;
}
/* Koyu kutularda liste rengi */
.box-tall .micro-list li, .box-large .micro-list li { color: white; opacity: 0.9; }
.box-tall .micro-list i, .box-large .micro-list i { font-size: 1rem; margin: 0; }
/* =========================================
   5. TECH STACK (MARKALAR)
   ========================================= */
#tech-stack {
    padding: 2rem 0;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.stack-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.stack-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 1.5rem;
}

.stack-grid span:hover {
    color: var(--primary);
    cursor: default;
    transition: color 0.3s;
}

/* Genel Mobil Düzeltmeler */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .box-large, .box-tall, .box-wide { grid-column: auto; grid-row: auto; min-height: 250px; }
}