/* ============================================
   GENEL AYARLAR & DEĞİŞKENLER
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-red: #d92323;
    --primary-red-hover: #ff2d2d;
    --text-gray: #8a8a8a;
    --text-light: #b0b0b0;
    --border-color: #222;
    --border-light: rgba(255,255,255,0.08);
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-surface: rgba(255,255,255,0.03);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --container-padding: 1.5rem;
    --navbar-height: 70px;

    /* light mode değişkenleri - varsayılan dark */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-surface-rgb: 255,255,255;
    --text-primary: #ffffff;
    --text-secondary: #8a8a8a;
    --border-color-rgb: 255,255,255;
    --accent-color: #d92323;
    --accent-hover: #ff2d2d;
    --card-bg: #0a0a0a;
}

[data-theme="light"] {
    --bg-primary: #f0f4ff;
    --bg-secondary: #ffffff;
    --bg-surface-rgb: 0,0,0;
    --text-primary: #1a1a2e;
    --text-secondary: #4b5563;
    --border-color-rgb: 0,0,0;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: #ffffff;

    --primary-red: #2563eb;
    --primary-red-hover: #1d4ed8;
    --text-gray: #4b5563;
    --text-light: #374151;
    --border-color: #e5e7eb;
    --border-light: rgba(0,0,0,0.06);
    --bg-dark: #f0f4ff;
    --bg-card: #ffffff;
    --bg-surface: rgba(0,0,0,0.02);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 0.5rem);
    overflow-x: hidden;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

section[id], header[id] {
    scroll-margin-top: calc(var(--navbar-height) + 0.5rem);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================
   ANİMASYONLAR
   ============================================ */
@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217,35,35,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(217,35,35,0); }
}
@keyframes dotGlowLight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}
.red-dot, .green-dot {
    animation: dotGlow 2s ease-in-out infinite;
}
[data-theme="light"] .red-dot,
[data-theme="light"] .green-dot {
    animation-name: dotGlowLight;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.06);
    transition: background 0.4s ease, border-color 0.3s ease;
}
[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: var(--navbar-height);
    max-width: 100%;
}
.navbar.scrolled {
    background: rgba(5,5,5,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.logo {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    transition: color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}
.logo:hover { opacity: 0.85; }

.logo-img {
    height: clamp(46px, 7vw, 60px);
    width: auto;
    display: block;
}
.logo-img-light { display: none; }
[data-theme="light"] .logo-img-dark { display: none; }
[data-theme="light"] .logo-img-light { display: block; }
.red-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: inline-block;
    flex-shrink: 0;
}
.green-dot {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
    border-radius: 999px;
    overflow: hidden;
}
.lang-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { background: var(--accent-color); color: #fff; }

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(var(--border-color-rgb), 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}
.theme-toggle i { position: absolute; transition: opacity 0.3s ease, transform 0.3s ease; }
.theme-toggle .fa-sun { opacity: 1; transform: rotate(0deg); }
.theme-toggle .fa-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle .fa-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle .fa-moon { opacity: 1; transform: rotate(0deg); }
.theme-toggle:hover {
    border-color: var(--accent-color);
    background: rgba(var(--bg-surface-rgb), 0.1);
}

.menu-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 140;
}
.line {
    width: 28px; height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease, background-color 0.3s ease;
    display: block;
}
@media (hover: hover) {
    .menu-btn:hover .line { width: 36px; background-color: var(--accent-color); }
}

/* ============================================
   SIDE MENU
   ============================================ */
.side-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 120;
}
.side-menu-overlay.active { opacity: 1; visibility: visible; }
.side-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 100%);
    max-width: 100vw;
    height: 100vh; height: 100dvh;
    background: var(--bg-card);
    border-left: 1px solid rgba(var(--border-color-rgb), 0.12);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 130;
    display: flex; flex-direction: column; gap: 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.side-menu.active { transform: translateX(0); }
.side-menu-close {
    align-self: flex-end;
    background: transparent; border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.side-menu-close:hover { background: rgba(var(--bg-surface-rgb), 0.1); }
.side-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.side-menu-logo {
    height: 38px;
    width: auto;
}
.side-menu-label {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: auto;
}
.side-menu-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.side-menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.06);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}
.side-menu-link:hover, .side-menu-link:focus-visible {
    color: var(--accent-color);
    padding-left: 12px;
    outline: none;
}
.side-menu-footer {
    margin-top: auto;
    display: flex; gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--border-color-rgb), 0.08);
}
.side-menu-footer a {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(var(--border-color-rgb), 0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.side-menu-footer a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(var(--accent-color-rgb, 217,35,35), 0.1);
}
/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: calc(var(--navbar-height) + clamp(1rem, 5vw, 3rem)) 0 clamp(2rem, 5vw, 4rem);
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh; min-height: 100dvh;
    width: 100%;
}

.hero-badge-row {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    flex-wrap: wrap;
    padding: 0 1rem;
}
.hero-badge {
    border: 1px solid var(--border-color);
    padding: clamp(6px, 1.5vw, 10px) clamp(15px, 3vw, 25px);
    border-radius: 30px;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}
@media (hover: hover) {
    .hero-badge:hover { border-color: rgba(var(--border-color-rgb), 0.25); background: rgba(var(--bg-surface-rgb), 0.03); transform: translateY(-2px); }
}
.hero-badge-separator {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--accent-color);
    font-weight: 700;
    display: flex; align-items: center;
    user-select: none;
}
.ampersand { font-family: 'Georgia', serif; font-style: italic; font-weight: bold; color: var(--accent-color); }

.hero-main {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(0.8rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}
.hero-tags-left, .hero-tags-right {
    display: flex; flex-direction: column; gap: 0.8rem; z-index: 5;
}
.hero-tag {
    padding: clamp(6px, 1vw, 10px) clamp(12px, 2vw, 18px);
    border: 1px solid rgba(var(--border-color-rgb), 0.12);
    border-radius: 999px;
    background: rgba(var(--bg-surface-rgb), 0.03);
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    position: relative; cursor: help;
    color: var(--text-light);
    transition: all 0.4s ease;
    white-space: nowrap;
}
@media (hover: hover) {
    .hero-tag:hover { border-color: rgba(var(--border-color-rgb), 0.3); background: rgba(var(--bg-surface-rgb), 0.06); color: var(--text-primary); transform: translateY(-2px); }
}
.hero-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px); left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    background: rgba(10,10,10,0.96);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 10px 14px;
    white-space: normal;
    max-width: 240px;
    width: max-content; min-width: 160px;
    text-align: left;
    color: #fff; font-size: 0.85rem; line-height: 1.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 15;
}
[data-theme="light"] .hero-tag::after {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.16);
    color: #1a1a2e;
}
.hero-tags-left .hero-tag::after { left: 0; transform: translateX(0) translateY(8px); }
.hero-tags-right .hero-tag::after { right: 0; left: auto; transform: translateX(0) translateY(8px); }
@media (hover: hover) {
    .hero-tag:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .hero-tags-left .hero-tag:hover::after, .hero-tags-right .hero-tag:hover::after { transform: translateX(0) translateY(0); }
}

.hero-portrait-card {
    width: min(340px, 65vw);
    aspect-ratio: 1 / 1.15;
    border-radius: 32px;
    position: relative; z-index: 1;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}
.hero-portrait-card:hover { transform: scale(1.02); }
.portrait-frame {
    width: 100%; height: 100%;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(var(--border-color-rgb), 0.16);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative; z-index: 2;
    transition: transform 0.5s ease, border-color 0.4s ease;
}
@media (hover: hover) {
    .portrait-frame:hover { transform: scale(1.03); border-color: rgba(var(--border-color-rgb), 0.3); }
}
.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.portrait-glow {
    position: absolute; inset: -4px;
    border-radius: 36px;
    z-index: 0; filter: blur(15px);
    opacity: 0.5; pointer-events: none;
    transition: opacity 0.5s ease;
}
[data-theme="dark"] .portrait-glow {
    background: radial-gradient(circle at 50% 30%, rgba(217,35,35,0.2), transparent 70%);
}
[data-theme="light"] .portrait-glow {
    background: radial-gradient(circle at 50% 30%, rgba(37,99,235,0.2), transparent 70%);
}
.hero-portrait-card:hover .portrait-glow { opacity: 0.8; }

.hero-info-cards {
    display: flex; gap: clamp(0.8rem, 2vw, 1.5rem);
    justify-content: center; flex-wrap: wrap;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    max-width: 100%;
}
.hero-side-box {
    width: min(280px, 90vw);
    flex: 1 1 250px; max-width: 400px;
    border-radius: 22px;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(145deg, rgba(var(--bg-surface-rgb), 0.08), rgba(var(--bg-surface-rgb), 0.02));
    border: 1px solid rgba(var(--border-color-rgb), 0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
[data-theme="light"] .hero-side-box {
    background: linear-gradient(145deg, rgba(37,99,235,0.08), rgba(0,0,0,0.02));
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
@media (hover: hover) {
    .hero-side-box:hover { transform: translateY(-6px); border-color: rgba(var(--border-color-rgb), 0.25); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
}
.hero-side-box h4 {
    margin-bottom: 0.8rem;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
}
.hero-side-box p { font-size: clamp(0.85rem, 1.2vw, 0.95rem); color: var(--text-secondary); line-height: 1.6; margin: 0; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.5rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto clamp(1.5rem, 4vw, 3rem);
    width: 100%;
    padding: 0 1rem;
}
.stat-item {
    text-align: center;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(0.4rem, 1vw, 0.8rem);
    border: 1px solid rgba(var(--border-color-rgb), 0.08);
    border-radius: 16px;
    background: rgba(var(--bg-surface-rgb), 0.02);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.stat-item:hover { transform: translateY(-5px); border-color: var(--accent-color); }
[data-theme="dark"] .stat-item:hover { box-shadow: 0 8px 25px rgba(217,35,35,0.15); }
[data-theme="light"] .stat-item:hover { box-shadow: 0 8px 25px rgba(37,99,235,0.15); }
.stat-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900; color: var(--text-primary);
    display: block; line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: clamp(0.55rem, 1.2vw, 0.8rem);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-bottom { text-align: center; max-width: 700px; margin: 0 auto; width: 100%; padding: 0 1rem; }
.social-links {
    margin-bottom: clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: var(--text-secondary);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 0.5rem;
}
.social-links a { color: var(--text-primary); text-decoration: none; font-weight: 600; transition: color 0.3s ease; padding: 0.25rem 0.5rem; }
.social-links a:hover { color: var(--accent-color); }
.divider { margin: 0 10px; opacity: 0.5; }
.hero-highlight-box {
    display: inline-flex; align-items: center; gap: 0.8rem;
    background: rgba(var(--bg-surface-rgb), 0.04);
    border: 1px solid rgba(var(--border-color-rgb), 0.1);
    border-radius: 20px;
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    transition: border-color 0.4s ease, background 0.4s ease;
}
.hero-highlight-box:hover { border-color: rgba(var(--border-color-rgb), 0.2); background: rgba(var(--bg-surface-rgb), 0.06); }
.highlight-label { color: var(--accent-color); font-size: clamp(0.7rem, 1vw, 0.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.hero-highlight-box p { color: var(--text-primary); font-weight: 500; margin: 0; font-size: clamp(0.8rem, 1.2vw, 1rem); }
.intro-text h2 { font-size: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.5rem; font-weight: 400; line-height: 1.4; color: var(--text-primary); }
.intro-text p { color: var(--text-secondary); font-size: clamp(0.9rem, 1.5vw, 1.05rem); line-height: 1.7; margin-bottom: 2rem; }
.skills-highlight { display: flex; align-items: center; justify-content: center; gap: 10px; color: #10b981; font-weight: 600; font-size: clamp(0.85rem, 1.2vw, 0.95rem); flex-wrap: wrap; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    gap: 1rem; flex-wrap: wrap;
}
.section-title { font-size: clamp(1.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -1px; flex: 1; min-width: 250px; color: var(--text-primary); }
.section-label { color: var(--accent-color); font-size: clamp(0.8rem, 1.5vw, 0.95rem); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }

/* ============================================
   SERVICES - Hover ile açılan
   ============================================ */
.services-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.services-list { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.service-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}
.service-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(var(--bg-surface-rgb), 0.02);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.service-item:hover::after { opacity: 1; }
.service-item.active {
    border-color: rgba(var(--border-color-rgb), 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    background: rgba(var(--bg-surface-rgb), 0.06);
    transform: translateY(-6px) scale(1.01);
}
.service-item:hover { background: rgba(var(--bg-surface-rgb), 0.06); border-color: rgba(var(--border-color-rgb), 0.2); transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.service-number { font-size: clamp(0.8rem, 1.5vw, 1rem); font-weight: 700; color: var(--accent-color); opacity: 0.7; transition: opacity 0.4s ease; }
.service-item:hover .service-number,
.service-item.active .service-number { opacity: 1; }
.service-item h3 { font-size: clamp(1rem, 2.5vw, 2rem); font-weight: 500; color: var(--text-secondary); transition: color 0.4s ease; margin: 0; }
.service-item:hover h3,
.service-item.active h3 { color: var(--text-primary); }
.service-detail {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    grid-column: 2;
    line-height: 1.6;
    transition: max-height 0.5s ease, margin-top 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}
.service-item:hover .service-detail,
.service-item.active .service-detail {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}
.service-arrow {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.5s ease;
    color: var(--accent-color);
}
.service-item:hover .service-arrow,
.service-item.active .service-arrow { opacity: 1; transform: translateX(0); }

/* ============================================
   ABOUT
   ============================================ */
.about-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.about-content { display: flex; gap: clamp(2rem, 5vw, 4rem); align-items: center; flex-wrap: wrap; }
.about-text { flex: 1 1 50%; min-width: 280px; }
.about-text .section-label { display: inline-block; margin-bottom: 1rem; }
.giant-heading { font-size: clamp(2rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; color: var(--text-primary); }
.red-dot-text { color: var(--accent-color); }
.about-text p { color: var(--text-secondary); font-size: clamp(0.9rem, 1.5vw, 1.1rem); line-height: 1.7; margin-bottom: 2rem; max-width: 90%; }
.more-link { color: var(--text-primary); text-decoration: none; font-size: clamp(0.95rem, 1.5vw, 1.05rem); font-weight: 600; border-bottom: 2px solid var(--accent-color); padding-bottom: 4px; transition: color 0.3s ease, border-color 0.3s ease; display: inline-block; }
.more-link:hover { color: var(--accent-color); border-color: var(--text-primary); }
.about-image { flex: 0 0 auto; width: min(500px, 100%); height: auto; aspect-ratio: 16/11; max-height: 70vh; background: #111; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.25); position: relative; transition: transform 0.5s ease, box-shadow 0.5s ease; }
.about-image:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.about-image:hover img { transform: scale(1.03); }
.about-image-badge { position: absolute; bottom: clamp(10px, 2vw, 20px); left: clamp(10px, 2vw, 20px); background: rgba(5,5,5,0.85); backdrop-filter: blur(8px); padding: clamp(6px, 1vw, 10px) clamp(12px, 2vw, 18px); border-radius: 30px; font-size: clamp(0.7rem, 1.2vw, 0.85rem); font-weight: 600; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.12); color: #fff; transition: transform 0.4s ease; }
.about-image:hover .about-image-badge { transform: translateY(-2px); }

/* ============================================
   SKILLS
   ============================================ */
.skills-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.skills-container { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.skill-row { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1rem); padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--border-light); border-radius: 16px; background: var(--bg-surface); transition: all 0.4s ease; flex-wrap: wrap; }
.skill-row:hover { transform: translateY(-4px); border-color: var(--accent-color); background: rgba(var(--bg-surface-rgb), 0.08); }
[data-theme="dark"] .skill-row:hover { box-shadow: 0 8px 25px rgba(217,35,35,0.12); }
[data-theme="light"] .skill-row:hover { box-shadow: 0 8px 25px rgba(37,99,235,0.12); }
.skill-info { display: flex; align-items: center; gap: 0.8rem; min-width: 120px; flex-shrink: 0; }
.skill-icon { width: clamp(34px, 5vw, 40px); height: clamp(34px, 5vw, 40px); border-radius: 10px; background: rgba(var(--bg-surface-rgb), 0.05); display: flex; align-items: center; justify-content: center; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-primary); transition: color 0.4s ease, background 0.4s ease, transform 0.4s ease; }
.skill-row:hover .skill-icon { color: var(--accent-color); transform: scale(1.1); }
[data-theme="dark"] .skill-row:hover .skill-icon { background: rgba(217,35,35,0.2); }
[data-theme="light"] .skill-row:hover .skill-icon { background: rgba(37,99,235,0.2); }
.skill-name { font-weight: 700; font-size: clamp(0.85rem, 1.5vw, 1rem); color: var(--text-primary); transition: color 0.4s ease; white-space: nowrap; }
.skill-row:hover .skill-name { color: var(--accent-color); }
.skill-line-container { flex: 1 1 100px; height: 8px; background: rgba(var(--bg-surface-rgb), 0.08); border-radius: 999px; overflow: hidden; }
.skill-line { height: 100%; width: 0; transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1); border-radius: inherit; }
[data-theme="dark"] .skill-line { background: linear-gradient(90deg, #ffffff 0%, var(--accent-color) 100%); box-shadow: 0 0 20px rgba(217,35,35,0.25); }
[data-theme="light"] .skill-line { background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-color) 100%); box-shadow: 0 0 20px rgba(37,99,235,0.25); }
.skill-percent { font-weight: 700; font-size: clamp(0.85rem, 1.5vw, 1rem); color: var(--text-primary); min-width: 40px; text-align: right; transition: color 0.4s ease; }
.skill-row:hover .skill-percent { color: var(--accent-color); }

/* ============================================
   TIMELINE
   ============================================ */
.timeline-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.timeline-tabs { display: flex; gap: 0.5rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; }
.timeline-tab { padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(1rem, 2.5vw, 2rem); border: 1px solid rgba(var(--border-color-rgb), 0.12); background: transparent; color: var(--text-secondary); border-radius: 30px; cursor: pointer; font-family: 'Outfit', sans-serif; font-size: clamp(0.8rem, 1.5vw, 0.95rem); font-weight: 600; transition: all 0.4s ease; }
.timeline-tab.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; transform: scale(1.05); }
.timeline-tab:hover:not(.active) { border-color: rgba(var(--border-color-rgb), 0.3); color: var(--text-primary); transform: translateY(-2px); }
.timeline-content { display: none; position: relative; padding-left: clamp(20px, 5vw, 30px); }
.timeline-content.active { display: block; animation: fadeSlideIn 0.5s ease; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.timeline-content::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: rgba(var(--border-color-rgb), 0.08); }
.timeline-item { position: relative; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); padding-left: 20px; }
.timeline-dot { position: absolute; left: -26px; top: 8px; width: 14px; height: 14px; background: var(--accent-color); border-radius: 50%; border: 3px solid var(--bg-primary); transition: transform 0.4s ease, box-shadow 0.4s ease; }
[data-theme="dark"] .timeline-dot { box-shadow: 0 0 15px rgba(217,35,35,0.4); }
[data-theme="light"] .timeline-dot { box-shadow: 0 0 15px rgba(37,99,235,0.4); }
.timeline-item:hover .timeline-dot { transform: scale(1.3); }
[data-theme="dark"] .timeline-item:hover .timeline-dot { box-shadow: 0 0 25px rgba(217,35,35,0.6); }
[data-theme="light"] .timeline-item:hover .timeline-dot { box-shadow: 0 0 25px rgba(37,99,235,0.6); }
.timeline-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 16px; padding: clamp(1rem, 2.5vw, 1.5rem); transition: all 0.4s ease; }
.timeline-card:hover { transform: translateX(6px); border-color: rgba(var(--border-color-rgb), 0.25); box-shadow: 0 12px 35px rgba(0,0,0,0.25); }
.timeline-date { font-size: clamp(0.7rem, 1.2vw, 0.8rem); color: var(--accent-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }
.timeline-card h3 { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 0.3rem; font-weight: 600; color: var(--text-primary); }
.timeline-place { color: var(--text-light); font-size: clamp(0.8rem, 1.3vw, 0.9rem); margin-bottom: 0.8rem; }
.timeline-card p:last-child { color: var(--text-secondary); font-size: clamp(0.85rem, 1.3vw, 0.95rem); line-height: 1.6; margin: 0; }
.timeline-cv { text-align: center; margin-top: clamp(1rem, 3vw, 2rem); }
.cv-button { display: inline-flex; align-items: center; gap: 0.6rem; padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 4vw, 2.5rem); background: var(--accent-color); color: #fff; border-radius: 30px; font-weight: 700; font-size: clamp(0.9rem, 1.5vw, 1rem); transition: all 0.4s ease; border: none; cursor: pointer; box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
[data-theme="dark"] .cv-button { box-shadow: 0 6px 20px rgba(217,35,35,0.3); }
.cv-button:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 12px 35px rgba(37,99,235,0.5); }
[data-theme="dark"] .cv-button:hover { box-shadow: 0 12px 35px rgba(217,35,35,0.5); }

/* ============================================
   CERTIFICATES
   ============================================ */
.certificates-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.certificates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(0.8rem, 2vw, 1.5rem); }
.certificate-card { position: relative; background: linear-gradient(135deg, rgba(var(--bg-surface-rgb), 0.08), rgba(var(--bg-surface-rgb), 0.02)); border: 1px solid var(--border-light); border-radius: 18px; padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem); transition: all 0.4s ease; }
.certificate-card:hover { transform: translateY(-6px); border-color: rgba(var(--border-color-rgb), 0.2); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.certificate-icon { width: clamp(40px, 6vw, 50px); height: clamp(40px, 6vw, 50px); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--accent-color); margin-bottom: 1.2rem; transition: transform 0.4s ease, background 0.4s ease; }
[data-theme="dark"] .certificate-icon { background: rgba(217,35,35,0.15); }
[data-theme="light"] .certificate-icon { background: rgba(37,99,235,0.15); }
.certificate-card:hover .certificate-icon { transform: scale(1.1) rotate(-5deg); }
.certificate-year { position: absolute; top: clamp(1.2rem, 2.5vw, 2rem); right: clamp(1rem, 2vw, 1.5rem); color: var(--accent-color); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.certificate-card h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.certificate-issuer { color: var(--text-secondary); font-size: clamp(0.85rem, 1.3vw, 0.95rem); margin: 0; }

/* ============================================
   VALUES
   ============================================ */
.values-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(0.8rem, 2vw, 1.5rem); }
.value-card { background: linear-gradient(135deg, rgba(var(--bg-surface-rgb), 0.08), rgba(var(--bg-surface-rgb), 0.02)); border: 1px solid var(--border-light); border-radius: 18px; padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem); transition: all 0.4s ease; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(var(--border-color-rgb), 0.2); box-shadow: 0 16px 40px rgba(0,0,0,0.25); background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(var(--bg-surface-rgb), 0.04)); }
[data-theme="dark"] .value-card:hover { background: linear-gradient(135deg, rgba(217,35,35,0.15), rgba(255,255,255,0.04)); }
.value-icon { width: clamp(40px, 6vw, 50px); height: clamp(40px, 6vw, 50px); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--accent-color); margin-bottom: 1.2rem; transition: transform 0.4s ease, background 0.4s ease; }
[data-theme="dark"] .value-icon { background: rgba(217,35,35,0.15); }
[data-theme="light"] .value-icon { background: rgba(37,99,235,0.15); }
.value-card:hover .value-icon { transform: scale(1.1) rotate(-5deg); background: rgba(37,99,235,0.25); }
[data-theme="dark"] .value-card:hover .value-icon { background: rgba(217,35,35,0.25); }
.value-card h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); margin-bottom: 0.7rem; font-weight: 600; color: var(--text-primary); }
.value-card p { color: var(--text-secondary); line-height: 1.6; font-size: clamp(0.85rem, 1.3vw, 0.95rem); margin: 0; }

/* ============================================
   PROJECTS
   ============================================ */
.projects-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(0.8rem, 2vw, 1.5rem); }
.project-card { display: block; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 18px; overflow: hidden; transition: all 0.5s ease; text-decoration: none; color: inherit; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(var(--border-color-rgb), 0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.project-image { height: clamp(160px, 30vw, 200px); overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-image img { transform: scale(1.08); }
.project-body { padding: clamp(1rem, 2vw, 1.5rem); }
.card-tag { color: var(--accent-color); font-size: clamp(0.7rem, 1vw, 0.75rem); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; display: inline-block; }
.project-body h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin-bottom: 0.6rem; font-weight: 600; color: var(--text-primary); }
.project-body p { color: var(--text-secondary); line-height: 1.6; font-size: clamp(0.85rem, 1.2vw, 0.95rem); margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tech span { padding: clamp(3px, 0.5vw, 5px) clamp(8px, 1vw, 12px); background: rgba(var(--bg-surface-rgb), 0.05); border-radius: 20px; font-size: clamp(0.7rem, 1vw, 0.8rem); color: var(--text-light); border: 1px solid rgba(var(--border-color-rgb), 0.08); transition: all 0.3s ease; }
.project-tech span:hover { border-color: var(--accent-color); color: var(--text-primary); }
[data-theme="dark"] .project-tech span:hover { background: rgba(217,35,35,0.2); }
[data-theme="light"] .project-tech span:hover { background: rgba(37,99,235,0.2); }

/* ============================================
   BLOG
   ============================================ */
.blog-section { padding: clamp(2rem, 6vw, 5rem) 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.blog-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 18px; padding: clamp(1rem, 2vw, 1.5rem); transition: all 0.4s ease; overflow: hidden; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); border-color: rgba(var(--border-color-rgb), 0.2); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.blog-meta { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: clamp(0.75rem, 1.2vw, 0.85rem); margin-bottom: 1rem; flex-wrap: wrap; }
.blog-category { color: var(--accent-color); font-weight: 600; }
.meta-dot { width: 5px; height: 5px; background: var(--text-secondary); border-radius: 50%; }
.blog-title { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-primary); margin-bottom: 0.8rem; display: block; line-height: 1.3; transition: color 0.3s ease; }
.blog-title:hover { color: var(--accent-color); }
.blog-excerpt { color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; font-size: clamp(0.85rem, 1.2vw, 0.95rem); }
.read-more { color: var(--accent-color); text-decoration: none; font-weight: 600; font-size: clamp(0.8rem, 1.2vw, 0.9rem); transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.read-more:hover { color: var(--text-primary); transform: translateX(3px); }

@media (max-width: 1100px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}
/* ============================================
   FOOTER / CONTACT
   ============================================ */
.footer-section { padding: clamp(2rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--border-color); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(0.8rem, 2vw, 1.5rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.contact-card { background: linear-gradient(135deg, rgba(var(--bg-surface-rgb), 0.05), rgba(var(--bg-surface-rgb), 0.02)); border: 1px solid rgba(var(--border-color-rgb), 0.1); border-radius: 20px; padding: clamp(1.2rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; text-decoration: none; color: var(--text-primary); transition: all 0.4s ease; }
.contact-card:hover { transform: translateY(-6px); border-color: rgba(var(--border-color-rgb), 0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.contact-icon { width: clamp(40px, 6vw, 50px); height: clamp(40px, 6vw, 50px); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--accent-color); margin-bottom: 1rem; transition: transform 0.4s ease, background 0.4s ease; }
[data-theme="dark"] .contact-icon { background: rgba(217,35,35,0.15); }
[data-theme="light"] .contact-icon { background: rgba(37,99,235,0.15); }
.contact-card:hover .contact-icon { transform: scale(1.1); }
[data-theme="dark"] .contact-card:hover .contact-icon { background: rgba(217,35,35,0.25); }
[data-theme="light"] .contact-card:hover .contact-icon { background: rgba(37,99,235,0.25); }
.contact-card .card-tag { margin-bottom: 0.4rem; }
.contact-card h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin-bottom: 0.6rem; font-weight: 700; }
.contact-card p { color: var(--text-secondary); line-height: 1.6; font-size: clamp(0.8rem, 1.2vw, 0.9rem); margin-bottom: 0.8rem; flex: 1; }
.contact-link { color: var(--accent-color); font-size: clamp(0.75rem, 1.2vw, 0.85rem); font-weight: 600; word-break: break-all; }

.contact-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.contact-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form-header { margin-bottom: 1.5rem; }
.contact-form-header h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; margin-top: 0.5rem; color: var(--text-primary); }
.contact-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form .form-group:last-of-type { margin-bottom: 1.5rem; }
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--border-color-rgb), 0.1);
}
.form-error { display: block; margin-top: 0.4rem; color: var(--accent-color); font-size: 0.8rem; }
.contact-form .cv-button { border: none; cursor: pointer; font-family: inherit; }

.footer-bottom { text-align: center; padding-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--border-color); }
.footer-tags { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 15px); color: var(--text-secondary); font-size: clamp(0.75rem, 1.2vw, 0.9rem); margin-bottom: 1rem; flex-wrap: wrap; }
.footer-copy { color: var(--text-secondary); font-size: clamp(0.7rem, 1.1vw, 0.85rem); }

/* ============================================
   BLOG MODAL
   ============================================ */
.blog-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.blog-modal {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    width: min(700px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.35s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .blog-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.blog-modal-overlay.active .blog-modal {
    transform: translateY(0);
}
.blog-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 10;
}
[data-theme="light"] .blog-modal-close {
    color: #1a1a2e;
    background: rgba(0,0,0,0.05);
}
.blog-modal-close:hover {
    background: var(--accent-color);
    color: #fff;
}
.blog-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.blog-modal-meta .blog-category {
    color: var(--accent-color);
    font-weight: 600;
}
.blog-modal-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-primary);
}
.blog-modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}
.blog-modal-body p {
    margin-bottom: 1.2rem;
}
.blog-modal-body p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top { position: fixed; bottom: clamp(15px, 3vw, 30px); right: clamp(15px, 3vw, 30px); width: clamp(42px, 6vw, 48px); height: clamp(42px, 6vw, 48px); border-radius: 50%; background: var(--accent-color); color: #fff; border: none; cursor: pointer; font-size: clamp(0.9rem, 1.5vw, 1.1rem); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; z-index: 99; box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
[data-theme="dark"] .back-to-top { box-shadow: 0 6px 20px rgba(217,35,35,0.3); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-4px); box-shadow: 0 12px 35px rgba(37,99,235,0.5); }
[data-theme="dark"] .back-to-top:hover { box-shadow: 0 12px 35px rgba(217,35,35,0.5); }

/* ============================================
   ANİMASYON
   ============================================ */
.hidden-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.show-element { opacity: 1; transform: translateY(0); }

/* ============================================
   BLOG PAGES (LISTING & ARTICLE)
   ============================================ */
.page-content {
    padding-top: calc(var(--navbar-height) + clamp(1.5rem, 4vw, 3rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
    min-height: calc(100vh - var(--navbar-height));
}

.page-footer {
    border-top: 1px solid var(--border-light);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.page-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-admin-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-admin-link:hover {
    color: var(--accent-color);
}

.flash-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.flash-message.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.flash-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.blog-listing {
    padding-bottom: 1rem;
}

.blog-empty {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.blog-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.blog-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    max-width: 420px;
}
.blog-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}
.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.category-chip {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--border-color-rgb), 0.15);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.category-chip:hover { border-color: var(--accent-color); color: var(--text-primary); }
.category-chip.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

.blog-card-image-link {
    display: block;
    margin: -1.5rem -1.5rem 1rem;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-link {
    text-decoration: none;
}

.breadcrumb {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item span[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

.blog-article {
    max-width: 1000px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.article-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.article-meta {
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-excerpt {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

.reading-time {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

.view-count {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-hero {
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-detail {
    max-width: 72ch;
    margin: 0 auto;
}
.project-detail-tech {
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.article-main {
    max-width: 72ch;
    width: 100%;
    min-width: 0;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
    height: fit-content;
    max-height: calc(100vh - var(--navbar-height) - 4rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.article-sidebar::-webkit-scrollbar {
    width: 4px;
}
.article-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.toc-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.toc-title i {
    color: var(--accent-color);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-item {
    line-height: 1.4;
}

.toc-level-3 { padding-left: 1rem; }
.toc-level-4 { padding-left: 2rem; }
.toc-level-5 { padding-left: 3rem; }
.toc-level-6 { padding-left: 4rem; }

.toc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
}

.toc-dot {
    width: 6px;
    height: 6px;
    background: var(--border-light);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.toc-link:hover {
    color: var(--accent-color);
}

.toc-link:hover .toc-dot {
    background: var(--accent-color);
    transform: scale(1.3);
}

.toc-link.active {
    color: var(--accent-color);
    font-weight: 500;
}
.toc-link.active .toc-dot {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.mobile-toc {
    display: none;
    margin-bottom: 2rem;
}

.toc-accordion {
    width: 100%;
}

.toc-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.toc-summary::-webkit-details-marker {
    display: none;
}

.toc-summary .toc-title-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toc-summary .toc-title-icon i {
    color: var(--accent-color);
}

.toc-chevron i {
    transition: transform 0.3s ease;
}

.toc-accordion[open] .toc-chevron i {
    transform: rotate(180deg);
}

.toc-accordion .toc-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.article-heading,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    scroll-margin-top: 120px;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .article-sidebar {
        display: none;
    }
    .mobile-toc {
        display: block;
    }
}

@media (max-width: 768px) {
    .article-heading,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body h5,
    .article-body h6 {
        scroll-margin-top: 160px;
    }
}

.article-body {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: clamp(1rem, 1.3vw, 1.05rem);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    border-left: 4px solid var(--accent-color);
    padding-left: 0.85rem;
    margin: 2.5rem 0 1.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body h4 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 600;
    margin: 1.75rem 0 0.85rem;
    color: var(--text-primary);
}

.article-body blockquote {
    background: var(--bg-surface);
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.article-body code {
    background: var(--bg-surface);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

.article-body pre {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.85rem;
}

.article-body ul, .article-body ol {
    margin: 1.25rem 0 1.25rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.blog-body-image {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin: 2.25rem auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
}

.blog-body-image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: -1.75rem;
    margin-bottom: 2.25rem;
    font-style: italic;
}

.article-footer {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.share-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--border-color-rgb), 0.15);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s ease;
}
.share-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}
.share-btn.copied {
    border-color: #10b981;
    color: #10b981;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--border-color-rgb), 0.25);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.related-posts {
    padding-top: 1rem;
}

.related-title {
    font-size: clamp(1.25rem, 3vw, 2rem) !important;
}

.blog-cta {
    text-align: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.blog-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(var(--accent-color-rgb, 239, 68, 68), 0.3);
}

.pagination-wrap {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.pagination-item a.pagination-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination-item.active .pagination-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.pagination-item.disabled .pagination-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-tags-left, .hero-tags-right { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .hero-main { flex-direction: column; gap: 1rem; }
    .hero-badge-row { flex-direction: column; gap: 0.3rem; }
    .skill-row { flex-wrap: wrap; }
    .skill-line-container { flex: 1 1 100%; order: 3; }
    .about-content { flex-direction: column; }
    .about-text { min-width: 100%; }
    .about-text p { max-width: 100%; }
    .about-image { width: 100%; aspect-ratio: 16/10; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .side-menu { width: 100vw; }
    .blog-modal-overlay { padding: 0.8rem; align-items: flex-end; }
    .blog-modal { border-radius: 20px 20px 0 0; max-height: 90vh; width: 100%; }
    .nav-actions { gap: 0.5rem; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .stat-number { font-size: 1.6rem; }
    .hero-portrait-card { width: min(200px, 70vw); }
    .projects-grid, .blog-grid, .values-grid, .contact-grid { grid-template-columns: 1fr; }
    .service-item { grid-template-columns: 30px 1fr auto; padding: 1rem; }
    .service-detail { grid-column: 1 / -1; }
    .navbar .logo { font-size: 1rem; gap: 6px; }
    .menu-btn .line { width: 24px; }
}

/* ============================================
   HATA SAYFALARI
   ============================================ */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
}
.error-code {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}
.error-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    margin: 1rem 0 0.75rem;
    color: var(--text-primary);
}
.error-text {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   ERİŞİLEBİLİRLİK
   ============================================ */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }