/* ==================== VARIABLES & THEME ==================== */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-color: #0d6efd;
    --border-color: #3a3a3a;
    --hover-bg: #3a3a3a;
}

/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
/* Yıldız arka planı için pseudo-element */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 200px;
    animation: stars-move 150s linear infinite;
    pointer-events: none; /* Mouse olaylarını geçir */
}

@keyframes stars-move {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}
body {
    /* Layout (Flexbox Sticky Footer) */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    /* Theme & Typography */
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==================== LAYOUT STRUCTURE ==================== */
.container-fluid > main {
    flex: 1 0 auto;
    /* Footer'ı aşağıda tutmak için minimum yükseklik */
    min-height: calc(100vh + 10px); /* Viewport'tan daha uzun, scroll gerektirir */
    padding-bottom: 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    margin-bottom: 0 !important;
    animation: fadeIn 0.5s ease;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: #0d6efd !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: none !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

    .navbar-brand:hover {
        transform: scale(1.05);
        transition: transform 0.2s;
    }

.nav-link {
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

/* CV İndir Butonu Özel Stili */
.nav-link.btn-light {
    background-color: #ffffff !important;
    color: #0d6efd !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.nav-link.btn-light:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

.nav-link.btn-light i {
    font-size: 1.1rem;
}

/* ==================== CARDS ==================== */
.card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3) !important;
    }

.card-header {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.card-body {
    background-color: var(--card-bg) !important;
}

.card-title, .card-text, .card-subtitle {
    color: var(--text-primary) !important;
}

.card-img-top {
    border-radius: 10px 10px 0 0 !important;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    background-color: var(--card-bg) !important;
    border-bottom: none !important;
    padding: 1.5rem 1.25rem 1rem !important;
    text-align: center;
}

    .section-header h4 {
        font-weight: 600;
        color: var(--text-primary) !important;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
        display: inline-block;
        position: relative;
    }

        .section-header h4::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: #0d6efd;
            border-radius: 2px;
        }

/* ==================== BUTTONS ==================== */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background-color: transparent;
}

    .btn-outline-primary:hover {
        background-color: #0d6efd;
        color: white;
    }

.btn-dark {
    background-color: #1a1a1a;
}

.btn-success {
    background-color: #198754;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-info {
    background-color: #0dcaf0;
    color: #000;
}

.btn-secondary {
    background-color: #4a4a4a;
}

/* ==================== BADGES & ALERTS ==================== */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 5px;
    font-weight: 500;
}

    .badge.bg-secondary {
        background-color: #4a4a4a !important;
    }

.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #1e4620 !important;
    color: #75fb79 !important;
}

.alert-danger {
    background-color: #4a1a1a !important;
    color: #ff6b6b !important;
}

.alert-info {
    background-color: #1a3a4a !important;
    color: #6bc5ff !important;
}

/* ==================== FORMS ==================== */
.form-control, .form-select {
    background-color: var(--secondary-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
}

    .form-control:focus, .form-select:focus {
        background-color: var(--card-bg) !important;
        border-color: var(--accent-color) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.form-label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==================== TYPOGRAPHY & LINKS ==================== */
h1, h2, h3, h4, h5, h6, .text-muted {
    color: var(--text-primary) !important;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        color: #0a58ca;
        text-decoration: none;
    }

/* ==================== FOOTER ==================== */
.footer {
    flex-shrink: 0;
    background-color: #0d6efd !important;
    border-top: none !important;
    margin-top: auto; /* Sticky footer için kritik satır */
    padding: 0.3rem 0;
}

/* ==================== UTILS ==================== */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    /* Mobilde daha az ekstra yükseklik */
    .container-fluid > main {
        min-height: calc(100vh + 100px);
    }

    /* CV İndir Butonu - Tablet */
    .nav-link.btn-light {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.9rem !important;
        gap: 0.3rem !important;
        margin: 0.25rem !important;
    }

    .nav-link.btn-light i {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    /* CV İndir Butonu - Mobil */
    .nav-link.btn-light {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.85rem !important;
        gap: 0.25rem !important;
        margin: 0.2rem !important;
        font-weight: 500 !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .nav-link.btn-light i {
        font-size: 0.9rem !important;
    }

    /* Navbar link'leri mobilde küçült */
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    /* Küçük mobillerde daha makul bir değer */
    .container-fluid > main {
        min-height: calc(100vh + 80px);
    }

    /* CV İndir Butonu - Küçük Mobil */
    .nav-link.btn-light {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
        gap: 0.2rem !important;
    }

    .nav-link.btn-light i {
        font-size: 0.85rem !important;
    }
}