@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-card: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --navbar-height: 80px; /* Navbar yüksekliği */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* NAVBAR BOZUKLUĞUNU DÜZELTEN SATIR */
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(129, 140, 248, 0.05) 0px, transparent 50%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* Typography & Utils */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.code-font { font-family: 'JetBrains Mono', monospace; }
a { text-decoration: none; transition: all 0.2s ease; }
.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zorla Açık Renk Yapma (Global Dark Mode Fix) */
body, 
p, 
span, 
small, 
li, 
div, 
.card-text, 
.text-muted, 
.lead,
.article-content {
    color: var(--text-main); /* Varsayılan metin rengi */
}

/* Text Muted için özel override */
.text-muted {
    color: var(--text-muted) !important;
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6, 
.card-title, 
.text-white {
    color: #fff !important;
}

/* Form Elemanları Hariç */
input, textarea, select {
    color: #fff !important; /* Form yazılarını da beyaz yap */
}

/* Linkler */
a {
    color: var(--text-main);
}
a:hover {
    color: var(--accent);
}

/* Yanıp Sönen Yeşil Nokta */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.animate-pulse {
    animation: pulse 2s infinite;
}

/* Glass Cards */
.glass-card, .card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    color: var(--text-main);
}

/* Neon Effects & Glows */
:root {
    --neon-blue: #38bdf8;
    --neon-purple: #818cf8;
    --neon-green: #4ade80;
}

/* 1. Neon Butonlar */
.btn-primary-new {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2), inset 0 0 5px rgba(56, 189, 248, 0.1);
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ortalama ve Düzen */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px; /* İkon ile yazı arası boşluk */
    line-height: 1; /* Satır yüksekliğini sıfırla */
    padding: 12px 24px; /* Dengeli iç boşluk */
    height: 50px; /* Sabit yükseklik verelim ki şaşmasın */
}

.btn-primary-new:hover {
    background: var(--neon-blue);
    color: #09090b;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), 0 0 40px rgba(56, 189, 248, 0.4);
    text-shadow: none;
    transform: translateY(-2px);
    border-color: transparent;
}

/* 2. Kartlara Hoverda Neon Çerçeve */
.glass-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-5px);
}

/* 3. Başlıklara Hafif Neon Parlaması */
.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3)); /* Yazı parlaması */
}

/* 4. Tech İkonları Parlasın */
.tech-card i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.tech-card:hover i {
    filter: drop-shadow(0 0 15px var(--accent)); /* Hoverda ikon parlasın */
    color: var(--accent) !important;
}

/* 5. Navbar Linkleri Hover */
.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

/* 6. Form Alanları Focus */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2) !important;
    border-color: var(--neon-blue) !important;
}

/* YENİ BUTON STİLİ (Eski kodun üzerine yazdık) */
/* .btn-primary-new { ... } kısmını yukarıda güncelledim */

.btn-outline-custom {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-custom:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* LİSTE DÜZELTMELERİ */
.list-spaced .list-group-item {
    margin-bottom: 12px;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted);
    transition: all 0.2s;
}

.list-spaced .list-group-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    transform: translateX(5px);
    color: #fff;
}

/* TECH STACK KARTLARI */
.tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
    color: #fff;
}

.tech-card i {
    font-size: 2.5rem;
    transition: all 0.3s;
}

.tech-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px currentColor);
}

/* Form Override (Dark Mode Force) */
.form-control, .form-select, .form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
}

/* Navbar - Neon Glass */
.navbar {
    background: rgba(9, 9, 11, 0.6) !important; /* Hafif şeffaf koyu */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3); /* Neon sınır çizgisi */
    box-shadow: 0 4px 30px rgba(56, 189, 248, 0.15); /* Aşağı doğru mavi neon parlaması */
    padding: 15px 0;
    height: var(--navbar-height);
    transition: all 0.3s ease;
}

/* Navbar Scrolled State */
.navbar:hover {
    background: rgba(9, 9, 11, 0.8) !important;
    box-shadow: 0 4px 40px rgba(56, 189, 248, 0.25); /* Hoverda parlama artsın */
}
.nav-link { color: var(--text-muted) !important; font-weight: 500; margin: 0 10px; }
.nav-link:hover, .nav-link.active { color: #fff !important; }

/* Footer - Neon Style */
footer { 
    border-top: 1px solid rgba(56, 189, 248, 0.3); /* Neon mavi çizgi */
    box-shadow: 0 -5px 25px rgba(56, 189, 248, 0.1); /* Yukarı doğru mavi huzme */
    background: linear-gradient(to bottom, #020617, #0f172a); 
    padding: 60px 0; 
}

/* Footer Sosyal İkonlar Neon Efekt */
footer .social-links .btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer .social-links .btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 15px var(--neon-blue), inset 0 0 10px rgba(56, 189, 248, 0.2);
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 5px var(--neon-blue);
}

/* Breadcrumb & Hero Fix */
.page-header {
    padding-top: 40px; /* Ekstra boşluk */
    padding-bottom: 40px;
}

/* RESPONSIVE AYARLAR */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 70px; /* Mobilde navbar'ı biraz küçültelim */
    }

    /* Mobil Navbar Onarım (Standart Flex Yapısı) */
    .navbar-brand {
        max-width: calc(100% - 70px); /* Buton genişliğini (yaklaşık 60-70px) çıkar, kalanı logoya ver */
        margin-right: auto;
    }
    
    .navbar-brand img {
        height: auto !important;
        max-height: 35px !important; /* Yükseklik sınırı */
        width: auto;
        max-width: 100%; /* Kendi kutusundan taşmasın */
        object-fit: contain;
    }
    
    .navbar-toggler {
        border-color: rgba(255,255,255,0.1);
        padding: 4px 10px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-collapse {
        background: rgba(9, 9, 11, 0.98); /* Çok koyu opak arka plan */
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.08);
        margin-top: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }
    
    .nav-link {
        margin: 5px 0;
        padding: 12px 15px !important;
        border-radius: 8px;
        display: block; /* Tam genişlikte tıklanabilir alan */
        border: 1px solid transparent;
    }
    
    .nav-link:hover, .nav-link.active {
        background: rgba(56, 189, 248, 0.1);
        color: var(--accent) !important;
        border-color: rgba(56, 189, 248, 0.2);
        transform: translateX(5px); /* Hafif kaydırma efekti */
    }

    /* İletişim Butonu Mobilde */
    .nav-item .btn {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        text-align: center;
        background: var(--accent);
        color: #000;
        border: none;
    }

    /* Hero Bölümü Mobilde */
    .min-vh-100 {
        min-height: auto !important;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    h1.display-2 {
        font-size: 2.2rem; /* Mobilde başlık daha da küçülsün */
        line-height: 1.2;
    }
}

@media (max-width: 575.98px) {
    /* Küçük Telefonlar */
    .btn-primary-new, .btn-outline-custom {
        width: 100%; /* Butonlar tam genişlik */
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }

    .d-flex.gap-3 {
        flex-direction: column; /* Butonları alt alta al */
        gap: 0.5rem !important;
    }
    
    .tech-card i {
        font-size: 2rem;
    }
    
    h1.display-2 {
        font-size: 2rem;
    }
}
