/* =====================================================
ANA "style.css" DOSYASINDA ZATEN BULUNDUĞU İÇİN
TÜM KAYDIRMA ÇUBUĞU, NAVBAR, HAMBURGER VE FOOTER STİLLERİ
BU DOSYADAN SİLİNDİ.
===================================================== */

/* --- GENEL AYARLAR --- */
body {
    margin: 0;
    font-family: 'Spline Sans Mono', monospace;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================================================== */
/* YENİ HERO STİLLERİ (PORTFOLYO İÇİN AYARLANDI)      */
/* ===================================================== */

.hero-section {
    background-color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    /* YENİ EKLENDİ - KAYDIRMA ÇUBUĞUNU BU DÜZELTECEK */
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 50px;
    position: relative;
    /* YENİ EKLENDİ */
    z-index: 1;
    /* YENİ EKLENDİ */
}

.hero-section .text-content {
    flex: 1;
    max-width: 550px;
}

.blinking-cursor-box {
    display: block;
    width: 14px;
    height: 14px;
    background-color: #00FF00;
    /* Canlı yeşil */
    margin-bottom: 20px;
    /* Başlıkla arasına boşluk koy */
    animation: blink-box 1s step-end infinite;
}

/* 6. YENİ: Kutucuk animasyonu */
@keyframes blink-box {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: none;
    min-height: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    padding-top: 30px;
}

.hero-section h1::after {
    content: '_';
    animation: blink 1s infinite;
    font-weight: 400;
}

.hero-section h1.typing-done::after {
    content: '';
    animation: none;
}

.hero-section p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-section .cta-button {
    display: inline-block;
    background-color: #1a1aa6;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(26, 26, 166, 0.2);
}

.hero-section .cta-button:hover {
    background-color: #151590;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(26, 26, 166, 0.3);
}

/* --- HERO BÖLÜMÜ <IMG> STİLİ (GÜNCELLENDİ) --- */

.illustration-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 600px;
    height: 400px;
    /* perspective: 1000px; // Eski animasyon için gerekliydi, SİLİNDİ. */
}

/* YENİ EKLENDİ: Resmin konteynere tam sığması için */
.illustration-container img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* ESKİ SVG ANİMASYON KODLARI (TÜMÜ SİLİNDİ) */
/* .animated-svg, @keyframes, .laptop-group, .screen-bg vb. kaldırıldı. */


/* --- HERO ARKA PLAN ŞEKİLLERİ --- */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* İçeriğin arkasında kalmasını sağlar */
    pointer-events: none;
    /* Üzerine tıklanmasını engeller */
}

.hero-bg-shapes .shape-left {
    position: absolute;
    width: 450px;
    height: auto;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-30%);
    opacity: 0.9;
}

.hero-bg-shapes .shape-right {
    position: absolute;
    width: 450px;
    height: auto;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(30%);
    opacity: 0.9;
}


/* --- PORTFOLYO GALERİ BÖLÜMÜ --- */
/* (BU BÖLÜM AYNI KALDI) */
.portfolio-gallery {
    padding: 80px 0 100px 0;
    position: relative;
    z-index: 1;
}

/* --- ASİMETRİK PROJE GRID'İ --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background-color: #111;
    text-decoration: none;
    color: #fff;
    border-radius: 0;
    display: block;
}

.portfolio-item.wide {
    grid-column: span 2;
}

/* --- KART HOVER EFEKTİ --- */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(0deg, rgba(26, 26, 166, 0.85) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item .item-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.item-content span {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-content h3 {
    font-family: 'Anta', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 5px 0 0 0;
    line-height: 1.3;
}

.external-link-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
}

/* --- HOVER ANINDAKİ DEĞİŞİKLİKLER --- */
.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item:hover .item-content {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover .external-link-icon {
    opacity: 1;
    transform: scale(1);
}
/* === RESPONSIVE DÜZENLEMELER === */

@media (max-width: 992px) {
    
    /* --- YENİ EKLENDİ: Hero Bölümü --- */
    .hero-content-wrapper {
        flex-direction: column; /* Öğeleri alt alta yığ */
        gap: 40px;
    }
    .hero-section .text-content {
        max-width: 100%; /* Tam genişlik */
        text-align: center; /* Metni ortala */
        order: 2; /* Metin altta kalsın */
    }
    .illustration-container {
        max-width: 80%; /* Resim çok büyümesin */
        order: 1; /* Resim üste gelsin */
        height: auto; /* Yüksekliği otomatik olsun */
    }
    /* O yanıp sönen kareyi de ortalayalım */
    .blinking-cursor-box {
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Mevcut Galeri Bölümü --- */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        gap: 20px;
    }
    .item-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    
    @media (max-width: 768px) {
    /* HİZMETLER'DEN GELEN YENİ HERO RESPONSIVE AYARLARI */
    .hero-section {
        /* ESKİSİ BUYDU: */
        /* padding: 60px 0; */

        /* YENİSİ BU OLMALI (Navbar payı + içerik boşluğu): */
        padding: 135px 0 60px 0; 
    }

    .hero-content-wrapper {
        padding: 0 20px;
    }
    /* ... (bloğun geri kalanı aynı) ... */
}
    .hero-section h1 {
        font-size: 2.5rem; /* Başlığı küçült */
        min-height: 80px; 
    }
    .hero-section p {
        font-size: 1.05rem;
    }

    /* --- Mevcut Galeri Bölümü --- */
    .portfolio-gallery {
        padding: 60px 0 80px 0;
    }
    .portfolio-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        grid-auto-rows: 280px; /* Mobil için satır yüksekliği */
        gap: 15px;
    }
    .portfolio-item.wide {
        grid-column: span 1; /* Mobilde geniş olanlar da 1 sütun kaplasın */
    }
    .item-content h3 {
        font-size: 1.4rem;
    }
    .item-content span {
        font-size: 0.8rem;
    }
    .portfolio-item .item-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .external-link-icon {
        top: 20px;
        right: 20px;
    }
}