/* 1. DEĞİŞKENLER VE TEMEL AYARLAR */
:root {
    --primary: #4f46e5;
    --accent: #06b6d4;
    --bg: #0f172a; 
    --glass-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --neon-green: #00ff41;
    --code-font: 'Plus Jakarta Sans', 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* 2. ARKA PLAN VE ANİMASYONLAR */
.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 100%);
    z-index: -1;
    animation: gradientMove 15s ease infinite alternate;
}

@keyframes gradientMove {
    0% { filter: hue-rotate(0deg); transform: scale(1); }
    100% { filter: hue-rotate(15deg); transform: scale(1.1); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* 3. NAVİGASYON */
.glass-nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 12px 30px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

.logo { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.2rem; letter-spacing: 1px; }
.logo span { color: var(--primary); }

.menu { display: flex; align-items: center; }
.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    opacity: 0.8;
    transition: 0.3s ease;
}

.nav-link:hover { opacity: 1; color: var(--accent); }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--accent); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), #312e81);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    margin-left: 10px;
}

.btn-premium:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5); }

/* 4. LAYOUT VE KARTLAR */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px 20px; 
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.01);
}

.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

/* 5. ÖZEL BİLEŞENLER */
.badge { 
    display: inline-block;
    color: var(--accent); font-weight: 600; 
    letter-spacing: 2px; font-size: 0.8rem; 
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.1);
    padding: 5px 15px; border-radius: 50px;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tech-tags span { 
    background: rgba(255,255,255,0.05); padding: 8px 16px; 
    border-radius: 12px; font-size: 0.85rem; 
    border: 1px solid var(--border);
    animation: floating 3s ease-in-out infinite;
}

.tech-tags span:nth-child(even) { animation-delay: 1s; }

/* Renk Sınıfları */
.t-php { border-left: 3px solid #777bb4 !important; }
.t-sql { border-left: 3px solid #f29111 !important; }
.t-js { border-left: 3px solid #f7df1e !important; }
.t-api { border-left: 3px solid var(--accent) !important; }

/* Social Icons */
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-icon {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.social-icon:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* Skeleton Loading */
.skeleton {
    position: relative; overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
    pointer-events: none;
}
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }

/* 6. PROJE DETAY / LAVA CARD */
.h-lava-card {
    position: relative; height: 240px;
    border-radius: 24px; overflow: hidden;
    background-size: cover; background-position: center;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.h-lava-card::before {
    content: ''; position: absolute; inset: -40%; z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.25), transparent 50%);
    filter: blur(45px); opacity: 0; transition: opacity 0.7s ease;
}
.h-lava-card:hover::before { opacity: 1; }
.h-lava-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.25); }

/* Masaüstü Başlık Ayarları */
.hero-card h1 {
    font-size: 4rem; /* Ekran görüntüsündeki oran için */
    letter-spacing: -1.5px !important; /* Birbirine girmemesi için makul değer */
    line-height: 1.15;
    margin: 25px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.hero-card h1 span {
    display: block; /* "Zarif PHP Çözümleri" alt satıra insin */
    color: var(--accent);
}

.hero-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto;
}


/* ==========================================================================
   7. MOBİL UYUMLULUK (OPTIMIZED & REFACTORED)
   ========================================================================== */
@media (max-width: 992px) {
	
	.blog-content {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .blog-header h1 {
        font-size: 2rem !important;
    }
    /* --- 7.1 Navigasyon & Menü Fix (Taşmayı Önler) --- */
    .glass-nav {
        width: 95% !important;
        padding: 8px 12px !important;
        top: 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .logo {
        font-size: 0.95rem !important;
        flex-shrink: 0 !important;
        margin-right: 5px !important;
    }

    .menu {
        display: flex !important;
        flex-wrap: nowrap !important; /* Elemanların alt satıra düşmesini engeller */
        align-items: center !important;
        gap: 2px !important;
    }

    .nav-link {
        font-size: 0.72rem !important;
        margin: 0 5px !important;
        padding: 5px 0 !important;
        white-space: nowrap !important; /* Kelimelerin bölünmesini engeller */
    }

    .btn-premium {
        padding: 7px 14px !important;
        font-size: 0.7rem !important;
        margin-left: 5px !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    /* --- 7.2 Hero Alanı (Ferahlık & Basıklık Çözümü) --- */
    .hero-card.card {
        padding: 60px 20px !important; /* Dikeyde genişletme */
        min-height: auto !important;
    }

    /* Rozet (Erişilebilir. Güçlü...) */
    .badge, .hero-badge {
        font-size: 0.65rem !important;
        letter-spacing: 1.5px !important;
        padding: 8px 16px !important;
        margin-bottom: 25px !important;
        display: inline-block !important;
    }

    /* Ana Başlık (Karmaşık Problemlere...) */
    .hero-card h1 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important; /* Satır aralığını açarak basıklığı giderir */
        letter-spacing: -0.5px !important;
        margin: 20px 0 !important;
        display: block !important;
    }

    /* Zarif PHP Çözümleri (Vurgu) */
    .hero-card h1 span {
        display: block !important; /* Alt satıra zorla indirir */
        font-size: 2.1rem !important;
        margin-top: 10px !important;
        color: var(--accent) !important;
    }

    /* Alt Açıklama (Sadece kod yazmıyorum...) */
    .hero-card p, .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        opacity: 0.8 !important;
        margin-top: 20px !important;
        padding: 0 10px !important;
    }

    /* --- 7.3 Bento Grid & Kart Düzeni --- */
    .wrapper {
        padding: 100px 15px 40px 15px !important;
    }

    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .card.span-3, .card.span-2, .card {
        grid-column: span 1 !important;
        width: 100% !important;
        padding: 25px !important; /* Diğer kartların iç boşluğu */
    }

    /* Taşmaları Önleyen Genel Kurallar */
    pre, code {
        max-width: 100% !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        font-size: 13px !important;
    }

    .blog-content img {
        width: 100% !important;
        height: auto !important;
    }
}

/* 380px ve Altı (Çok Küçük Ekranlar) İçin İnce Ayar */
@media (max-width: 380px) {
    .nav-link {
        font-size: 0.65rem !important;
        margin: 0 3px !important;
    }
    .logo {
        font-size: 0.85rem !important;
    }
    .hero-card h1 {
        font-size: 1.6rem !important;
    }
}

.blog-content {
    font-size: 1.15rem; /* Okunabilirlik için ideal boyut */
    line-height: 1.8;   /* Satır aralığını açtık */
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;   /* Gözü yormayan okuma genişliği */
    margin: 0 auto;     /* İçeriği ortalar */
    padding: 20px 0;
}

.blog-content h2, .blog-content h3 {
    color: #fff;
    margin: 40px 0 20px 0;
    font-family: 'Outfit', sans-serif;
}

.blog-content p {
    margin-bottom: 25px;
}

/* Kod Bloklarını PHP ve Redis İçin Şıklaştır */
.blog-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

/* Blog Footer (Yazar & Paylaş) */
.blog-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Proje Detay Özel CSS */
.project-preview-light {
    background: #f8fafc !important; /* Müşteri tarafı için açık zemin */
}

.project-preview-dark {
    background: linear-gradient(145deg, #1e293b, #0f172a) !important; /* Admin tarafı için koyu zemin */
}

.project-preview-light h4, .project-preview-light p {
    color: #1e293b !important;
}

/* Görsellerin karttan taşmasını ve basık görünmesini engeller */
.card img {
    transition: transform 0.5s ease;
    object-fit: contain;
    max-height: 500px;
}

.card:hover img {
    transform: scale(1.02);
}
.dark-footer {
    background: #050505; /* Tam karanlık */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 30px;
    margin-top: 100px;
    font-family: 'Outfit', sans-serif;
}

/* MODERN SOFT-NAVY FOOTER */
footer {
    background: var(--dark);
    padding: 80px 0 40px;
    position: relative;
    border-top: 1px solid rgba(148, 163, 184, 0.1); /* Çok hafif gri çizgi */
}

/* Arka plana çok hafif bir derinlik katmak için */
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.f-brand h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 20px;
}

.f-brand h2 span {
    color: var(--accent);
}

.f-brand p {
    color: #94a3b8; /* Slate 400 - Yazı renginle uyumlu */
    max-width: 320px;
    font-size: 0.95rem;
}

.f-title {
    color: var(--light);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 25px;
    display: block;
}

.f-links {
    list-style: none;
}

.f-links li {
    margin-bottom: 12px;
}

.f-links a {
    text-decoration: none;
    color: #94a3b8;
    transition: 0.3s;
    font-size: 0.9rem;
}

.f-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.f-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b; /* Daha sönük bir gri */
    font-size: 0.85rem;
}

.f-socials {
    display: flex;
    gap: 15px;
}

.f-socials a {
    width: 40px;
    height: 40px;
    background: rgba(30, 41, 59, 0.5); /* Hafif açık lacivert */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.f-socials a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .f-brand p { margin: 0 auto; }
    .f-bottom { flex-direction: column; gap: 20px; }
    .f-socials { justify-content: center; }
}
/* About Card Modernizasyon */
.about-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.8;
}

.premium-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #cbd5e1; /* Slate 300 - Göz yormayan gri */
    font-weight: 400;
    max-width: 90%;
}

.premium-text span {
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Kelimelerin altına çok ince bir vurgu çizgisi */
.premium-text span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

/* Harold tarzı soyut arka plan objesi */
.abstract-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.project-main {
    position: relative;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
    min-height: 350px;
}

.mini-items a {
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}

.mini-items a:hover {
    background: rgba(0, 242, 254, 0.05);
    transform: translateX(5px);
}

.mini-items h4:hover {
    color: var(--accent) !important;
}

@media (max-width: 768px) {
    .project-flex-layout { flex-direction: column; }
    .project-mini-list { border-left: none; border-top: 1px solid rgba(255,255,255,0.05); padding-left: 0; padding-top: 20px; }
}
.contact-form .form-group label {
    display: block;
    color: var(--light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.9);
}

.c-item i {
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}