* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f3f7fb, #ffffff 48%, #f5f5f5 100%);
    color: #111827;
}

/* NAVBAR – sticky + blur */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.logo {
    color: #f9fafb;
    font-size: 18px;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LANGUAGE BUTTON */
.lang-button {
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.18),
            rgba(148, 163, 184, 0.32));
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.lang-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.32),
            rgba(148, 163, 184, 0.45));
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.45);
}

/* aktif dil (isteğe göre sadece EN sayfasında kullanıldı) */
.active-lang {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

/* CV BUTTON (primary CTA) */
.cv-button {
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg,
            rgba(34, 211, 238, 0.28),
            rgba(56, 189, 248, 0.6));
    color: #e0faff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(125, 211, 252, 0.9);
    box-shadow:
        0 0 0 1px rgba(8, 47, 73, 0.8),
        0 10px 30px rgba(56, 189, 248, 0.45);
    transition: all 0.25s ease;
}

.cv-button:hover {
    color: #ffffff;
    background: linear-gradient(135deg,
            rgba(56, 189, 248, 0.9),
            rgba(45, 212, 191, 0.95));
    box-shadow:
        0 0 0 1px rgba(8, 47, 73, 0.9),
        0 14px 40px rgba(56, 189, 248, 0.7);
    transform: translateY(-1px);
}

/* LAYOUT */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.section-block {
    margin-bottom: 72px;
}

.section-header {
    margin-bottom: 20px;
}

.section-subtitle {
    margin: 0;
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
}

/* FILTER BUTTONS */
.filter-buttons {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 999px;
    margin-bottom: 24px;
}

.filter-buttons button {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s ease;
}

.filter-buttons button.active {
    background: #0ea5e9;
    color: white;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* CARD BASE */
.card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #f9fafb;
    background: #020617;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(15, 23, 42, 0.7);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.0);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top,
            rgba(2, 6, 23, 0.92),
            rgba(15, 23, 42, 0.4),
            transparent 40%);
}

/* Hover micro-interactions */
.card.clickable:hover {
    transform: translateY(-6px);
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(56, 189, 248, 0.4);
}

.card.clickable:hover img {
    transform: scale(1.06);
    filter: saturate(1.2);
}

/* TEXT INSIDE CARD */
.card h3 {
    margin: 0;
    margin-bottom: 6px;
    font-size: 18px;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: #d1d5db;
}

.card-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #93c5fd;
}

/* BADGES */
.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.badge {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.badge-sap {
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.8);
}

.badge-defense {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.8);
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
}

/* SOCIAL CARDS */
.social-card img {
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.social-card:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.06);
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 18px;
    }

    .container {
        padding: 20px 16px 48px;
    }

    .cards-grid {
        gap: 18px;
    }
}

/* =====================
   THEME VARIABLES
   ===================== */

:root {
    --bg-main: #ffffff;
    --bg-soft: #f5f7fa;
    --text-main: #111827;
    --text-soft: #6b7280;
    --card-bg: #020617;
}

body.light-theme {
    --bg-main: #ffffff;
    --bg-soft: #f5f7fa;
    --text-main: #111827;
    --text-soft: #6b7280;
}

body.dark-theme {
    --bg-main: #020617;
    --bg-soft: #020617;
    --text-main: #f9fafb;
    --text-soft: #9ca3af;
}

/* apply variables */
body {
    background: var(--bg-main);
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

/* =====================
   THEME TOGGLE BUTTON
   ===================== */

.theme-button {
    position: relative;
    width: 44px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.2),
            rgba(148, 163, 184, 0.35));
    border: 1px solid rgba(148, 163, 184, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.theme-button:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* icons */
.theme-icon {
    position: absolute;
    font-size: 14px;
    transition: all 0.25s ease;
}

.theme-icon.sun {
    opacity: 1;
    transform: scale(1);
}

.theme-icon.moon {
    opacity: 0;
    transform: scale(0.5);
}

/* dark mode icon swap */
body.dark-theme .theme-icon.sun {
    opacity: 0;
    transform: scale(0.5);
}

body.dark-theme .theme-icon.moon {
    opacity: 1;
    transform: scale(1);
}