/* ===================================================
   CODEARKS - Main Stylesheet
   =================================================== */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #dc2626;
    --secondary-color: #000000;
    --accent-color: #b91c1c;
    --dark-bg: #0a0a0f;
    --dark-bg-2: #111119;
    --dark-bg-3: #1a1a24;
    --card-bg: #13131b;
    --card-bg-2: #1c1c27;
    --text-primary: #f1f1f8;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255,255,255,0.07);
    --border-hover: rgba(220,38,38,0.4);
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(220,38,38,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

[data-theme="light"] {
    --dark-bg: #ffffff;
    --dark-bg-2: #f8f9fc;
    --dark-bg-3: #f0f2f7;
    --card-bg: #ffffff;
    --card-bg-2: #f8f9fc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-primary); }

/* ===== CURSOR  (WebX-style large blob) ===== */
* { cursor: none !important; }
@media (hover: none) { * { cursor: auto !important; } }

.ca-cursor {
    position: fixed; top: 0; left: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%);
    background: #fff;
    mix-blend-mode: difference;
    transition: width 0.35s cubic-bezier(0.25,1,0.5,1),
                height 0.35s cubic-bezier(0.25,1,0.5,1),
                border-radius 0.35s ease,
                opacity 0.3s ease;
    will-change: transform, width, height;
}
.ca-cursor-dot {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* States */
.ca-cursor.is-hovering {
    width: 80px; height: 80px;
}
.ca-cursor.is-hovering .ca-cursor-dot {
    transform: translate(-50%,-50%) scale(0);
    opacity: 0;
}
.ca-cursor.is-text {
    width: 100px; height: 32px;
    border-radius: 16px;
}
.ca-cursor.is-hidden {
    opacity: 0;
}
.ca-cursor.is-link {
    width: 64px; height: 64px;
}

@media (hover: none) {
    .ca-cursor { display: none; }
    * { cursor: auto !important; }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed; inset: 0; background: var(--dark-bg);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-wrapper { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loader-circle {
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid rgba(220,38,38,0.15);
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}
.loader-text { color: var(--text-secondary); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.5rem 0; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255,255,255,0.92);
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo img { height: 42px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.nav-menu { display: flex; gap: 2.5rem; }
.nav-link {
    color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
    position: relative; padding: 0.25rem 0; letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px;
    background: var(--gradient-primary); border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
/* Home icon nav link */
.nav-home-icon { font-size: 1rem; display: flex; align-items: center; }
.nav-home-icon i { line-height: 1; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(220,38,38,0.08); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--gradient-primary); color: #fff;
    padding: 0.875rem 2rem; border-radius: 50px; font-weight: 600;
    font-size: 0.9rem; border: none; position: relative; overflow: hidden;
    transition: var(--transition); box-shadow: 0 4px 20px rgba(220,38,38,0.35);
    letter-spacing: 0.02em; z-index: 1;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    opacity: 0; transition: opacity 0.3s ease; border-radius: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(220,38,38,0.45); color: #fff; }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: transparent; color: var(--text-primary);
    padding: 0.875rem 2rem; border-radius: 50px; font-weight: 600;
    font-size: 0.9rem; border: 1px solid var(--border-color);
    transition: var(--transition); letter-spacing: 0.02em; overflow: hidden; position: relative;
}
.btn-secondary:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); background: rgba(220,38,38,0.05); }
.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }

/* Ripple */
.btn-primary .ripple, .btn-secondary .ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25);
    transform: scale(0); animation: ripple-anim 0.6s linear; pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ===== SECTION TAGS & HEADERS ===== */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(220,38,38,0.18), rgba(185,28,28,0.1));
    color: var(--primary-color); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.4rem 1.1rem; border-radius: 50px; margin-bottom: 1rem;
    border: 1px solid rgba(220,38,38,0.25);
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700; margin-bottom: 1rem; line-height: 1.15;
    letter-spacing: -0.02em;
}
.section-description { color: var(--text-secondary); max-width: 580px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-muted); justify-content: center; margin-top: 1.25rem; }
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb i { font-size: 0.65rem; }
.breadcrumb > span { color: var(--primary-color); font-weight: 500; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding: 7rem 0 5rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.gradient-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 75% 50%, rgba(220,38,38,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(185,28,28,0.08) 0%, transparent 60%),
        var(--dark-bg);
}
.particles { position: absolute; inset: 0; overflow: hidden; }
.hero-content {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 1.5rem; min-height: 6rem;
    display: flex; flex-direction: column; gap: 0.2rem;
}
.title-line { display: block; }
#typedText::after { content: '|'; animation: blink 0.8s step-end infinite; color: var(--primary-color); }
#typedTextGradient.done::after { display: none; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 500px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 3rem; }
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.stat-item > p { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero Image / Code Window */
/* ===== HERO IMAGE ===== */
.hero-image {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 500px;
}
.hero-illustration { position: relative; z-index: 2; }

/* Code window */
.code-window {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg); overflow: hidden; width: 340px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(220,38,38,0.1);
    position: relative;
}
.code-window::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary);
}
.window-header {
    padding: 0.75rem 1rem; background: #161b22;
    display: flex; gap: 0.5rem; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.window-content { padding: 1.25rem 1.5rem; min-height: 200px; overflow: hidden; }
.window-content pre { margin: 0; }
.typing-text {
    font-family: 'Courier New', monospace; font-size: 0.78rem;
    color: #e2e8f0; line-height: 1.75; white-space: pre;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
    position: absolute; z-index: 3;
    background: rgba(13,13,23,0.82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(220,38,38,0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.1rem;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(220,38,38,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-card:hover {
    border-color: rgba(220,38,38,0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(220,38,38,0.15);
}
.floating-card .fc-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 0.9rem;
}
.floating-card .fc-label { color: var(--text-primary); }

/* Light mode floating cards */
[data-theme="light"] .floating-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(220,38,38,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(220,38,38,0.08);
    color: #0f172a;
}
[data-theme="light"] .floating-card .fc-label { color: #0f172a; }

/* Positions */
.card-1 { top: -20px;  left: -60px;  animation: float1 4s ease-in-out infinite; }
.card-2 { bottom: 10px; right: -55px; animation: float2 4s ease-in-out infinite 1.4s; }
.card-3 { top: 42%;    left: -70px;  animation: float3 4s ease-in-out infinite 2.8s; }

@keyframes float1 {
    0%,100% { transform: translateY(0px)   rotate(-1.5deg); }
    50%      { transform: translateY(-14px) rotate(1.5deg);  }
}
@keyframes float2 {
    0%,100% { transform: translateY(0px)   rotate(1.5deg);  }
    50%      { transform: translateY(-12px) rotate(-1.5deg); }
}
@keyframes float3 {
    0%,100% { transform: translateY(-50%)           rotate(-1deg); }
    50%      { transform: translateY(calc(-50% - 12px)) rotate(1deg);  }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 1;
    animation: fadeInUp 1s ease 2s both;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.mouse {
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.2);
    border-radius: 13px; position: relative;
}
.mouse::after {
    content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 9px; background: var(--primary-color); border-radius: 2px;
    animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce { 0%,100% { opacity: 1; top: 7px; } 50% { opacity: 0; top: 20px; } }

/* ===== SERVICES ===== */
.services { padding: 7rem 0; background: var(--dark-bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 2.25rem;
    position: relative; overflow: hidden; transition: var(--transition);
    cursor: pointer;
}
.service-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(220,38,38,0.08) 0%, transparent 60%);
    transition: opacity 0.4s ease; pointer-events: none; border-radius: inherit;
}
.service-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-card.featured {
    border-color: rgba(220,38,38,0.35);
    background: linear-gradient(135deg, rgba(220,38,38,0.06) 0%, var(--card-bg) 60%);
}
.featured-badge {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: var(--gradient-primary); color: #fff;
    font-size: 0.68rem; font-weight: 700; padding: 0.28rem 0.8rem;
    border-radius: 50px; letter-spacing: 0.08em; text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(220,38,38,0.3);
}
.service-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.5rem; margin-bottom: 1.5rem;
    transition: var(--transition);
}
.service-card:hover .service-icon { background: rgba(220,38,38,0.2); transform: scale(1.08) rotate(-5deg); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.service-card > p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; }
.service-features { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.75rem; }
.service-features li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.83rem; color: var(--text-secondary); }
.service-features li i { color: var(--primary-color); font-size: 0.7rem; flex-shrink: 0; }
.service-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: var(--primary-color); font-size: 0.83rem; font-weight: 600;
    transition: var(--transition);
}
.service-link:hover { gap: 0.8rem; }

/* ===== ABOUT ===== */
.about { padding: 7rem 0; background: var(--dark-bg-2); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.image-wrapper {
    height: 420px; border-radius: var(--radius-xl); position: relative;
    background: linear-gradient(135deg, #0d0d18 0%, #1a0a14 50%, #160505 100%);
    border: 1px solid var(--border-color); overflow: hidden;
}
.image-wrapper::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(220,38,38,0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(185,28,28,0.08) 0%, transparent 40%);
}
.image-wrapper::after {
    content: '</>';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-family: 'Courier New', monospace; font-size: 6rem; font-weight: 900;
    color: rgba(220,38,38,0.06); letter-spacing: -0.05em; white-space: nowrap;
}
.experience-badge {
    position: absolute; bottom: 2rem; right: 2rem;
    background: var(--gradient-primary); color: #fff;
    padding: 1.3rem 2rem; border-radius: var(--radius-lg); text-align: center;
    box-shadow: 0 8px 30px rgba(220,38,38,0.4);
    z-index: 1;
}
.experience-badge h3 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1; }
.experience-badge p { font-size: 0.78rem; opacity: 0.9; margin-top: 0.3rem; }
.about-text .section-tag { margin-bottom: 0.75rem; display: inline-block; }
.about-text .section-title { margin-bottom: 1.25rem; }
.about-description { color: var(--text-secondary); margin-bottom: 2.25rem; font-size: 1rem; line-height: 1.85; }
.about-features { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.25rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
    width: 46px; height: 46px; border-radius: var(--radius-sm);
    background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1rem; flex-shrink: 0;
}
.feature-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.feature-content p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; }
.about-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.about-stats .stat { display: flex; align-items: center; gap: 0.65rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.about-stats .stat i { color: var(--primary-color); font-size: 1rem; }

/* ===== PORTFOLIO ===== */
.portfolio { padding: 7rem 0; background: var(--dark-bg); }
.portfolio-filters { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
    padding: 0.6rem 1.5rem; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
    border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary);
    transition: var(--transition); cursor: pointer; letter-spacing: 0.02em;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary); color: #fff; border-color: transparent;
    box-shadow: 0 4px 18px rgba(220,38,38,0.3);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-item { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: var(--transition); }
.portfolio-image {
    height: 250px; position: relative;
    background: linear-gradient(135deg, #0d0d18 0%, #1a0a14 50%, rgba(220,38,38,0.3) 100%);
    overflow: hidden; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.portfolio-item:hover .portfolio-image { transform: scale(1.03); }

/* Category badge shown always (no filter) */
.portfolio-category-badge {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    background: rgba(220,38,38,0.85); color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.28rem 0.85rem; border-radius: 50px;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(220,38,38,0.35);
    transition: var(--transition);
}
.portfolio-item:hover .portfolio-category-badge { background: var(--primary-color); }

.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 1.5rem; text-align: center; transition: background 0.35s ease;
}
.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.1) 100%);
}
.portfolio-overlay h3 {
    font-size: 1rem; font-weight: 700; margin-bottom: 0.85rem;
    color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay h3 { transform: translateY(-4px); }
.portfolio-link {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.85rem; transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220,38,38,0.4);
    opacity: 0; transform: scale(0.7) translateY(6px);
}
.portfolio-item:hover .portfolio-link { opacity: 1; transform: scale(1) translateY(0); }
.portfolio-link:hover { transform: scale(1.15) rotate(15deg) !important; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 7rem 0; background: var(--dark-bg-2); }
.testimonials-slider { max-width: 720px; margin: 0 auto 2.5rem; position: relative; min-height: 230px; }
.testimonial-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 2.75rem;
    display: none; animation: slideIn 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 1.5rem; display: flex; gap: 0.2rem; }
.testimonial-text { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85; margin-bottom: 2rem; font-style: italic; position: relative; }
.testimonial-text::before { content: '"'; font-size: 4rem; color: rgba(220,38,38,0.15); font-family: serif; position: absolute; top: -1.5rem; left: -0.5rem; line-height: 1; }
.client-info { display: flex; align-items: center; gap: 1rem; }
.client-image { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-primary); flex-shrink: 0; }
.client-details h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.client-details p { color: var(--text-muted); font-size: 0.8rem; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.slider-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border-color); background: transparent;
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; transition: var(--transition);
}
.slider-btn:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(220,38,38,0.08); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border-color);
    cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--primary-color); width: 24px; border-radius: 4px; }

/* ===== CONTACT ===== */
.contact { padding: 7rem 0; background: var(--dark-bg); }
.contact-content { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; }
.info-card {
    display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 2rem;
    padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: var(--transition);
}
.info-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.info-icon {
    width: 50px; height: 50px; border-radius: var(--radius-sm);
    background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.1rem; flex-shrink: 0;
}
.info-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.info-text p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.65; }
.social-media { padding: 1.5rem; }
.social-media h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition);
}
.social-icons a:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(220,38,38,0.1); transform: translateY(-3px); }
/* Form */
.contact-form form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
    width: 100%; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 1.1rem 1.1rem 0.6rem;
    color: var(--text-primary); font-family: var(--font-primary); font-size: 0.9rem;
    outline: none; resize: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color); background: rgba(220,38,38,0.04);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.form-group label {
    position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.875rem; pointer-events: none;
    transition: all 0.2s ease; background: transparent;
}
.form-group textarea ~ label { top: 1.1rem; transform: none; }
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0.35rem; transform: none; font-size: 0.7rem; color: var(--primary-color);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer { background: var(--dark-bg-2); border-top: 1px solid var(--border-color); padding-top: 5rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 4rem; }
.footer-logo { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
.footer-logo img { height: 36px; }

/* Dark mode (default): show white logo, hide dark logo */
.logo-dark-mode  { display: block; }
.logo-light-mode { display: none; }

/* Light mode: show dark logo, hide white logo */
[data-theme="light"] .logo-dark-mode  { display: none; }
[data-theme="light"] .logo-light-mode { display: block; }
.footer-section > p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border-color); display: flex; align-items: center;
    justify-content: center; color: var(--text-secondary); font-size: 0.85rem;
    transition: var(--transition);
}
.footer-social a:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(220,38,38,0.1); transform: translateY(-2px); }
.footer-section h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text-primary); }
.footer-section ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-section ul a { color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-section ul a:hover { color: var(--primary-color); padding-left: 5px; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.newsletter-form input {
    flex: 1; background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 50px; padding: 0.65rem 1.1rem; color: var(--text-primary);
    font-size: 0.85rem; outline: none; transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--primary-color); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
    width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-primary);
    color: #fff; border: none; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: var(--transition);
}
.newsletter-form button:hover { transform: scale(1.08); box-shadow: 0 4px 15px rgba(220,38,38,0.35); }
.footer-bottom {
    border-top: 1px solid var(--border-color); padding: 1.75rem 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-color); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 2.5rem; right: 2.5rem; width: 46px; height: 46px;
    border-radius: 50%; background: var(--gradient-primary); color: #fff;
    border: none; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(220,38,38,0.4);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: var(--transition); z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(220,38,38,0.5); }

/* ===== SCROLL REVEAL ===== */
[data-aos] { opacity: 0; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1); }
[data-aos="fade-up"] { transform: translateY(32px); }
[data-aos="fade-right"] { transform: translateX(-32px); }
[data-aos="fade-left"] { transform: translateX(32px); }
[data-aos="zoom-in"] { transform: scale(0.88); }
[data-aos].aos-animate { opacity: 1; transform: translate(0) scale(1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .about-content { grid-template-columns: 1fr; }
    .about-image { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-content { grid-template-columns: 1fr; gap: 3rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
/* ── Navbar logo visibility ─────────────────────────────────────── */
/* Default dark mode: show white logo in overlay, dark logo in light navbar */
.logo-default { display: block; }
.logo-white   { display: none;  }
[data-theme="dark"] .logo-default { display: none; }
[data-theme="dark"] .logo-white   { display: block; }

/* ── Full-screen mobile overlay ─────────────────────────────────── */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 1100;
    background: #08080f;
    display: flex; flex-direction: column;
    pointer-events: none;
    opacity: 0;
    clip-path: circle(0% at calc(100% - 48px) 48px);
    transition: clip-path 0.65s cubic-bezier(0.77,0,0.175,1), opacity 0.1s ease;
}
.mobile-overlay.open {
    pointer-events: all;
    opacity: 1;
    clip-path: circle(170% at calc(100% - 48px) 48px);
}
.mobile-overlay-inner {
    display: flex; flex-direction: column; height: 100%;
    padding: 1.5rem 1.75rem 2.5rem;
}

.mobile-overlay-top {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 3rem;
}
.mobile-overlay-logo img { height: 38px; }
.mobile-overlay-close {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15); background: transparent;
    color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.mobile-overlay-close:hover { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.5); color: var(--primary-color); }

.mobile-overlay-nav {
    display: flex; flex-direction: column; gap: 0; flex: 1;
    justify-content: center;
}
.mob-link {
    display: block;
    font-family: var(--font-heading); font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
    color: rgba(255,255,255,0.75);
    padding: 0.35em 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s ease, padding-left 0.25s ease;
    position: relative;
}
.mob-link:last-child { border-bottom: none; }
.mob-link::before {
    content: '';
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 0; height: 3px; background: var(--gradient-primary);
    border-radius: 2px; transition: width 0.3s ease;
}
.mob-link:hover, .mob-link.active {
    color: #fff; padding-left: 1.25rem;
}
.mob-link:hover::before, .mob-link.active::before { width: 0.75rem; }

/* Staggered entrance animation for menu links */
.mobile-overlay.open .mob-link {
    animation: mob-link-in 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.mobile-overlay.open .mob-link:nth-child(1) { animation-delay: 0.18s; }
.mobile-overlay.open .mob-link:nth-child(2) { animation-delay: 0.24s; }
.mobile-overlay.open .mob-link:nth-child(3) { animation-delay: 0.30s; }
.mobile-overlay.open .mob-link:nth-child(4) { animation-delay: 0.36s; }
.mobile-overlay.open .mob-link:nth-child(5) { animation-delay: 0.42s; }
@keyframes mob-link-in { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

.mobile-overlay-bottom {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
}
.mob-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* Hamburger shown on ≤768px */
@media (max-width: 768px) {
    .nav-menu { display: none; }   /* hidden — replaced by overlay */
    .hamburger { display: flex; z-index: 1001; position: relative; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .portfolio-filters { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
    .filter-btn { flex-shrink: 0; }
    /* Mobile hero tweaks */
    .hero-v2-title { font-size: clamp(2rem, 9vw, 2.6rem); min-height: calc(clamp(2rem, 9vw, 2.6rem) * 1.12 * 2); }
    .hero-v2-cta { flex-direction: column; align-items: flex-start; }
    .hero-v2-pills { gap: 0.5rem; }
    .hero-pill { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
    /* Mobile work cards */
    .work-card-body { flex-wrap: wrap; }
    /* Mobile services */
    .sv2-item { padding: 1.25rem 0; }
    .sv2-content h3 { font-size: 1rem; }
    /* Mobile about stats */
    .about-v2-stat .stat-number { font-size: 1.5rem; }
    /* Mobile testi */
    .testi-stage { min-height: 280px; }
    .testi-slide { padding: 1.5rem; }
    /* Mobile contact */
    .cv2-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    /* Mobile overlay menu */
    .mob-link { font-size: clamp(1.8rem, 7vw, 2.8rem); }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║          NEW HOMEPAGE DESIGN  (WebX-inspired v2)               ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ── btn-ghost ───────────────────────────────────────────────────── */
.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
    padding: 0.875rem 1.75rem; border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: var(--transition); letter-spacing: 0.02em;
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

/* ── HERO V2 ─────────────────────────────────────────────────────── */
.hero-v2 {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 7rem 0 4rem;
    background: var(--dark-bg);
}
.hero-v2::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 75% 50%, rgba(220,38,38,0.11) 0%, transparent 70%),
        radial-gradient(ellipse 50% 45% at 20% 75%, rgba(185,28,28,0.07) 0%, transparent 55%);
    pointer-events: none;
}
.hero-v2 .particles { z-index: 0; }
.hero-v2 .container { position: relative; z-index: 1; width: 100%; }

/* Two-column split */
.hero-v2-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 11rem);
}
.hero-v2-left { display: flex; flex-direction: column; gap: 0; }

.hero-v2-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 1.75rem;
}
.eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.4);} 50%{box-shadow:0 0 0 6px rgba(220,38,38,0);} }
.eyebrow-sep { color: var(--border-color); }

.hero-v2-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
    /* Reserve space for two lines so layout doesn't shift while typing */
    min-height: calc(clamp(2.4rem, 5.5vw, 4.2rem) * 1.12 * 2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}
.hero-line-1 {
    display: block; color: var(--text-primary);
    line-height: 1.12;
}
.hero-line-2 {
    display: block;
    line-height: 1.12;
}
.hero-line-1::after { content: '|'; animation: blink 0.8s step-end infinite; color: var(--primary-color); margin-left: 2px; }
.hero-line-2.done::after { display: none; }

.hero-v2-sub {
    color: var(--text-secondary); font-size: 1.05rem;
    max-width: 480px; line-height: 1.8; margin-bottom: 2.25rem;
}
.hero-v2-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Floating pills (row under CTA) */
.hero-v2-pills {
    display: flex; gap: 0.65rem; flex-wrap: wrap;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary); transition: var(--transition);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-pill i { color: var(--primary-color); font-size: 0.75rem; }
.hero-pill:hover { border-color: rgba(220,38,38,0.4); color: var(--text-primary); background: rgba(220,38,38,0.06); }
.pill-1 { animation: pill-float 5s ease-in-out infinite; }
.pill-2 { animation: pill-float 5s ease-in-out infinite 0.8s; }
.pill-3 { animation: pill-float 5s ease-in-out infinite 1.6s; }
.pill-4 { animation: pill-float 5s ease-in-out infinite 2.4s; }
@keyframes pill-float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }

/* RIGHT side — code window area */
.hero-v2-right {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 520px;
}
.hero-v2-right .hero-illustration { position: relative; z-index: 2; }
.hero-v2-right .floating-card { z-index: 3; }

/* Reuse existing floating-card and code-window styles */

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    z-index: 1; opacity: 0.5; animation: fadeIn 1s ease 1.5s both;
}
.scroll-hint span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop { 0%{opacity:0;transform:scaleY(0);transform-origin:top;} 50%{opacity:1;transform:scaleY(1);} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom;} }
@keyframes fadeIn { from{opacity:0;transform:translateX(-50%) translateY(8px);} to{opacity:.5;transform:translateX(-50%);} }

/* ── MARQUEE STRIP ───────────────────────────────────────────────── */
.marquee-strip {
    overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    background: var(--dark-bg-2); padding: 0.85rem 0;
}
.marquee-track {
    display: flex; width: max-content;
    animation: marquee 30s linear infinite;
}
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.marquee-item {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0 2.5rem;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-muted); white-space: nowrap;
}
.marquee-dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--primary-color); flex-shrink: 0;
}

/* ── Scroll Hint ─────────────────────────────────────────────────── */
.scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    z-index: 5; animation: scrollHintFade 2.5s ease-in-out infinite;
    cursor: default; user-select: none;
}
@keyframes scrollHintFade {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 1;   transform: translateX(-50%) translateY(-6px); }
}

/* Mouse outline */
.scroll-hint-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: flex-start;
    padding-top: 6px;
    box-shadow: 0 0 12px rgba(220,38,38,0.25);
}
[data-theme="light"] .scroll-hint-mouse { border-color: rgba(0,0,0,0.35); }

/* Scrolling wheel dot */
.scroll-hint-wheel {
    width: 4px; height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: wheelScroll 1.4s ease-in-out infinite;
}
@keyframes wheelScroll {
    0%   { transform: translateY(0);   opacity: 1; }
    80%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0);   opacity: 0; }
}

/* Label */
.scroll-hint-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}
[data-theme="light"] .scroll-hint-label { color: rgba(0,0,0,0.35); }

/* ── WORK SECTION  (WebX typographic list) ───────────────────────── */
.work-section { padding: 7rem 0; background: var(--dark-bg); }

.work-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 3.5rem; gap: 1rem; flex-wrap: wrap;
}
.work-header-left { display: flex; flex-direction: column; gap: 0.4rem; }
.work-title {
    font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.work-view-all {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; font-weight: 600; color: var(--primary-color);
    padding: 0.6rem 1.4rem; border: 1px solid rgba(220,38,38,0.35);
    border-radius: 50px; transition: var(--transition);
}
.work-view-all:hover { background: rgba(220,38,38,0.1); gap: 0.85rem; }

/* ── Featured Projects — Clean 3-Card Agency Grid ───────────────── */

.pw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.pw-card {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pw-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220,38,38,0.3);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 0 0 1px rgba(220,38,38,0.15);
}
[data-theme="light"] .pw-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(220,38,38,0.2);
}

/* Thumbnail */
.pw-card-thumb {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 10;
}
.pw-card-thumb img,
.pw-card-dummy {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.pw-card:hover .pw-card-thumb img,
.pw-card:hover .pw-card-dummy { transform: scale(1.06); }

/* CTA overlay that appears on hover */
.pw-card-hover-cta {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    color: #fff; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
    opacity: 0; transition: opacity 0.3s ease;
}
.pw-card-hover-cta i { font-size: 0.75rem; }
.pw-card:hover .pw-card-hover-cta { opacity: 1; }

/* Info block */
.pw-card-info {
    padding: 1.1rem 1.25rem 1.2rem;
    display: flex; flex-direction: column; gap: 0.35rem;
    flex: 1;
    background: var(--card-bg);
}

.pw-card-cat {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--primary-color);
}

.pw-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 700;
    color: var(--text-primary); line-height: 1.3; letter-spacing: -0.02em;
    margin: 0;
    transition: color 0.2s;
}
.pw-card:hover .pw-card-title { color: var(--text-primary); }

.pw-card-desc {
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55;
    margin: 0;
}

/* Client + arrow row */
.pw-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
}
.pw-card-client-name {
    font-size: 0.76rem; font-weight: 500; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1;
}
.pw-card-client-name--empty {
    color: var(--primary-color); font-weight: 600;
}
.pw-card-arrow {
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; color: var(--text-secondary);
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.pw-card:hover .pw-card-arrow {
    background: var(--primary-color); border-color: var(--primary-color);
    color: #fff; transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .pw-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 560px) {
    .pw-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ── Featured Projects — Image Mosaic Grid (old, kept for portfolio page) */
.fp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.25rem;
}

/* First card spans 2 columns, taller */
.fp-card--large {
    grid-column: span 2;
}

.fp-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-xl);
    display: block; text-decoration: none;
    background: var(--card-bg);
    aspect-ratio: 4/3;
    cursor: pointer;
}
.fp-card--large { aspect-ratio: 16/9; }

.fp-card-img {
    position: absolute; inset: 0; z-index: 0;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fp-card:hover .fp-card-img { transform: scale(1.07); }

.fp-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.fp-card-bg { width: 100%; height: 100%; }

/* Dark gradient overlay — always visible at bottom */
.fp-card-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.35) 45%,
        rgba(0,0,0,0.05) 100%
    );
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    transition: background 0.35s ease;
}
.fp-card:hover .fp-card-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.55) 50%,
        rgba(0,0,0,0.1) 100%
    );
}

/* Category badge — top left */
.fp-card-cat {
    align-self: flex-start;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    background: rgba(220,38,38,0.85); color: #fff;
    padding: 0.28rem 0.85rem; border-radius: 50px;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.fp-card:hover .fp-card-cat { background: var(--primary-color); }

/* Info + arrow — bottom */
.fp-card-info { flex: 1; display: flex; align-items: flex-end; }
.fp-card-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.2;
    margin-bottom: 0.25rem;
    transform: translateY(6px); transition: transform 0.3s ease;
}
.fp-card:hover .fp-card-info h3 { transform: translateY(0); }
.fp-card-info p {
    font-size: 0.78rem; color: rgba(255,255,255,0.6);
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
    margin: 0;
}
.fp-card:hover .fp-card-info p { opacity: 1; transform: translateY(0); }

.fp-card-arrow {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.8rem; flex-shrink: 0; align-self: flex-end;
    opacity: 0; transform: translateY(8px) rotate(0deg);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}
.fp-card:hover .fp-card-arrow {
    opacity: 1; transform: translateY(0) rotate(-45deg);
    background: var(--primary-color); border-color: var(--primary-color);
}

/* Bottom row = info + arrow side by side */
.fp-card-overlay { flex-direction: column; }
.fp-card-overlay > .fp-card-info,
.fp-card-overlay > .fp-card-arrow { /* keep stacking */ }

/* Rebuild bottom as a row */
.fp-card-overlay {
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.fp-card-overlay .fp-card-cat { grid-row: 1; }
.fp-card-overlay .fp-card-info { grid-row: 3; display: flex; flex-direction: column; justify-content: flex-end; }
.fp-card-overlay .fp-card-arrow {
    position: absolute; bottom: 1.25rem; right: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .fp-grid { grid-template-columns: repeat(2, 1fr); }
    .fp-card--large { grid-column: span 2; }
}
@media (max-width: 640px) {
    .fp-grid { grid-template-columns: 1fr; gap: 1rem; }
    .fp-card--large { grid-column: span 1; aspect-ratio: 4/3; }
    .fp-card { aspect-ratio: 4/3; }
}

/* ── SERVICES V2 / OUR EXPERTISE ─────────────────────────────────── */
.services-v2 { padding: 7rem 0; background: var(--dark-bg-2); }

/* Two-column: intro left, cards right */
.exp-layout {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 5rem;
    align-items: start;
}

/* Intro column */
.exp-intro { position: sticky; top: 7rem; }
.exp-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
    margin: 0.75rem 0 1rem; color: var(--text-primary);
}
.exp-sub {
    font-size: 1rem; font-weight: 500;
    color: var(--text-primary); line-height: 1.65; margin-bottom: 0.75rem;
}
.exp-desc {
    font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem;
}
.exp-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.875rem; font-weight: 600;
    transition: gap 0.2s ease;
}
.exp-cta:hover { gap: 0.95rem; }

/* Cards grid */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.exp-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.exp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220,38,38,0.3);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(220,38,38,0.1);
}

.exp-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.1rem;
    margin-bottom: 0.3rem;
    transition: background 0.25s, transform 0.25s;
}
.exp-card:hover .exp-card-icon {
    background: rgba(220,38,38,0.16);
    transform: rotate(-6deg) scale(1.08);
}

.exp-card-title {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--text-primary); margin: 0; line-height: 1.3;
    transition: color 0.2s;
}
.exp-card:hover .exp-card-title { color: var(--primary-color); }

.exp-card-desc {
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; margin: 0;
    flex: 1;
}

.exp-card-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 600; color: var(--primary-color);
    margin-top: 0.5rem;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s, gap 0.2s;
    text-decoration: none;
}
.exp-card:hover .exp-card-link { opacity: 1; transform: translateY(0); gap: 0.6rem; }

/* Responsive */
@media (max-width: 1024px) {
    .exp-layout { grid-template-columns: 1fr; gap: 3rem; }
    .exp-intro { position: static; }
    .exp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .exp-grid { grid-template-columns: 1fr; }
}

/* ── ABOUT V2 (redesigned — text left, circular photo right) ──────── */
.about-v2 {
    padding: 7rem 0;
    position: relative; overflow: hidden;
    /* Base dark background */
    background-color: #0d0d18;
    /* Layered pattern */
    background-image:
        /* Large radial glow — top right */
        radial-gradient(ellipse 60% 70% at 90% 0%, rgba(220,38,38,0.09) 0%, transparent 65%),
        /* Large radial glow — bottom left */
        radial-gradient(ellipse 50% 60% at 5% 100%, rgba(185,28,28,0.07) 0%, transparent 60%),
        /* Dot grid */
        radial-gradient(circle, rgba(220,38,38,0.14) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    background-position: top right, bottom left, 0 0;
}

/* Decorative ring shapes — top-right & bottom-left */
.about-v2::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 1.5px solid rgba(220,38,38,0.18);
    pointer-events: none; z-index: 0;
}
.about-v2::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 1.5px solid rgba(220,38,38,0.13);
    pointer-events: none; z-index: 0;
}
.about-v2 .container { position: relative; z-index: 1; }

/* Light mode override */
[data-theme="light"] .about-v2 {
    background-color: #f4f5fb;
    background-image:
        /* Stronger red glow — top right */
        radial-gradient(ellipse 60% 70% at 90% 0%,  rgba(220,38,38,0.18) 0%, transparent 65%),
        /* Softer red glow — bottom left */
        radial-gradient(ellipse 50% 60% at 5% 100%, rgba(185,28,28,0.12) 0%, transparent 60%),
        /* Dot grid — clearly visible on light bg */
        radial-gradient(circle, rgba(180,28,28,0.22) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    background-position: top right, bottom left, 0 0;
}
/* Ring shapes — light mode */
[data-theme="light"] .about-v2::before {
    border-color: rgba(220,38,38,0.25);
    box-shadow: 0 0 60px rgba(220,38,38,0.06);
}
[data-theme="light"] .about-v2::after {
    border-color: rgba(185,28,28,0.2);
}

/* Two-column layout */
.abt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ─ Left: text column ─ */
.abt-text .section-tag { margin-bottom: 0.85rem; }

.abt-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
    color: var(--text-primary); margin-bottom: 1.25rem;
}

.abt-desc {
    color: var(--text-secondary); font-size: 0.975rem;
    line-height: 1.85; margin-bottom: 2.5rem;
}

/* Mission / Vision points */
.abt-points { display: flex; flex-direction: column; gap: 1.5rem; }

.abt-point {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.25s, transform 0.25s;
}
.abt-point:hover {
    border-color: rgba(220,38,38,0.3);
    transform: translateX(4px);
}

.abt-point-icon {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    border: 1.5px solid rgba(220,38,38,0.35);
    background: rgba(220,38,38,0.07);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.05rem;
    transition: background 0.25s;
}
.abt-point:hover .abt-point-icon { background: rgba(220,38,38,0.15); }

.abt-point-body h4 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--primary-color); margin-bottom: 0.3rem;
}
.abt-point-body p {
    color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; margin: 0;
}

/* ─ Right: visual column ─ */
.abt-visual {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 460px;
    overflow: visible;
}

/* ── Soft glow behind the circle ── */
.abt-visual::before {
    content: '';
    position: absolute; inset: -20px;
    border-radius: 50%;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(220,38,38,0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Outer glow ring — static, no rotation */
.abt-img-ring {
    width: 380px; height: 380px; border-radius: 50%;
    padding: 5px;
    background: conic-gradient(from 120deg, rgba(220,38,38,0.55), rgba(220,38,38,0.05) 45%, rgba(220,38,38,0.55) 100%);
    flex-shrink: 0;
    position: relative; z-index: 1;
    box-shadow: 0 0 40px rgba(220,38,38,0.15), 0 0 80px rgba(220,38,38,0.07);
}

/* Inner circle: image or placeholder */
.abt-img-circle {
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, #0d0d18 0%, #1a0520 50%, #200a0a 100%);
    overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
    border: 4px solid var(--dark-bg);
}
.abt-img-placeholder {
    font-family: 'Courier New', monospace; font-size: 5rem; font-weight: 900;
    color: rgba(220,38,38,0.12); letter-spacing: -0.05em; user-select: none;
}

/* ── Ring wrapper — badges position relative to this ── */
.abt-ring-wrap {
    position: relative;
    width: 380px; height: 380px;
    flex-shrink: 0;
}

/* ── Floating badges ── */
.abt-badge {
    position: absolute;
    z-index: 3;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 0.65rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: abtBadgeFloat 3.5s ease-in-out infinite;
}
@keyframes abtBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Years — top-left, peeking outside the ring */
.abt-badge--years {
    top: 10px; left: -115px;
    flex-direction: column; align-items: flex-start; gap: 0.1rem;
    border-left: 3px solid var(--primary-color);
    animation-delay: 0s;
}
.abt-badge-num {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.abt-badge-label {
    font-size: 0.68rem; color: var(--text-secondary); line-height: 1.3;
}

/* Projects — bottom-left, peeking outside the ring */
.abt-badge--projects {
    bottom: 10px; left: -115px;
    border-top: 2px solid var(--primary-color);
    animation-delay: 1.1s;
}
.abt-badge--projects i,
.abt-badge--clients i {
    font-size: 1.1rem; color: var(--primary-color); flex-shrink: 0;
}
.abt-stat-num {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800;
    color: var(--text-primary); display: inline;
}
.abt-badge--projects .abt-badge-label,
.abt-badge--clients .abt-badge-label {
    display: block; font-size: 0.68rem;
    color: var(--text-secondary); margin-top: 0.1rem;
}

/* Clients — bottom-right, peeking outside the ring */
.abt-badge--clients {
    bottom: 10px; right: -115px;
    border-top: 2px solid var(--primary-color);
    animation-delay: 2s;
}

/* ── Decorative corner brackets on the visual panel ── */
.abt-visual-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}

/* Top-left bracket */
.abt-corner { position: absolute; width: 36px; height: 36px; z-index: 2; }
.abt-corner--tl { top: 10px; left: 10px; border-top: 2px solid rgba(220,38,38,0.5); border-left: 2px solid rgba(220,38,38,0.5); }
.abt-corner--tr { top: 10px; right: 10px; border-top: 2px solid rgba(220,38,38,0.5); border-right: 2px solid rgba(220,38,38,0.5); }
.abt-corner--bl { bottom: 10px; left: 10px; border-bottom: 2px solid rgba(220,38,38,0.5); border-left: 2px solid rgba(220,38,38,0.5); }
.abt-corner--br { bottom: 10px; right: 10px; border-bottom: 2px solid rgba(220,38,38,0.5); border-right: 2px solid rgba(220,38,38,0.5); }

/* ── About responsive ── */
@media (max-width: 1024px) {
    .abt-grid { grid-template-columns: 1fr; gap: 4rem; }
    .abt-visual { order: -1; min-height: 340px; }
    .abt-ring-wrap { width: 300px; height: 300px; }
    .abt-img-ring  { width: 300px; height: 300px; }
    /* On mobile stack: badges float below/beside the ring */
    .abt-badge--years    { top: 10px;  left: -90px; }
    .abt-badge--projects { bottom: 10px; left: -90px; }
    .abt-badge--clients  { bottom: 10px; right: -90px; }
}
@media (max-width: 600px) {
    .abt-ring-wrap { width: 250px; height: 250px; }
    .abt-img-ring  { width: 250px; height: 250px; }
    /* Stack badges above and below on very small screens */
    .abt-badge--years    { top: -60px; left: 50%; transform: translateX(-50%); }
    .abt-badge--projects { bottom: -60px; left: 10px; transform: none; }
    .abt-badge--clients  { bottom: -60px; right: 10px; }
    .abt-badge { padding: 0.6rem 0.85rem; }
    .abt-badge-num { font-size: 1.2rem; }
}

/* ── TESTIMONIALS (clean single-card slider) ─────────────────────── */
.testi-section { padding: 7rem 0; background: var(--dark-bg-2); }

.testi-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 3rem; gap: 1.5rem; flex-wrap: wrap;
}
.testi-top-left .section-tag { margin-bottom: 0.6rem; }
.testi-heading {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.testi-controls { display: flex; gap: 0.65rem; }
.testi-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border-color); background: transparent;
    color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.testi-btn:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(220,38,38,0.08); }

.testi-stage {
    position: relative; min-height: 230px; margin-bottom: 2rem;
}
.testi-slide {
    position: absolute; inset: 0;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 2.5rem;
    opacity: 0; pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.42s ease, transform 0.42s ease;
}
.testi-slide.active {
    position: relative; opacity: 1; pointer-events: auto;
    transform: translateY(0); border-color: rgba(220,38,38,0.25);
    box-shadow: var(--shadow-md);
}
.testi-quote-mark {
    font-family: Georgia, serif; font-size: 5rem; line-height: 0.6; display: block;
    color: rgba(220,38,38,0.2); margin-bottom: 1.25rem; font-weight: 700;
}
.testi-body {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85;
    font-style: italic; margin-bottom: 2rem;
}
.testi-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.testi-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #fff;
}
.testi-meta { flex: 1; }
.testi-name { display: block; font-size: 0.95rem; font-weight: 700; }
.testi-role { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.testi-stars { display: flex; gap: 0.2rem; color: #f59e0b; font-size: 0.82rem; margin-left: auto; }

.testi-dots { display: flex; gap: 0.5rem; align-items: center; }
.testi-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-color); border: none; cursor: pointer;
    transition: var(--transition); padding: 0;
}
.testi-dot.active { background: var(--primary-color); width: 24px; border-radius: 4px; }

@media (max-width: 768px) {
    .testi-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .testi-slide { padding: 1.75rem; }
    .testi-stars { display: none; }
}

/* ── CONTACT V2 + CONVERSATIONAL FORM ───────────────────────────── */
.contact-v2 { padding: 7rem 0; background: var(--dark-bg); }

/* Section heading above grid */
.convo-header { margin-bottom: 4rem; }
.convo-header .section-tag { margin-bottom: 1rem; }
.convo-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
    color: var(--text-primary); max-width: 680px;
}

.contact-v2-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 5rem; align-items: start; }

/* Info column */
.cv2-info-list { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.cv2-info {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 1.25rem; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    transition: var(--transition);
}
.cv2-info:hover { border-color: rgba(220,38,38,0.3); transform: translateX(4px); }
.cv2-info-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 0.9rem;
}
.cv2-info strong { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.15rem; color: var(--text-primary); }
.cv2-info span { color: var(--text-secondary); font-size: 0.8rem; }

.cv2-social { display: flex; gap: 0.6rem; }
.cv2-social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition);
    text-decoration: none;
}
.cv2-social a:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(220,38,38,0.08); transform: translateY(-3px); }

/* ── Conversational Form ──────────────────────────────────────────── */
.convo-form { display: flex; flex-direction: column; }

.convo-line {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 0.3rem 0.6rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem; line-height: 2;
    color: var(--text-primary);
    transition: border-color 0.2s;
}
.convo-line:first-child { border-top: 1px solid var(--border-color); }
.convo-line:focus-within { border-color: rgba(220,38,38,0.4); }

.convo-input {
    background: transparent; border: none;
    border-bottom: 1.5px solid rgba(220,38,38,0.35);
    outline: none; padding: 0.1rem 0.3rem 0.2rem;
    color: var(--primary-color); font-size: 1rem;
    font-family: var(--font-primary); font-weight: 500;
    min-width: 110px;
    transition: border-color 0.2s, min-width 0.2s;
}
.convo-input::placeholder { color: rgba(220,38,38,0.45); }
.convo-input:focus { border-color: var(--primary-color); outline: none; }
.convo-input--grow { flex: 1; min-width: 180px; }
[data-theme="light"] .convo-input { color: var(--primary-color); }
[data-theme="light"] .convo-input::placeholder { color: rgba(185,28,28,0.5); }

/* Submit row */
.convo-submit { margin-top: 2.5rem; display: flex; justify-content: center; }
.convo-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 2.6rem; border-radius: 50px;
    background: transparent;
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary); font-size: 1rem; font-weight: 600;
    cursor: pointer; font-family: var(--font-primary);
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.convo-btn:hover {
    background: var(--primary-color); border-color: var(--primary-color);
    color: #fff; transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(220,38,38,0.35);
}
.convo-btn:active { transform: scale(0.98); }
.convo-btn.sending .convo-btn-text { opacity: 0; }
.convo-btn.sending .convo-btn-icon { animation: btnSpin 0.6s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ── Mail Sent Overlay ────────────────────────────────────────────── */
.mail-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(5,5,15,0.88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.45s ease;
}
.mail-overlay.show { opacity: 1; pointer-events: all; }

.mail-overlay-inner {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.25rem; text-align: center; padding: 2rem;
}

/* Animated icon wrap */
.mail-anim-wrap {
    position: relative; width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
}

/* Expanding rings */
.mail-plane-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(220,38,38,0.35);
    animation: ringExpand 1.8s ease-out infinite;
}
.mail-plane-ring.ring-2 { animation-delay: 0.6s; }
@keyframes ringExpand {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Paper plane icon */
.mail-plane-icon {
    font-size: 2.8rem; color: var(--primary-color);
    position: relative; z-index: 1;
    opacity: 0; transform: translate(0,0) rotate(-45deg) scale(0.4);
    animation: planeShoot 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
    animation-delay: 0.2s;
}
@keyframes planeShoot {
    0%   { opacity: 0; transform: translate(0,10px) rotate(-45deg) scale(0.4); }
    50%  { opacity: 1; transform: translate(0,0) rotate(-45deg) scale(1.1); }
    100% { opacity: 0; transform: translate(60px,-60px) rotate(-45deg) scale(0.3); }
}

/* Check icon that appears after plane flies */
.mail-check-icon {
    position: absolute; font-size: 2.8rem; color: #22c55e; z-index: 1;
    opacity: 0; transform: scale(0);
    animation: checkPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
    animation-delay: 0.85s;
}
@keyframes checkPop {
    to { opacity: 1; transform: scale(1); }
}

.mail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem; font-weight: 800; color: #fff;
    letter-spacing: -0.03em; margin: 0;
    opacity: 0; transform: translateY(18px);
    animation: slideUp 0.5s ease forwards;
    animation-delay: 1s;
}
.mail-sub {
    font-size: 0.95rem; color: rgba(255,255,255,0.5); margin: 0;
    opacity: 0; transform: translateY(12px);
    animation: slideUp 0.5s ease forwards;
    animation-delay: 1.15s;
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.mail-close-btn {
    margin-top: 0.5rem;
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.55); padding: 0.6rem 2.2rem;
    border-radius: 50px; cursor: pointer; font-size: 0.875rem;
    font-family: var(--font-primary);
    transition: background 0.2s, color 0.2s;
    opacity: 0; animation: slideUp 0.5s ease forwards;
    animation-delay: 1.35s;
}
.mail-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .contact-v2-grid { grid-template-columns: 1fr; gap: 3rem; }
    .convo-input--grow { min-width: 140px; }
    /* Form first on mobile */
    .cv2-right { order: -1; }
}
@media (max-width: 560px) {
    .convo-line { font-size: 0.9rem; }
    .convo-input { min-width: 80px; font-size: 0.9rem; }
    .convo-heading { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════════
   CODE-EDITOR CONTACT FORM  (VS Code dark theme)
   ══════════════════════════════════════════════════════════════════ */

/* VS Code colour palette (always dark — not theme-dependent) */
:root {
    --vsc-bg:       #1e1e1e;
    --vsc-bg2:      #252526;
    --vsc-bar:      #323233;
    --vsc-ln:       #6e7681;
    --vsc-active:   rgba(255,255,255,0.04);
    --vsc-border:   rgba(255,255,255,0.08);
    --vsc-text:     #d4d4d4;
    --vsc-kw:       #569cd6;   /* const/let/function */
    --vsc-var:      #9cdcfe;   /* variable names */
    --vsc-prop:     #9cdcfe;   /* object keys */
    --vsc-str:      #ce9178;   /* string values */
    --vsc-cmt:      #6a9955;   /* comments */
    --vsc-fn:       #dcdcaa;   /* function calls */
    --vsc-br:       #ffd700;   /* brackets/braces */
    --vsc-op:       #d4d4d4;   /* operators */
    --vsc-status:   #007acc;   /* status bar blue */
}

/* ── Form focus callout (points at cc-bar) ── */
.cc-form-anchor { position: relative; }

.cc-focus-hint {
    display: flex; justify-content: center;
    margin-bottom: 1rem;
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.cc-focus-hint.is-hidden {
    opacity: 0; transform: translateY(-8px); visibility: hidden;
}
.cc-focus-hint-badge {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.7rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgba(220,38,38,0.95), rgba(185,28,28,0.85));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(220,38,38,0.5), 0 8px 32px rgba(220,38,38,0.45);
    animation: ccHintBadgePulse 2s ease-in-out infinite;
}
.cc-focus-hint-badge > i:first-child { font-size: 0.85rem; opacity: 0.95; }
.cc-focus-hint-arrow {
    font-size: 0.7rem;
    animation: ccHintArrowBounce 1.2s ease-in-out infinite;
}
@keyframes ccHintBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220,38,38,0.55), 0 8px 28px rgba(220,38,38,0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220,38,38,0), 0 12px 40px rgba(220,38,38,0.55);
        transform: scale(1.03);
    }
}
@keyframes ccHintArrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* Pulsing ring around the editor window */
.cc-wrap-glow {
    position: relative;
    border-radius: 12px;
    transition: box-shadow 0.45s ease;
}
.cc-wrap-glow::before {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 14px;
    border: 2px solid rgba(220,38,38,0.65);
    pointer-events: none; z-index: 2;
    animation: ccWrapRingPulse 2.2s ease-in-out infinite;
}
.cc-wrap-glow::after {
    content: '';
    position: absolute; inset: -8px;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,0.2) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
    animation: ccWrapGlowFade 2.2s ease-in-out infinite;
}
.cc-wrap-glow.is-hidden::before,
.cc-wrap-glow.is-hidden::after { animation: none; opacity: 0; transition: opacity 0.45s ease; }
@keyframes ccWrapRingPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.008); }
}
@keyframes ccWrapGlowFade {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* Outer wrapper */
.cc-wrap {
    position: relative; z-index: 1;
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.88rem; line-height: 1.6;
    background: var(--vsc-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cc-wrap-glow:not(.is-hidden) .cc-wrap {
    border-color: rgba(220,38,38,0.45);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 48px rgba(220,38,38,0.25);
}

/* Window title bar — highlighted entry point */
.cc-bar {
    display: flex; align-items: center; gap: 1rem;
    background: var(--vsc-bar); padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    user-select: none;
    position: relative;
}
.cc-bar--focus {
    background: linear-gradient(180deg, #2d2d35 0%, var(--vsc-bar) 100%);
}
.cc-wrap-glow:not(.is-hidden) .cc-bar--focus {
    border-bottom-color: rgba(220,38,38,0.5);
    box-shadow: inset 0 -3px 0 rgba(220,38,38,0.85), 0 4px 24px rgba(220,38,38,0.2);
    animation: ccBarHighlight 2s ease-in-out infinite;
}
.cc-wrap-glow:not(.is-hidden) .cc-bar--focus::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: ccBarScan 2.5s ease-in-out infinite;
}
@keyframes ccBarHighlight {
    0%, 100% { box-shadow: inset 0 -3px 0 rgba(220,38,38,0.6), 0 2px 16px rgba(220,38,38,0.15); }
    50%      { box-shadow: inset 0 -4px 0 rgba(220,38,38,1), 0 6px 28px rgba(220,38,38,0.35); }
}
@keyframes ccBarScan {
    0%   { transform: translateX(-100%); opacity: 0; }
    30%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cc-focus-hint-badge,
    .cc-focus-hint-arrow,
    .cc-wrap-glow::before,
    .cc-wrap-glow::after,
    .cc-wrap-glow:not(.is-hidden) .cc-bar--focus,
    .cc-wrap-glow:not(.is-hidden) .cc-bar--focus::after { animation: none; }
}
.cc-bar-dots { display: flex; gap: 6px; }
.cc-dot { width: 12px; height: 12px; border-radius: 50%; }
.cc-dot--r { background: #ff5f57; }
.cc-dot--y { background: #febc2e; }
.cc-dot--g { background: #28c840; }
.cc-filename { color: #cccccc; font-size: 0.8rem; flex: 1; text-align: center; }
.cc-lang { font-size: 0.72rem; color: var(--vsc-ln); margin-left: auto; }

/* Editor body */
.cc-body {
    background: var(--vsc-bg);
    padding: 0.5rem 0 0;
    display: block;
}

/* Each line */
.cc-line {
    display: flex; align-items: baseline;
    padding: 0.06rem 1rem 0.06rem 0;
    min-height: 1.75rem;
    transition: background 0.15s;
    position: relative;
}
.cc-line:hover { background: var(--vsc-active); }
.cc-line--active { background: rgba(255,255,255,0.06) !important; }
.cc-line--blank { min-height: 1rem; }
.cc-line--cmt { opacity: 0.85; }

/* Line numbers */
.cc-ln {
    min-width: 3rem; text-align: right;
    padding-right: 1.5rem; color: var(--vsc-ln);
    font-size: 0.8rem; user-select: none; flex-shrink: 0;
    transition: color 0.15s;
}
.cc-line--active .cc-ln { color: #cccccc; }
.cc-line--field:focus-within .cc-ln { color: #cccccc; }
.cc-line--field:focus-within { background: var(--vsc-active); }

/* Syntax token colours */
.cc-code { display: flex; align-items: baseline; flex-wrap: wrap; flex: 1; }
.cc-kw    { color: var(--vsc-kw);   }
.cc-var   { color: var(--vsc-var);  }
.cc-prop  { color: var(--vsc-prop); }
.cc-fn    { color: var(--vsc-fn);   }
.cc-cmt   { color: var(--vsc-cmt); font-style: italic; }
.cc-qt    { color: var(--vsc-str);  }
.cc-br    { color: var(--vsc-br);   }
.cc-op    { color: var(--vsc-op);   white-space: pre; }
.cc-comma { color: var(--vsc-op);   }
.cc-ind   { white-space: pre; }
.cc-inline-cmt { color: var(--vsc-cmt); font-style: italic; opacity: 0.7; }

/* Inline input — grows to fit text, invisible box */
.cc-inp {
    background: transparent; border: none; outline: none;
    color: var(--vsc-str);
    font-family: inherit; font-size: inherit; line-height: inherit;
    caret-color: #aeafad;
    padding: 0; margin: 0;
    width: 160px; max-width: 260px;
    transition: width 0.2s;
}
.cc-inp--wide { width: 220px; max-width: 340px; }
.cc-inp::placeholder { color: rgba(206,145,120,0.35); }
.cc-inp:focus { outline: none; }

/* When input has a value — keep string colour (already set) */
.cc-inp:not(:placeholder-shown) { color: var(--vsc-str); }

/* Submit line */
.cc-line--submit { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.cc-run-btn {
    background: transparent; border: none; cursor: pointer;
    font-family: inherit; font-size: inherit; line-height: inherit;
    display: inline-flex; align-items: center; gap: 0;
    padding: 0; color: inherit;
}
.cc-run-btn .cc-var  { color: var(--vsc-var);  }
.cc-run-btn .cc-op   { color: var(--vsc-op);   }
.cc-run-btn .cc-fn   { color: var(--vsc-fn);   }
.cc-run-btn .cc-br   { color: var(--vsc-br);   }
.cc-run-label {
    display: inline-flex; align-items: center;
    margin-left: 1.25rem;
    padding: 0.2rem 0.9rem; border-radius: 4px;
    background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.3);
    color: #ff6b6b; font-size: 0.8rem; font-weight: 600;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.cc-run-btn:hover .cc-run-label {
    background: rgba(220,38,38,0.3); border-color: rgba(220,38,38,0.6);
    color: #fff; transform: scale(1.04);
}

/* Status bar */
.cc-statusbar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--vsc-status); padding: 0.25rem 1rem;
    font-size: 0.72rem; color: rgba(255,255,255,0.9);
    user-select: none; flex-wrap: wrap; gap: 0.5rem;
}
.cc-status-left, .cc-status-right { display: flex; gap: 0.75rem; }
.cc-status-branch::before { content: '⎇  '; }

/* ── Terminal Success Overlay ─────────────────────────────────────── */
.mail-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(5,5,15,0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.mail-overlay.show { opacity: 1; pointer-events: all; }

.mail-overlay-inner {
    display: flex; flex-direction: column; align-items: center;
    gap: 0; text-align: left; width: 100%; max-width: 520px; padding: 1rem;
}

/* Terminal window */
.mail-terminal {
    width: 100%; background: #1e1e1e;
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}
.mail-term-bar {
    display: flex; align-items: center; gap: 0.6rem;
    background: #323233; padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mail-term-dots { display: flex; gap: 6px; }
.mail-term-dots span { width: 12px; height: 12px; border-radius: 50%; }
.mail-term-dots span:nth-child(1) { background:#ff5f57; }
.mail-term-dots span:nth-child(2) { background:#febc2e; }
.mail-term-dots span:nth-child(3) { background:#28c840; }
.mail-term-title { color: #cccccc; font-size: 0.8rem; margin: 0 auto; }

.mail-term-body {
    padding: 1.25rem 1.5rem 1.5rem;
    min-height: 200px;
    display: flex; flex-direction: column; gap: 0;
}

.mail-term-line {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.84rem; line-height: 1.9;
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
}
.mail-term-line.show { opacity: 1; transform: translateY(0); }

.mail-term-prompt { color: #6a9955; }
.mail-term-cmd    { color: #dcdcaa; }
.mail-term-ok     { color: #28c840; font-weight: 700; }
.mail-term-info   { color: #9cdcfe; }
.mail-term-warn   { color: #ce9178; }
.mail-term-done   { color: #ffffff; font-weight: 700; font-size: 0.9rem; }

/* Blinking cursor */
.mail-term-cursor {
    display: inline-block; width: 9px; height: 1.1em;
    background: #aeafad; vertical-align: text-bottom;
    animation: termBlink 1s step-end infinite;
    opacity: 0;
}
.mail-term-cursor.show { opacity: 1; }
@keyframes termBlink { 50% { opacity: 0; } }

/* Close row */
.mail-term-close-row {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: center;
}
.mail-close-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.55); padding: 0.55rem 2rem;
    border-radius: 50px; cursor: pointer; font-size: 0.875rem;
    font-family: var(--font-primary);
    transition: background 0.2s, color 0.2s;
}
.mail-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Old mail-anim vars — keep for compat */
.mail-anim-wrap, .mail-plane-ring, .mail-plane-icon,
.mail-check-icon, .mail-title, .mail-sub { display: none; }

/* ── Responsive additions ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-v2-split { grid-template-columns: 1fr; text-align: center; min-height: unset; gap: 3rem; }
    .hero-v2-right { display: none; }
    .hero-v2-sub { margin: 0 auto 2.25rem; }
    .hero-v2-cta { justify-content: center; }
    .hero-v2-pills { justify-content: center; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .about-v2-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-v2-grid { grid-template-columns: 1fr; gap: 3rem; }
    .sv2-item { grid-template-columns: 44px 44px 1fr auto; }
}
@media (max-width: 768px) {
    .hero-v2-title { font-size: clamp(2.2rem, 10vw, 3.5rem); min-height: 8rem; }
    .hero-v2-cta { flex-direction: column; align-items: center; }
    .work-grid { grid-template-columns: 1fr; }
    .sv2-item { grid-template-columns: 1fr auto; gap: 1rem; }
    .sv2-num, .sv2-icon { display: none; }
    .testi-section { padding: 4rem 0; }
    .cv2-form-row { grid-template-columns: 1fr; }
    .about-v2-stat-row { gap: 0.75rem; }
}
