/* ═══ TEMA: KOYU MAVİ (varsayılan) ══════════════════════════════════════════ */
:root,
[data-theme="dark-blue"] {
    --bg-color: #0a0f1e;
    --bg-secondary: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #64748b;
    --text-secondary: #94a3b8;
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-bg-light: rgba(30, 41, 59, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(96, 165, 250, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(10, 15, 30, 0.85);
    --navbar-bg-scrolled: rgba(10, 15, 30, 0.95);
    --input-bg: rgba(0, 0, 0, 0.25);
    --code-tag:   rgba(96, 165, 250, 0.28);
    --code-prop:  rgba(245, 158, 11, 0.24);
    --code-value: rgba(167, 243, 208, 0.22);
    --code-js:    rgba(196, 181, 253, 0.22);
    --code-punct: rgba(255, 255, 255, 0.12);
    --bg-grad-1: rgba(96, 165, 250, 0.08);
    --bg-grad-2: rgba(245, 158, 11, 0.05);
    --bg-grad-3: rgba(96, 165, 250, 0.05);
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ TEMA: SİYAH ═══════════════════════════════════════════════════════════ */
[data-theme="black"] {
    --bg-color: #000000;
    --bg-secondary: #0d0d0d;
    --text-color: #f8fafc;
    --text-muted: #6b7280;
    --text-secondary: #9ca3af;
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --glass-bg: rgba(18, 18, 18, 0.75);
    --glass-bg-light: rgba(28, 28, 28, 0.65);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(96, 165, 250, 0.3);
    --glass-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.7);
    --navbar-bg: rgba(0, 0, 0, 0.88);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.98);
    --input-bg: rgba(255, 255, 255, 0.04);
    --code-tag:   rgba(96, 165, 250, 0.32);
    --code-prop:  rgba(245, 158, 11, 0.28);
    --code-value: rgba(167, 243, 208, 0.26);
    --code-js:    rgba(196, 181, 253, 0.28);
    --code-punct: rgba(255, 255, 255, 0.14);
    --bg-grad-1: rgba(96, 165, 250, 0.04);
    --bg-grad-2: rgba(245, 158, 11, 0.02);
    --bg-grad-3: rgba(96, 165, 250, 0.03);
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ TEMA: AÇIK ════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    --bg-color: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --text-color: #0f172a;
    --text-muted: #94a3b8;
    --text-secondary: #475569;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --accent-color: #d97706;
    --accent-hover: #b45309;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-light: rgba(248, 250, 252, 0.85);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glass-border-hover: rgba(37, 99, 235, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.1);
    --navbar-bg: rgba(240, 244, 248, 0.88);
    --navbar-bg-scrolled: rgba(240, 244, 248, 0.98);
    --input-bg: rgba(15, 23, 42, 0.05);
    --code-tag:   rgba(37, 99, 235, 0.22);
    --code-prop:  rgba(180, 83, 9, 0.20);
    --code-value: rgba(5, 150, 105, 0.18);
    --code-js:    rgba(109, 40, 217, 0.18);
    --code-punct: rgba(15, 23, 42, 0.12);
    --bg-grad-1: rgba(37, 99, 235, 0.07);
    --bg-grad-2: rgba(180, 83, 9, 0.04);
    --bg-grad-3: rgba(37, 99, 235, 0.04);
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Açık tema için ek geçersiz kılmalar */
[data-theme="light"] .menu-toggle { color: var(--text-color); }
[data-theme="light"] .nav-links a:hover { background: rgba(37, 99, 235, 0.07); }
[data-theme="light"] .nav-links a.active { background: rgba(37, 99, 235, 0.1); }
[data-theme="light"] .step-number { color: rgba(37, 99, 235, 0.12); }
[data-theme="light"] .process-step:hover .step-number { color: rgba(37, 99, 235, 0.22); }
[data-theme="light"] .hero-float-badge { background: rgba(255,255,255,0.9); border-color: rgba(37,99,235,0.15); color: var(--text-color); }
[data-theme="light"] .browser-header { background: #e2e8f0; }
[data-theme="light"] .browser-url { background: rgba(15,23,42,0.08); }
[data-theme="light"] .stats-strip::before { background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent); }
[data-theme="light"] .admin-msg-item { background: rgba(15,23,42,0.04); }
[data-theme="light"] .msg-user { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.25); }
[data-theme="light"] .msg-admin { background: rgba(180, 83, 9, 0.08); border-color: rgba(180, 83, 9, 0.2); }
[data-theme="light"] .cookie-content p { color: var(--text-color); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, var(--bg-grad-1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, var(--bg-grad-2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 10%, var(--bg-grad-3) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.4s ease;
}

/* ─── CODE BACKGROUND ─── */
.code-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.code-token {
    position: absolute;
    font-family: 'Courier New', 'Fira Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    animation: codeFloat linear infinite;
    will-change: transform, opacity;
}

.code-token.type-tag    { color: var(--code-tag); }
.code-token.type-prop   { color: var(--code-prop); }
.code-token.type-value  { color: var(--code-value); }
.code-token.type-js     { color: var(--code-js); }
.code-token.type-punct  { color: var(--code-punct); }

@keyframes codeFloat {
    0%   { opacity: 0;    transform: translateY(0)     rotate(var(--rot)); }
    8%   { opacity: 1;                                                       }
    88%  { opacity: 1;                                                       }
    100% { opacity: 0;    transform: translateY(-110vh) rotate(var(--rot)); }
}

@keyframes codeFloatLeft {
    0%   { opacity: 0;    transform: translateY(0)     translateX(0)      rotate(var(--rot)); }
    8%   { opacity: 1;                                                                         }
    88%  { opacity: 1;                                                                         }
    100% { opacity: 0;    transform: translateY(-110vh) translateX(-40px)  rotate(var(--rot)); }
}

@keyframes codeFloatRight {
    0%   { opacity: 0;    transform: translateY(0)     translateX(0)     rotate(var(--rot)); }
    8%   { opacity: 1;                                                                        }
    88%  { opacity: 1;                                                                        }
    100% { opacity: 0;    transform: translateY(-110vh) translateX(40px)  rotate(var(--rot)); }
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* ─── UTILITIES ─── */
.hidden { display: none !important; }
.w-100 { width: 100%; }
.mt-4 { margin-top: 1.5rem; }
.small-text { font-size: 0.8rem; color: var(--text-secondary); margin: 0.5rem 0; }

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── NAVBAR ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
}

.navbar.scrolled {
    padding: 0.9rem 5%;
    background: var(--navbar-bg-scrolled);
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    cursor: pointer;
    position: relative;
}
.logo span { color: var(--accent-color); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-color);
    background: rgba(255,255,255,0.05);
}

.nav-links a.active {
    color: var(--primary-color);
    background: rgba(96, 165, 250, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.4rem;
}

/* ─── BUTTONS ─── */
button {
    font-family: var(--font-main);
    cursor: pointer;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.3rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}

button:hover::after {
    background: rgba(255,255,255,0.06);
}

.btn-primary {
    background: var(--primary-color);
    color: #0a0f1e;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(96, 165, 250, 0.45);
}

.btn-accent {
    background: var(--accent-color);
    color: #0a0f1e;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
    background: var(--glass-bg-light);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--glass-border-hover);
    background: rgba(96, 165, 250, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-color);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}
.btn-delete:hover {
    background: rgba(239, 68, 68, 0.35);
}

/* ─── MAIN CONTENT ─── */
main {
    padding-top: 75px;
    min-height: calc(100vh - 75px);
    position: relative;
    z-index: 1;
}

.page-section {
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── GLASS CARD ─── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* ═══════════════════════════════════════
   HOME SECTION LAYOUT
═══════════════════════════════════════ */

/* ─── HERO ─── */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 75px);
    padding: 4rem 8%;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
}

.hero-badge .dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.04em;
}

.hero-title .accent {
    color: var(--accent-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 460px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image-wrap .glow {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

/* Floating badge on hero image */
.hero-float-badge {
    position: absolute;
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    animation: floatY 3s ease-in-out infinite;
    white-space: nowrap;
}
.hero-float-badge.badge-tl {
    top: -1rem;
    left: -1rem;
    animation-delay: 0s;
}
.hero-float-badge.badge-br {
    bottom: -1rem;
    right: -1rem;
    animation-delay: 1.5s;
}
.hero-float-badge i {
    color: var(--accent-color);
    font-size: 1rem;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── STATS STRIP ─── */
.stats-section {
    padding: 0 8% 5rem;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-number .stat-suffix {
    color: var(--accent-color);
    font-size: 2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Counter animation */
.stat-number.counting {
    color: var(--primary-color);
}

/* ─── SECTION SHARED ─── */
.section-wrap {
    padding: 5rem 8%;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ─── SERVICES ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(96, 165, 250, 0.18);
    transform: scale(1.08);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
}

.services-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    grid-column: 1 / -1;
    font-size: 0.95rem;
}

/* ─── PROCESS ─── */
.process-section {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: rgba(96, 165, 250, 0.12);
    line-height: 1;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    font-variant-numeric: tabular-nums;
}

.process-step:hover .step-number {
    color: rgba(96, 165, 250, 0.25);
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.process-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    grid-column: 1 / -1;
    font-size: 0.95rem;
}

/* ─── FEATURED WORK ─── */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.featured-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    group: true;
}

.featured-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.featured-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-img-wrap img {
    transform: scale(1.06);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-overlay-btn {
    background: var(--primary-color);
    color: #0a0f1e;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transform: translateY(10px);
    transition: var(--transition);
}

.featured-card:hover .featured-overlay-btn {
    transform: translateY(0);
}

.featured-info {
    padding: 1.4rem;
}

.featured-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.featured-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 400;
}

.featured-view-all {
    text-align: center;
}

.featured-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    grid-column: 1 / -1;
    font-size: 0.95rem;
}

/* ─── CTA BANNER ─── */
.cta-section {
    padding: 5rem 8%;
}

.cta-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── SECTION HEADER (for portfolio/contact pages) ─── */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 5% 0;
}
.section-header h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-secondary);
    font-weight: 400;
}

/* ─── PORTFOLIO PAGE ─── */
.portfolio-page-wrap {
    padding: 0 5% 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.04);
}

.portfolio-info {
    padding: 1.5rem;
}
.portfolio-info h3 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* ─── CONTACT SECTION ─── */
.contact-page-wrap {
    padding: 0 5% 4rem;
}

.contact-card {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}
.contact-card p {
    font-size: 1.05rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
}
.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}
.social-links a:hover { color: var(--primary-color); }

/* ─── AUTH SECTION ─── */
.auth-container {
    max-width: 420px;
    margin: 3rem auto;
}
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}
.auth-tab {
    flex: 1;
    background: none;
    color: var(--text-muted);
    border-radius: 0;
    padding: 1rem;
    font-size: 0.95rem;
}
.auth-tab.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.input-group input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 42px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(96, 165, 250, 0.05);
}
.error-msg {
    color: #f87171;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ─── ADMIN SECTION ─── */
.admin-dashboard {
    display: flex;
    gap: 2rem;
    min-height: 60vh;
    padding: 2rem 5%;
}
.admin-sidebar {
    width: 250px;
    padding: 1.5rem;
    flex-shrink: 0;
}
.admin-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.admin-menu { list-style: none; }
.admin-menu li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.admin-menu li:hover {
    background: rgba(96, 165, 250, 0.1);
    color: var(--text-color);
}
.admin-menu li.active {
    background: rgba(96, 165, 250, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}
.admin-content {
    flex: 1;
    padding: 2rem;
}
.admin-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
}
.admin-list { margin-top: 1rem; }
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1rem;
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item-info { flex: 1; }
.admin-list-item-info strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.admin-list-item-info span { font-size: 0.82rem; color: var(--text-secondary); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* Featured checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Process steps admin */
.process-step-admin {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    background: rgba(0,0,0,0.15);
}
.process-step-admin .step-inputs { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.process-step-admin .step-inputs input { padding: 0.6rem; }
.step-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

/* Admin status message */
#admin-general-status,
#admin-portfolio-status,
#admin-services-status {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #4ade80;
}

/* ─── IFRAME MODAL ─── */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    width: 90%;
    max-width: 1200px;
    height: 88vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}
.close-modal {
    position: absolute;
    top: -44px;
    right: 0;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover { color: white; }
.modal-content.modal-fullscreen {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
}
.modal-content.modal-fullscreen .close-modal {
    top: 12px; right: 20px; z-index: 1100;
}
.modal-content.modal-fullscreen .browser-mockup {
    border-radius: 0; border: none;
}
.browser-mockup {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.browser-header {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.browser-url {
    background: rgba(0,0,0,0.3);
    padding: 5px 16px;
    border-radius: 20px;
    margin-left: 12px;
    flex: 1;
    font-size: 0.83rem;
    color: var(--text-secondary);
    text-align: center;
}
#portfolio-iframe {
    width: 100%;
    flex: 1;
    background: white;
}

/* ─── SPINNER ─── */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 3rem auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ─── CHAT UI (Contact & Admin Messages) ─── */

/* User-side chat window */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 520px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
}

/* Chat header bar */
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.2rem;
    background: var(--glass-bg-light);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.chat-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}
.chat-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2px;
}
.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Scrollable messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}
.chat-empty-hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    margin: auto;
    padding: 2rem 0;
}

/* Also used by .messages-container (admin thread) */
.messages-container {
    overflow-y: auto;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}
.messages-container::-webkit-scrollbar { width: 4px; }
.messages-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Shared bubble styles */
.msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-word;
}
.msg-user {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.msg-admin {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.msg-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

/* Pinned chat input at bottom */
.chat-input-area {
    flex-shrink: 0;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg-light);
}
.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}
.chat-form textarea {
    flex: 1;
    padding: 0.65rem 0.9rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.92rem;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color 0.2s;
    line-height: 1.5;
}
.chat-form textarea:focus {
    outline: none;
    border-color: var(--glass-border-hover);
}
.chat-send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}
.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}
.chat-send-btn::after { display: none; }
.chat-status-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    min-height: 1rem;
    padding-left: 2px;
}

/* ─── ADMIN MESSAGES ─── */
.admin-messages-layout {
    display: flex;
    gap: 1.5rem;
    height: 540px;
}
.admin-messages-list {
    flex: 1;
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    padding-right: 1rem;
}
.admin-msg-item {
    padding: 0.9rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.admin-msg-item:hover, .admin-msg-item.active {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
}
.admin-msg-email { font-weight: 700; margin-bottom: 4px; font-size: 0.88rem; }
.admin-msg-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Admin right panel = proper chat layout */
.admin-messages-view {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.admin-messages-view h3 {
    flex-shrink: 0;
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}
#admin-messages-thread {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.8rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.cookie-content p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── THEME SWITCHER ─── */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    flex-shrink: 0;
    background: none;
    overflow: visible;
}

.theme-btn::after { display: none; }

.theme-btn[data-theme="dark-blue"] {
    background: linear-gradient(135deg, #1e3a5f 50%, #60a5fa 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.theme-btn[data-theme="black"] {
    background: linear-gradient(135deg, #111 50%, #333 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.theme-btn[data-theme="light"] {
    background: linear-gradient(135deg, #e2e8f0 50%, #f8fafc 100%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.theme-btn:hover {
    transform: scale(1.18);
}

.theme-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.22);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

[data-theme="light"] .theme-btn.active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.theme-switcher-label {
    font-size: 0; /* hidden visually, kept for screen readers */
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        padding: 3rem 6%;
        min-height: auto;
        padding-bottom: 2rem;
        text-align: center;
    }
    .hero-left { max-width: 100%; }
    .hero-subtitle { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-right { width: 100%; max-width: 400px; }
    .hero-float-badge.badge-tl { top: -0.5rem; left: 0; }
    .hero-float-badge.badge-br { bottom: -0.5rem; right: 0; }
    .stats-section { padding: 0 5% 3rem; }
    .stats-strip { grid-template-columns: 1fr; gap: 0; }
    .stat-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--glass-border); padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
    .section-wrap { padding: 3.5rem 6%; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--navbar-bg-scrolled);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 0.5rem;
        border-bottom: 1px solid var(--glass-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .admin-dashboard {
        flex-direction: column;
        padding: 1.5rem;
    }
    .admin-sidebar { width: 100%; }
    .admin-messages-layout { flex-direction: column; height: auto; }
    .admin-messages-list {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1rem;
        max-height: 200px;
    }
    .cta-card { padding: 2.5rem 1.5rem; }
    .cookie-content { flex-direction: column; text-align: center; gap: 1rem; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 2.2rem; }
    .process-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .hero-float-badge { display: none; }
}
