/* ==============================================
   CHERAN J — PREMIUM PORTFOLIO v5.0
   Enhanced UI/UX • 3D • Animations • All Sections
   ============================================== */

/* ─── LIGHT MODE (default) ─── */
:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-dark: #0f0f14;
    --bg-muted: #f2f2f5;
    --text: #111118;
    --text-2: #4e4e5a;
    --text-3: #9393a3;
    --muted: #9393a3;
    --accent: #5046e5;
    --accent-2: #7c6ff7;
    --accent-bg: rgba(80, 70, 229, 0.06);
    --green: #22c55e;
    --blue: #3b82f6;
    --orange: #f97316;
    --pink: #ec4899;
    --gradient: linear-gradient(135deg, #5046e5, #7c6ff7, #c084fc);
    --border: #e8e8ee;
    --border-hover: rgba(80, 70, 229, 0.25);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-full: 100px;
    --font: 'Plus Jakarta Sans', sans-serif;
    --font-2: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.4s;
}

/* ─── DARK MODE ─── */
html.dark {
    --bg: #080810;
    --bg-card: #111119;
    --bg-dark: #0a0a14;
    --bg-muted: #16161f;
    --text: #f0f0f8;
    --text-2: #a0a0b8;
    --text-3: #666680;
    --muted: #666680;
    --border: #1e1e2e;
    --border-hover: rgba(124, 111, 247, 0.4);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --accent-bg: rgba(124, 111, 247, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    overflow-x: hidden; line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}
html.dark body { background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d0d8; border-radius: 10px; }
html.dark ::-webkit-scrollbar-thumb { background: #333350; }

/* ===== LOADER ===== */
.page-loader {
    position: fixed; inset: 0; background: #fff; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 20px;
    transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring { width: 48px; height: 48px; position: relative; }
.loader-ring div {
    position: absolute; width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: var(--accent);
    animation: spin 1.2s ease-in-out infinite;
}
.loader-ring div:nth-child(2) { width: 32px; height: 32px; top: 4px; left: 4px; border-top-color: var(--accent-2); animation-delay: 0.15s; }
.loader-ring div:nth-child(3) { width: 24px; height: 24px; top: 8px; left: 8px; border-top-color: var(--pink); animation-delay: 0.3s; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-weight: 700; font-size: 1rem; color: var(--text); letter-spacing: -0.3px; }

/* ===== CURSOR ===== */
.cursor-dot {
    position: fixed; width: 5px; height: 5px; background: var(--accent);
    border-radius: 50%; pointer-events: none; z-index: 99998;
    transform: translate(-50%, -50%); transition: transform 0.08s;
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed; width: 32px; height: 32px;
    border: 1.5px solid rgba(80,70,229,0.3); border-radius: 50%;
    pointer-events: none; z-index: 99997;
    transform: translate(-50%, -50%);
    transition: width var(--dur) var(--ease), height var(--dur) var(--ease), border-color var(--dur), background var(--dur);
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent); background: rgba(80,70,229,0.06); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 16px 0; transition: all var(--dur) var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border); padding: 10px 0; box-shadow: var(--shadow-xs);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo-icon {
    width: 36px; height: 36px; border-radius: 10px; background: var(--gradient);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800;
}
.logo-dot { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 500; color: var(--text-2);
    transition: all var(--dur) var(--ease);
}
.nav-link:hover { color: var(--accent); background: var(--accent-bg); }
.nav-link.active { color: #fff; background: var(--accent); }
.nav-cta {
    padding: 10px 22px; border-radius: var(--radius-full);
    background: var(--bg-dark); color: #fff;
    font-size: 0.82rem; font-weight: 600;
    transition: all var(--dur) var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after {
    content: ''; display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 10px; transition: all var(--dur);
}
.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(4px); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-2px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
    padding: 120px 0 80px; text-align: center;
    perspective: 1000px;
}
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particle {
    position: absolute; border-radius: 50%; pointer-events: none;
    animation: particleDrift linear infinite;
}
@keyframes particleDrift {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}
.hero-gradient-orb {
    position: absolute; border-radius: 50%; filter: blur(100px);
    z-index: 0; pointer-events: none; animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; top: -15%; right: -10%; background: rgba(80,70,229,0.1); }
.orb-2 { width: 500px; height: 500px; bottom: -20%; left: -12%; background: rgba(236,72,153,0.07); animation-delay: -7s; }
.orb-3 { width: 350px; height: 350px; top: 30%; left: 40%; background: rgba(124,111,247,0.06); animation-delay: -14s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(40px,-30px) scale(1.08); }
    50% { transform: translate(-20px,25px) scale(0.95); }
    75% { transform: translate(30px,15px) scale(1.03); }
}
.hero-container { max-width: 900px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero-center { position: relative; }
.hero-chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: var(--radius-full);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.8rem; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow-xs); animation: chipIn 0.6s var(--ease-bounce) both;
}
.chip:nth-child(2) { animation-delay: 0.1s; }
.chip-alt { background: var(--accent-bg); color: var(--accent); border-color: rgba(80,70,229,0.12); }
.chip-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
@keyframes chipIn { from { opacity:0; transform: translateY(20px) scale(0.9); } to { opacity:1; transform: translateY(0) scale(1); } }
.hero-title {
    font-size: 4.5rem; font-weight: 800; line-height: 1.08;
    letter-spacing: -3px; margin-bottom: 24px;
}
.line { display: block; }
.line-1 { animation: heroSlide 0.8s var(--ease) both; }
.line-2 { animation: heroSlide 0.8s var(--ease) 0.12s both; }
.line-3 { animation: heroSlide 0.8s var(--ease) 0.24s both; }
@keyframes heroSlide { from { opacity:0; transform: translateY(40px) rotateX(15deg); } to { opacity:1; transform: translateY(0) rotateX(0); } }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-stroke {
    -webkit-text-stroke: 2px var(--text); -webkit-text-fill-color: transparent;
    position: relative; transition: all 0.5s;
}
.text-stroke:hover { -webkit-text-fill-color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.text-stroke::after {
    content: attr(data-text); position: absolute; left: 0; top: 0;
    -webkit-text-stroke: 0; -webkit-text-fill-color: var(--accent);
    clip-path: inset(0 100% 0 0); transition: clip-path 0.6s var(--ease);
}
.text-stroke:hover::after { clip-path: inset(0 0 0 0); }
.hero-description {
    font-size: 1.12rem; color: var(--text-2); max-width: 540px;
    margin: 0 auto 36px; line-height: 1.8;
    animation: heroSlide 0.8s var(--ease) 0.35s both;
}
.hero-cta {
    display: flex; gap: 14px; justify-content: center; margin-bottom: 56px;
    animation: heroSlide 0.8s var(--ease) 0.45s both;
}
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--radius-full);
    font-family: var(--font); font-size: 0.88rem; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--dur) var(--ease);
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: opacity var(--dur);
}
.btn:hover::before { opacity: 1; }
.btn-primary { background: var(--bg-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent); transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-full { width: 100%; justify-content: center; }
.hero-metrics {
    display: flex; gap: 48px; justify-content: center;
    animation: heroSlide 0.8s var(--ease) 0.55s both;
}
.metric { text-align: center; }
.metric-value { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.metric-plus { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.metric-label { display: block; font-size: 0.76rem; color: var(--text-3); margin-top: 2px; font-weight: 500; }
.hero-floating { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.float-3d {
    position: absolute; width: 54px; height: 54px; border-radius: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; box-shadow: var(--shadow-md);
    animation: float3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
}
.float-3d:hover { transform: scale(1.3) rotateY(20deg); }
.f3d-1 { top: 8%; left: 2%; color: #e34f26; animation-delay: 0s; }
.f3d-2 { top: 25%; right: 3%; color: #264de4; animation-delay: 1s; }
.f3d-3 { bottom: 30%; left: 5%; color: #f7df1e; animation-delay: 2s; }
.f3d-4 { top: 5%; right: 15%; color: #3776ab; animation-delay: 3s; }
.f3d-5 { bottom: 15%; right: 8%; color: #0088cc; animation-delay: 4s; }
.f3d-6 { bottom: 10%; left: 18%; color: var(--accent); animation-delay: 5s; }
@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    25% { transform: translateY(-15px) rotateX(10deg) rotateY(5deg); }
    50% { transform: translateY(-8px) rotateX(-5deg) rotateY(-10deg); }
    75% { transform: translateY(-18px) rotateX(8deg) rotateY(8deg); }
}
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5; }
.scroll-line {
    width: 2px; height: 40px; background: var(--border); border-radius: 2px;
    position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: -40px; left: 0;
    width: 100%; height: 20px; background: var(--accent);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -20px; } 100% { top: 40px; } }

/* ===== SECTIONS BASE ===== */
.section { padding: 100px 0; position: relative; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.eyebrow {
    display: inline-block; padding: 6px 18px; border-radius: var(--radius-full);
    background: var(--accent-bg); font-size: 0.78rem; font-weight: 600;
    color: var(--accent); font-family: var(--font-mono); letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.title-xl {
    font-size: 2.8rem; font-weight: 800; line-height: 1.2;
    letter-spacing: -1.5px; max-width: 650px;
}
.section-head.center .title-xl { margin: 0 auto; }
.section-sub {
    font-size: 1rem; color: var(--text-2); max-width: 500px;
    margin: 12px auto 0; line-height: 1.7;
}

/* Bento Card */
.bento-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: all var(--dur) var(--ease);
    position: relative; overflow: hidden;
}
.bento-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.bento-icon {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 14px; transition: all var(--dur);
}
.bento-icon.green { background: rgba(34,197,94,0.08); color: var(--green); }
.bento-icon.blue { background: rgba(59,130,246,0.08); color: var(--blue); }
.bento-icon.purple { background: var(--accent-bg); color: var(--accent); }
.bento-icon.orange { background: rgba(249,115,22,0.08); color: var(--orange); }
.bento-card:hover .bento-icon { transform: scale(1.15) rotate(5deg); }

/* ===== RESULTS — ENHANCED ===== */
.results-section { background: var(--bg-muted); }
.results-bento {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.results-bento .bento-card { padding: 28px; }
.results-bento h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.results-bento p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.result-perf { grid-column: 1 / 4; padding: 48px !important; }
.result-full { grid-column: 1 / 2; display: flex; flex-direction: column; gap: 16px; }
.result-speed { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; }
.result-seo-card { grid-column: span 1; }

/* Perf header row */
.result-perf-header { margin-bottom: 36px; text-align: center; }
.perf-title-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: var(--radius-full);
    background: var(--bg-dark); color: #fff;
    font-size: 0.8rem; font-weight: 700; margin-bottom: 10px;
}
.perf-subtitle { font-size: 0.88rem; color: var(--text-3); }

.perf-scores { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.perf-circle { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.perf-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.perf-bg { fill: none; stroke: var(--bg-muted); stroke-width: 6; }
.perf-fill {
    fill: none; stroke-width: 6; stroke-linecap: round;
    stroke-dasharray: 327; stroke-dashoffset: 327;
    transition: stroke-dashoffset 2s var(--ease);
}
.perf-green { stroke: var(--green); }
.perf-blue { stroke: var(--blue); }
.perf-purple { stroke: var(--accent-2); }
.perf-orange { stroke: var(--orange); }
.perf-label { position: absolute; text-align: center; }
.perf-num { display: block; font-size: 2rem; font-weight: 800; }
.perf-txt { font-size: 0.7rem; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Perf badges row */
.perf-badges-row {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px;
}
.perf-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: var(--radius-full);
    background: var(--bg-muted); border: 1px solid var(--border);
    font-size: 0.75rem; font-weight: 600; color: var(--text-2);
    animation: badgePop 0.5s var(--ease-bounce) both;
}
.perf-badge i { color: var(--accent); }
@keyframes badgePop { from { opacity:0; transform: scale(0.7); } to { opacity:1; transform: scale(1); } }

/* Stat bar */
.result-stat-bar {
    height: 4px; background: var(--bg-muted); border-radius: 4px;
    margin-top: 14px; overflow: hidden;
}
.stat-bar-fill {
    height: 100%; width: 0; border-radius: 4px;
    background: var(--color, var(--accent));
    transition: width 1.5s var(--ease);
    animation: barFill 1.5s var(--ease) 0.3s both;
}
@keyframes barFill { from { width: 0; } to { width: var(--fill); } }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tag {
    padding: 8px 16px; border-radius: var(--radius-sm);
    background: var(--bg-dark); color: #fff; font-size: 0.75rem;
    font-weight: 600; animation: tagFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--d) * 0.3s);
}
@keyframes tagFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}
.speed-badge {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--green); color: #fff; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; box-shadow: 0 0 30px rgba(34,197,94,0.3);
    animation: speedPulse 2s ease-in-out infinite;
}
@keyframes speedPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(34,197,94,0.3); transform: scale(1); }
    50% { box-shadow: 0 0 60px rgba(34,197,94,0.5); transform: scale(1.05); }
}

/* ===== PROJECTS — ENHANCED ===== */
.projects-section { background: var(--bg); }

/* Floating words in section head */
.projects-floating-words {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; overflow: hidden;
}
.section-head { position: relative; }
.fw {
    position: absolute; font-size: 0.72rem; font-weight: 700;
    font-family: var(--font-mono); color: var(--accent); opacity: 0.15;
    text-transform: uppercase; letter-spacing: 2px;
    animation: fwFloat 8s ease-in-out infinite;
}
.fw-1 { top: 20%; right: 5%; animation-delay: 0s; }
.fw-2 { top: 60%; right: 12%; animation-delay: 1.5s; }
.fw-3 { top: 80%; right: 3%; animation-delay: 3s; }
.fw-4 { top: 40%; right: 20%; animation-delay: 4.5s; }
.fw-5 { top: 10%; right: 18%; animation-delay: 6s; }
@keyframes fwFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); opacity: 0.15; }
    50% { transform: translateY(-16px) rotate(3deg); opacity: 0.3; }
}

.project-showcase {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card);
    margin-bottom: 32px; transition: all var(--dur) var(--ease);
    transform-style: preserve-3d;
}
.project-showcase:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px) perspective(1000px) rotateX(1deg); }
.project-showcase.reverse { grid-template-columns: 0.8fr 1.2fr; }
.project-showcase.reverse .showcase-browser { order: 2; }
.project-showcase.reverse .showcase-info { order: 1; }
.showcase-browser { background: var(--bg-muted); position: relative; min-height: 360px; }
.browser-bar {
    display: flex; align-items: center; gap: 6px; padding: 12px 18px;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28c840; }
.browser-url {
    margin-left: 12px; font-size: 0.72rem; color: var(--text-3);
    font-family: var(--font-mono); background: var(--bg-muted);
    padding: 4px 14px; border-radius: 6px; flex: 1;
}
.browser-body { width: 100%; height: calc(100% - 42px); overflow: hidden; }
.browser-body iframe {
    width: 200%; height: 200%; transform: scale(0.5); transform-origin: top left;
    border: none; pointer-events: none;
}
.showcase-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.stags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.stag {
    padding: 4px 14px; border-radius: var(--radius-full); background: var(--bg-muted);
    font-size: 0.72rem; font-weight: 600; color: var(--text-2); font-family: var(--font-mono);
}
.stag.live { background: linear-gradient(135deg, #fdcb6e, #e17055); color: #fff; }
.showcase-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.showcase-info p { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }

/* Project info card */
.project-info-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 24px; padding: 16px; border-radius: var(--radius);
    background: var(--bg-muted); border: 1px solid var(--border);
}
.pi-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.78rem; transition: all var(--dur);
}
.pi-item i {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--accent-bg); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0;
}
.pi-item div { display: flex; flex-direction: column; }
.pi-item strong { font-weight: 700; color: var(--text); font-size: 0.72rem; }
.pi-item span { color: var(--text-3); font-size: 0.72rem; }
.project-showcase:hover .pi-item i { background: var(--accent); color: #fff; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.mini-project { padding: 28px; text-align: center; }
.mini-project i { font-size: 2rem; color: var(--accent-2); margin-bottom: 14px; }
.mini-project h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.mini-project p { font-size: 0.82rem; color: var(--text-3); margin-bottom: 12px; }

/* ===== ABOUT ===== */
.about-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.about-photo-card {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    min-height: 520px; transform-style: preserve-3d;
}
.about-photo-card img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    min-height: 520px; transition: transform 0.8s var(--ease);
}
.about-photo-card:hover img { transform: scale(1.04); }
.photo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 32px; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, transparent);
    color: #fff;
}
.photo-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    font-size: 0.73rem; font-weight: 600; margin-bottom: 10px;
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.photo-name { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.photo-sub { font-size: 0.85rem; opacity: 0.8; }
.about-content .eyebrow { margin-bottom: 12px; }
.about-content .title-xl { margin-bottom: 24px; max-width: 100%; }
.about-lead { font-size: 1.05rem; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.about-lead strong { color: var(--accent); }
.about-body { font-size: 0.92rem; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.ah-item {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    background: var(--bg-muted); border: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 600;
    transition: all var(--dur) var(--ease);
}
.ah-item:hover { background: var(--accent-bg); border-color: var(--border-hover); transform: translateX(6px); }
.ah-item i { color: var(--accent); font-size: 0.9rem; }

/* ===== PRICING ===== */
.pricing-section { background: var(--bg-muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card { padding: 36px; display: flex; flex-direction: column; }
.pricing-card.featured {
    border: 2px solid var(--accent); transform: scale(1.04);
    box-shadow: 0 8px 40px rgba(80,70,229,0.12);
}
.pricing-card.featured:hover { transform: scale(1.06) translateY(-6px); }
.featured-badge {
    position: absolute; top: -1px; right: 24px;
    padding: 4px 16px; border-radius: 0 0 10px 10px;
    background: var(--gradient); color: #fff;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.pricing-header { margin-bottom: 20px; }
.plan-name { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 8px 0 4px; }
.currency { font-size: 1.5rem; font-weight: 700; color: var(--text-2); }
.amount { font-size: 3rem; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.plan-type { font-size: 0.78rem; color: var(--text-3); }
.plan-desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; flex: 1; }
.plan-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-size: 0.88rem; color: var(--text-2);
    border-bottom: 1px solid var(--bg-muted);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features i { color: var(--green); font-size: 0.75rem; }

/* ===== FAQ — REDESIGNED ===== */
.faq-section { background: var(--bg); }
.faq-grid {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 32px; align-items: start;
}
.faq-sidebar { display: flex; flex-direction: column; gap: 16px; }
.faq-sidebar-card { padding: 28px; }
.faq-sidebar-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 16px;
    animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(80,70,229,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(80,70,229,0); }
}
.faq-sidebar-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.faq-sidebar-card p { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }
.faq-stat-card {
    padding: 24px; text-align: center;
    background: var(--bg-dark); border-color: var(--bg-dark);
    color: #fff;
}
.faq-stat-card:hover { transform: translateY(-4px); background: var(--bg-dark); }
.faq-stat-num { display: block; font-size: 2.5rem; font-weight: 800; color: var(--accent-2); }
.faq-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 500; }

.faq-wrap { padding: 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; background: var(--bg-card);
    transition: all 0.35s var(--ease);
    transform-style: preserve-3d;
}
.faq-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.faq-item.active {
    border-color: var(--accent); background: var(--bg-card);
    box-shadow: 0 4px 24px rgba(80,70,229,0.08);
    transform: translateX(0) scale(1.01);
}
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 20px 24px; background: none; border: none;
    font-family: var(--font); font-size: 0.92rem; font-weight: 600;
    color: var(--text); cursor: pointer; text-align: left; gap: 12px;
}
.faq-q-inner { display: flex; align-items: center; gap: 12px; flex: 1; }
.faq-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--accent-bg); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0;
    transition: all var(--dur);
}
.faq-item.active .faq-icon { background: var(--accent); color: #fff; }
.faq-arrow { color: var(--text-3); font-size: 0.8rem; transition: transform var(--dur), color var(--dur); }
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease), padding 0.5s; padding: 0 24px; }
.faq-item.active .faq-a { max-height: 300px; padding: 0 24px 20px 68px; }
.faq-a p { font-size: 0.85rem; color: var(--text-2); line-height: 1.8; }

/* ===== CONTACT — REDESIGNED 3D ===== */
.contact-section {
    background: var(--bg-muted); position: relative; overflow: hidden;
}
.contact-bg-orb {
    position: absolute; border-radius: 50%; filter: blur(120px);
    pointer-events: none; z-index: 0; animation: orbFloat 15s ease-in-out infinite;
}
.orb-c1 { width: 500px; height: 500px; top: -10%; left: -8%; background: rgba(80,70,229,0.07); }
.orb-c2 { width: 400px; height: 400px; bottom: -15%; right: -5%; background: rgba(192,132,252,0.06); animation-delay: -8s; }

.contact-top {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start; position: relative; z-index: 1;
}
.contact-left-col { padding-top: 8px; }
.contact-left-col .eyebrow { margin-bottom: 16px; }
.contact-left-col .title-xl { margin-bottom: 20px; max-width: 100%; }
.contact-desc { font-size: 1rem; color: var(--text-2); line-height: 1.8; margin-bottom: 32px; }

.contact-info-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.ci-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all var(--dur) var(--ease);
}
.ci-item:hover { border-color: var(--border-hover); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.ci-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
    transition: transform var(--dur) var(--ease-bounce);
}
.ci-item:hover .ci-icon { transform: rotate(10deg) scale(1.1); }
.ci-item div { display: flex; flex-direction: column; }
.ci-item strong { font-size: 0.75rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.ci-item span { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-full);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 600; color: var(--text);
    transition: all var(--dur) var(--ease);
}
.social-pill:hover { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-md); }
.social-pill i { font-size: 1rem; }

.contact-form-card {
    padding: 40px; position: relative; overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s var(--ease);
}
.contact-form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
}
.contact-form-card:hover {
    box-shadow: 0 24px 60px rgba(80,70,229,0.1);
    transform: translateY(-6px) perspective(1000px) rotateX(1deg);
}
.form-card-header { margin-bottom: 28px; }
.contact-form-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
.form-sub { font-size: 0.85rem; color: var(--text-3); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 0.75rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.fg input, .fg textarea {
    width: 100%; padding: 14px 18px; background: var(--bg-muted);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 0.88rem; color: var(--text);
    outline: none; transition: all var(--dur);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-3); }
.fg input:focus, .fg textarea:focus {
    border-color: var(--accent); background: #fff;
    box-shadow: 0 0 0 3px rgba(80,70,229,0.06);
    transform: translateY(-1px);
}
.fg textarea { resize: vertical; min-height: 100px; }
.contact-submit { position: relative; overflow: hidden; }
.contact-submit::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%); transition: transform 0.6s var(--ease);
}
.contact-submit:hover::after { transform: translateX(100%); }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg-card); }
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-left .logo-text { font-size: 1.3rem; font-weight: 800; }
.footer-left p { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }
.footer-links { display: flex; gap: 10px; }
.footer-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-muted); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); font-size: 0.85rem;
    transition: all var(--dur) var(--ease);
}
.footer-links a:hover { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); transform: translateY(-3px) rotate(5deg); }
.footer-right p { font-size: 0.78rem; color: var(--text-3); }

/* ===== SCROLL REVEALS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.7s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: all 0.7s var(--ease); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-3d { opacity: 0; transform: perspective(1000px) rotateX(15deg) translateY(30px); transition: all 0.8s var(--ease); }
.reveal-3d.visible { opacity: 1; transform: perspective(1000px) rotateX(0) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .about-split { grid-template-columns: 1fr; }
    .about-photo-card { min-height: 400px; }
    .about-photo-card img { min-height: 400px; }
    .project-showcase, .project-showcase.reverse { grid-template-columns: 1fr; }
    .project-showcase.reverse .showcase-browser { order: 1; }
    .project-showcase.reverse .showcase-info { order: 2; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
    .title-xl { font-size: 2.2rem; }
    .results-bento { grid-template-columns: 1fr 1fr; }
    .result-perf { grid-column: 1 / 3; }
    .result-full { grid-column: 1 / 2; }
    .result-speed { grid-column: 2 / 3; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-sidebar { flex-direction: row; }
    .contact-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
        flex-direction: column; padding: 80px 24px 24px; gap: 4px;
        border-left: 1px solid var(--border); transition: 0.4s ease; z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .hero { padding: 110px 0 40px; }
    .hero-title { font-size: 2.6rem; letter-spacing: -1.5px; }
    .float-3d { width: 40px; height: 40px; font-size: 1rem; }
    .section { padding: 70px 0; }
    .results-bento { grid-template-columns: 1fr; }
    .result-perf, .result-full, .result-speed { grid-column: 1; }
    .result-speed { flex-direction: column; gap: 16px; text-align: center; }
    .perf-scores { gap: 30px; }
    .mini-grid { grid-template-columns: 1fr; }
    .faq-wrap { padding: 0; }
    .faq-sidebar { flex-direction: column; }
    .about-highlights { grid-template-columns: 1fr; }
    .social-row { gap: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .project-info-card { grid-template-columns: 1fr; }
    .contact-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.1rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .hero-metrics { gap: 24px; flex-wrap: wrap; }
    .metric-value { font-size: 2rem; }
    .title-xl { font-size: 1.7rem; }
    .perf-circle { width: 100px; height: 100px; }
    .perf-num { font-size: 1.5rem; }
    .faq-sidebar { flex-direction: column; }
}

/* ============================================================
   EXTENDED FEATURES & DARK MODE STYLES
   ============================================================ */

/* ── Dark Mode: Navbar ── */
html.dark .navbar.scrolled {
  background: rgba(8,8,16,0.9);
  border-bottom-color: var(--border);
}
html.dark .nav-links {
  background: rgba(17,17,25,0.98);
  border-left-color: var(--border);
}

/* ── Dark Mode: Cards & Sections ── */
html.dark .bento-card { background: var(--bg-card); border-color: var(--border); }
html.dark .results-section { background: var(--bg-muted); }
html.dark .pricing-section { background: var(--bg-muted); }
html.dark .contact-section { background: var(--bg-muted); }
html.dark .footer { background: var(--bg-card); border-top-color: var(--border); }
html.dark .page-loader { background: #080810; }
html.dark .ah-item { background: var(--bg-muted); border-color: var(--border); }
html.dark .project-info-card { background: var(--bg-muted); border-color: var(--border); }
html.dark .ci-item { background: var(--bg-card); border-color: var(--border); }
html.dark .faq-item { background: var(--bg-card); border-color: var(--border); }
html.dark .social-pill { background: var(--bg-card); border-color: var(--border); }
html.dark .perf-bg { stroke: var(--bg-muted); }
html.dark .result-stat-bar { background: var(--bg-muted); }
html.dark .fg input, html.dark .fg textarea { background: var(--bg-muted); border-color: var(--border); color: var(--text); }
html.dark .fg input:focus, html.dark .fg textarea:focus { background: var(--bg-card); }
html.dark .project-showcase { background: var(--bg-card); border-color: var(--border); }
html.dark .showcase-browser { background: var(--bg-muted); }
html.dark .browser-bar { background: var(--bg-card); border-bottom-color: var(--border); }
html.dark .plan-features li { border-bottom-color: var(--bg-muted); }
html.dark .chip { background: var(--bg-card); border-color: var(--border); }
html.dark .float-3d { background: var(--bg-card); border-color: var(--border); }
html.dark .skill-bar { background: rgba(255,255,255,0.06); }
html.dark .stag { background: var(--bg-muted); }
html.dark .perf-badge { background: var(--bg-muted); border-color: var(--border); }
html.dark .cloud-tag { background: rgba(255,255,255,0.08); }

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
  margin-left: 8px;
  position: relative;
  overflow: hidden;
}
.theme-toggle-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--gradient); opacity: 0;
  transition: opacity 0.3s;
}
.theme-toggle-btn:hover::before { opacity: 1; }
.theme-toggle-btn:hover { color: #fff; transform: rotate(20deg) scale(1.1); box-shadow: var(--shadow-md); }
.theme-toggle-btn i { position: relative; z-index: 1; }

/* ── Feature 1: Visitor Counter Badge ── */
.visitor-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  margin-top: 12px;
  transition: all 0.3s;
}
.vc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-vc 2s infinite;
}
@keyframes pulse-vc {
  0%,100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%{ box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* ── Feature 3: Typewriter ── */
.typewriter-word { min-width: 2ch; display: inline-block; }
.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 0.8s infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:0 } }

/* ── Feature 7: Tech Stack / Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-item { padding: 4px 0; }
.skill-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.skill-name {
  font-size: 14px; font-weight: 500; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.skill-name i { font-size: 16px; }
.skill-pct { font-size: 13px; color: var(--text-3); font-weight: 500; }
.skill-bar {
  height: 6px; border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.34,1.1,0.64,1);
}

/* ── Testimonials ── */
.testimonials-wrapper {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px;
}
.testimonials-viewport {
  flex: 1; position: relative; min-height: 200px;
  overflow: hidden;
}
.testimonial-card {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateX(20px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.testimonial-card.active {
  opacity: 1; transform: translateX(0) scale(1);
  pointer-events: all; position: relative;
}
.t-stars { color: #facc15; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.t-quote {
  font-size: 15px; line-height: 1.7;
  color: var(--text-2); font-style: italic;
  margin-bottom: 20px;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: 14px; font-weight: 600; }
.t-author span { font-size: 12px; color: var(--text-3); }
.t-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.t-nav-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.t-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.testimonial-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── AI Chat Widget ── */
html.dark #ai-chat-panel {
  background: var(--bg-card);
  border-color: var(--border);
}
html.dark .acp-msg.bot {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
}
html.dark #acp-input {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

/* ── 3D Spotlight / Glow Effect ── */
.spotlight-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(80,70,229,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}
html.dark .spotlight-glow {
  background: radial-gradient(circle, rgba(124,111,247,0.12) 0%, transparent 70%);
}

/* ── Magnetic Button Effect ── */
.btn-magnetic {
  transition: transform 0.2s var(--ease-bounce) !important;
}

/* ── 3D Hero Mesh Gradient ── */
.hero-mesh {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    radial-gradient(at 40% 20%, rgba(80,70,229,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(124,111,247,0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(236,72,153,0.08) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(34,197,94,0.06) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59,130,246,0.08) 0px, transparent 50%);
  animation: meshShift 12s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes meshShift {
  0% { opacity: 0.4; filter: blur(0px); }
  50% { opacity: 0.7; filter: blur(2px); }
  100% { opacity: 0.5; filter: blur(0px); }
}
html.dark .hero-mesh { opacity: 0.8; }

/* ── Count-up number flash ── */
@keyframes numFlash {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: var(--accent); }
  100% { transform: scale(1); }
}
.metric-value.flashing { animation: numFlash 0.3s ease; }

/* ── Floating 3D icons enhanced ── */
.float-3d {
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease);
}
.float-3d:hover {
  box-shadow: 0 20px 40px rgba(80,70,229,0.3);
}

/* ── Glitch text effect on hero name ── */
@keyframes glitchSkew {
  0% { transform: skewX(0deg); }
  2% { transform: skewX(-5deg); }
  4% { transform: skewX(3deg); }
  6% { transform: skewX(0deg); }
  100% { transform: skewX(0deg); }
}
.nav-logo:hover .logo-icon {
  animation: glitchSkew 3s ease infinite;
}

/* ── Section transition shimmer ── */
.section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bg), var(--accent), var(--accent-bg), transparent);
  opacity: 0.5;
}

/* ── AI Chat dark ── */
html:not(.dark) #ai-chat-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}
html:not(.dark) .acp-msg.bot {
  background: rgba(0,0,0,0.05);
  color: #374151;
}
html:not(.dark) #acp-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #0a0a0a;
}
html:not(.dark) #acp-input::placeholder { color: rgba(0,0,0,0.3); }
html:not(.dark) .acp-sug {
  background: rgba(80,70,229,0.06);
  border-color: rgba(80,70,229,0.15);
  color: #374151;
}
html:not(.dark) .acp-info h4 { color: #0a0a0a; }
html:not(.dark) .acp-info p { color: #6b7280; }
html:not(.dark) .acp-close { color: #6b7280; }
html:not(.dark) .acp-header { border-bottom-color: rgba(0,0,0,0.07); }

/* ── Feature 1: Visitor Counter Badge ── */
.visitor-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted, #9ca3af);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 5px 12px;
  margin-top: 12px;
}
html:not(.dark) .visitor-badge {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #6b7280;
}
.vc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-vc 2s infinite;
}
@keyframes pulse-vc {
  0%,100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%{ box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* ── Feature 3: Typewriter ── */
.typewriter-word { min-width: 2ch; }
.typewriter-cursor {
  display: inline-block;
  color: var(--accent, #a78bfa);
  animation: blink 0.8s infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:0 } }

/* ── Feature 7: Tech Stack / Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-item { padding: 4px 0; }
.skill-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.skill-name {
  font-size: 14px; font-weight: 500; color: inherit;
  display: flex; align-items: center; gap: 8px;
}
.skill-name i { font-size: 16px; }
.skill-pct { font-size: 13px; color: var(--muted, #9ca3af); font-weight: 500; }
.skill-bar {
  height: 6px; border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
html:not(.dark) .skill-bar { background: rgba(0,0,0,0.07); }
.skill-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.34,1.1,0.64,1);
}

/* ── Feature 8: Testimonials ── */
.testimonials-wrapper {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px;
}
.testimonials-viewport {
  flex: 1; position: relative; min-height: 200px;
  overflow: hidden;
}
.testimonial-card {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateX(20px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.testimonial-card.active {
  opacity: 1; transform: translateX(0) scale(1);
  pointer-events: all; position: relative;
}
.t-stars { color: #facc15; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.t-quote {
  font-size: 15px; line-height: 1.7;
  color: var(--muted, #9ca3af); font-style: italic;
  margin-bottom: 20px;
}
html:not(.dark) .t-quote { color: #4b5563; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent,#a78bfa), var(--blue,#60a5fa));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: 14px; font-weight: 600; }
.t-author span { font-size: 12px; color: var(--muted, #9ca3af); }
.t-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: inherit; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
html:not(.dark) .t-nav-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.t-nav-btn:hover { background: rgba(255,255,255,0.1); }
.t-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.testimonial-dot.active {
  background: var(--accent, #a78bfa);
  transform: scale(1.3);
}
html:not(.dark) .testimonial-dot { background: rgba(0,0,0,0.1); }

/* ── Feature 10: AI Chat — (styles injected by features.js) ── */
/* Dark mode override for chat panel */
html:not(.dark) #ai-chat-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
}
html:not(.dark) .acp-msg.bot {
  background: rgba(0,0,0,0.05);
  color: #374151;
}
html:not(.dark) #acp-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #0a0a0a;
}
html:not(.dark) #acp-input::placeholder { color: rgba(0,0,0,0.3); }
html:not(.dark) .acp-sug {
  background: rgba(167,139,250,0.08);
  border-color: rgba(167,139,250,0.2);
  color: #374151;
}
html:not(.dark) .acp-info h4 { color: #0a0a0a; }
html:not(.dark) .acp-info p { color: #6b7280; }
html:not(.dark) .acp-close { color: #6b7280; }
html:not(.dark) .acp-header { border-bottom-color: rgba(0,0,0,0.07); }
