/* ═══════════════════════════════════════════════════════════
   AETHERIS PRIME — Cosmic Intelligence Design System
   Portfolio for Ayush Dhamane
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #0d0d16;
    --surface: #0d0d16;
    --surface-low: #13131c;
    --surface-container: #191923;
    --surface-high: #1f1f2a;
    --surface-highest: #252531;
    --surface-bright: #2b2b38;
    --surface-variant: #252531;
    --on-surface: #f2effb;
    --on-surface-variant: #acaab5;
    --primary: #c799ff;
    --primary-container: #bc87fe;
    --primary-dim: #ba85fb;
    --secondary: #cd92fd;
    --secondary-container: #622a8f;
    --tertiary: #a0fff0;
    --tertiary-dim: #2de7d2;
    --outline: #76747f;
    --outline-variant: #484751;
    --purple-deep: #6C3CE1;
    --purple-mid: #8B5CF6;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--on-surface-variant);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.portfolio-body { background: var(--bg); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb { background: var(--secondary-container); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════════ */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
}

.cursor-dot {
    position: fixed; top:0; left:0;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary);
    pointer-events: none; z-index: 9999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 4px rgba(199,153,255,0.5), 0 0 24px 8px rgba(199,153,255,0.25);
    transition: width .2s var(--ease), height .2s var(--ease), opacity .3s;
    display: none;
}

.cursor-ring {
    position: fixed; top:0; left:0;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid rgba(199,153,255,0.45);
    pointer-events: none; z-index: 9999998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(199,153,255,0.15);
    transition: width .35s var(--ease), height .35s var(--ease), opacity .3s, border-color .3s;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-dot, .cursor-ring { display: block; }
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    position: fixed; top:0; left:0; width: 100%;
    padding: 18px 48px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(13,13,22,0.6);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    transition: all .35s var(--ease);
}

.navbar.scrolled {
    padding: 12px 48px;
    background: rgba(13,13,22,0.92);
    box-shadow: 0 2px 32px rgba(199,153,255,0.06);
}

.navbar .logo {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
}

.navbar .logo img {
    height: 36px; width: auto;
    transition: transform .4s var(--bounce);
}

.navbar .logo:hover img { transform: rotate(12deg) scale(1.08); }

.navbar .logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 20px; letter-spacing: -.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar nav { display: flex; align-items: center; gap: 4px; }

.navbar nav a {
    color: var(--on-surface-variant); font-weight: 500; font-size: 14px;
    padding: 8px 16px; border-radius: 8px; position: relative;
    transition: color .3s var(--ease);
}

.navbar nav a:hover, .navbar nav a.active { color: var(--primary); }

.navbar nav a::after {
    content: ''; position: absolute;
    width: 0; height: 2px; bottom: 2px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary); border-radius: 2px;
    transition: width .3s ease-in-out;
}

.navbar nav a:hover::after, .navbar nav a.active::after { width: 60%; }

.nav-home-btn {
    background: rgba(199,153,255,0.1) !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
}

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; border: none; background: none; z-index: 1001;
}

.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--on-surface); border-radius: 2px;
    transition: .3s var(--ease);
}

.mobile-nav {
    display: none; position: fixed; inset: 0;
    background: rgba(13,13,22,0.98);
    backdrop-filter: blur(20px); z-index: 999;
    flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
    font-size: 18px; font-weight: 600; color: var(--on-surface);
    padding: 12px 32px; border-radius: 8px; transition: .2s var(--ease);
}

.mobile-nav a:hover { background: var(--surface-high); color: var(--primary); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.pf-hero {
    min-height: 100vh;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    padding: 120px 48px 80px;
}

.hero-orb {
    position: absolute; border-radius: 50%;
    pointer-events: none; filter: blur(80px);
}

.hero-orb-1 {
    width: 600px; height: 600px;
    right: -150px; top: -100px;
    background: radial-gradient(circle, rgba(199,153,255,0.15), transparent 70%);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px; height: 400px;
    left: -100px; bottom: -50px;
    background: radial-gradient(circle, rgba(160,255,240,0.08), transparent 70%);
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 300px; height: 300px;
    left: 40%; top: 20%;
    background: radial-gradient(circle, rgba(188,135,254,0.1), transparent 70%);
    animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-grid-overlay {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(199,153,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(199,153,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}

.pf-hero-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    max-width: 1300px; margin: 0 auto; width: 100%;
    position: relative; z-index: 1;
}

.hero-status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 50px;
    background: rgba(37,37,49,0.6);
    backdrop-filter: blur(12px);
    font-size: 13px; font-weight: 500;
    color: var(--tertiary); letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s var(--ease) both 0.2s;
}

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tertiary);
    box-shadow: 0 0 8px var(--tertiary);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-greeting {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--on-surface-variant);
    margin-bottom: 8px;
    min-height: 32px;
    animation: fadeInUp 0.8s var(--ease) both 0.4s;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700; line-height: 1.05;
    letter-spacing: -3px; margin-bottom: 24px;
}

.name-line {
    display: block; color: var(--on-surface);
    animation: fadeInUp 0.8s var(--ease) both 0.6s;
}

.name-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-container), var(--tertiary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInUp 0.8s var(--ease) both 0.8s, gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.hero-role-wrapper {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) both 1s;
}

.hero-role {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600;
    color: var(--primary); letter-spacing: 0.5px;
}

.role-icon { font-size: 18px; }

.hero-role-divider {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--outline); flex-shrink: 0;
}

.hero-tagline {
    font-size: 16px; color: var(--on-surface-variant);
    line-height: 1.8; max-width: 480px; margin-bottom: 40px;
    animation: fadeInUp 0.8s var(--ease) both 1.2s;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.hero-cta-row {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) both 1.4s;
}

.cta-primary {
    position: relative; padding: 14px 32px; border-radius: 12px;
    border: none; cursor: pointer; overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #1a0040; font-weight: 700; font-size: 15px;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 24px rgba(199,153,255,0.3);
    transition: all .3s var(--ease);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(199,153,255,0.45);
}

.cta-glow {
    position: absolute; inset: -2px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    opacity: 0; z-index: -1; filter: blur(12px);
    transition: opacity .3s;
}

.cta-primary:hover .cta-glow { opacity: 0.6; }

.cta-ghost {
    padding: 14px 28px; border-radius: 12px;
    background: transparent; cursor: pointer;
    color: var(--primary); font-weight: 600; font-size: 15px;
    font-family: 'Space Grotesk', sans-serif;
    border: 1.5px solid rgba(199,153,255,0.25);
    backdrop-filter: blur(4px);
    transition: all .3s var(--ease);
}

.cta-ghost:hover {
    background: rgba(199,153,255,0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Visual */
.pf-hero-visual {
    position: relative; display: flex;
    align-items: center; justify-content: center;
    animation: fadeInUp 1s var(--ease) both 0.8s;
}

.avatar-orbit {
    position: absolute; width: 380px; height: 380px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.orbit-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(199,153,255,0.08);
}

.orbit-ring-1 { animation: ringRotate 25s linear infinite; }
.orbit-ring-2 { inset: 30px; animation: ringRotate 20s linear infinite reverse; border-style: dashed; border-color: rgba(199,153,255,0.05); }
.orbit-ring-3 { inset: 60px; animation: ringRotate 30s linear infinite; border-color: rgba(160,255,240,0.05); }

@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Portfolio Orbit Tracks — matching homepage planet orbits */
.pf-orbit-track {
    position: absolute; top: 50%; left: 50%; border-radius: 50%; z-index: 1;
}

.pf-orbit-track-1 {
    width: 290px; height: 290px;
    margin-top: -145px; margin-left: -145px;
    animation: pfOrbitSpin 9s linear infinite;
}

.pf-orbit-track-2 {
    width: 350px; height: 350px;
    margin-top: -175px; margin-left: -175px;
    animation: pfOrbitSpin 15s linear infinite reverse;
}

.pf-orbit-track-2b {
    animation-delay: -7.5s;
}

.pf-orbit-track-3 {
    width: 400px; height: 400px;
    margin-top: -200px; margin-left: -200px;
    animation: pfOrbitSpin 23s linear infinite;
}

@keyframes pfOrbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.pf-orbit-planet {
    position: absolute; border-radius: 50%;
    top: -7px; left: 50%; transform: translateX(-50%);
}

.pf-orbit-track-1 .pf-orbit-planet {
    width: 14px; height: 14px;
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    box-shadow: 0 0 0 3px rgba(199,153,255,0.15), 0 0 16px 4px rgba(199,153,255,0.55);
    animation: pfCounterSpin 9s linear infinite;
}

.pf-orbit-track-2 .pf-orbit-planet {
    width: 10px; height: 10px; top: -5px;
    background: linear-gradient(135deg, var(--tertiary), #7DFFE8);
    box-shadow: 0 0 0 2px rgba(160,255,240,0.2), 0 0 12px 4px rgba(160,255,240,0.55);
    animation: pfCounterSpin 15s linear infinite reverse;
}

.pf-orbit-track-2b .pf-orbit-planet {
    width: 7px; height: 7px; top: -3.5px;
    background: var(--primary-dim);
    box-shadow: 0 0 8px 3px rgba(186,133,251,0.6);
    animation: pfCounterSpin 15s linear infinite;
}

.pf-orbit-track-3 .pf-orbit-planet {
    width: 12px; height: 12px; top: -6px;
    background: linear-gradient(135deg, #4F46E5, var(--primary));
    box-shadow: 0 0 0 2px rgba(79,70,229,0.15), 0 0 14px 4px rgba(79,70,229,0.55);
    animation: pfCounterSpin 23s linear infinite;
}

@keyframes pfCounterSpin { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); } }

.avatar-container {
    position: relative; width: 240px; height: 240px;
    border-radius: 50%; z-index: 2;
}

.avatar-glow {
    position: absolute; inset: -20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(199,153,255,0.2), transparent 70%);
    filter: blur(20px); animation: pulse 4s ease-in-out infinite;
}

.avatar-img {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; position: relative; z-index: 2;
    border: 3px solid rgba(199,153,255,0.2);
}

.avatar-ring-animated {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
                linear-gradient(135deg, var(--primary), var(--tertiary), var(--primary)) border-box;
    animation: ringRotate 8s linear infinite;
    z-index: 1;
}

/* Floating Socials */
.floating-socials {
    position: absolute; right: -16px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 12px;
    z-index: 3;
}

.floating-social-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(37,37,49,0.6);
    backdrop-filter: blur(12px);
    transition: all .3s var(--ease);
    animation: fadeInUp 0.8s var(--ease) both;
}

.floating-social-icon:nth-child(1) { animation-delay: 1.6s; }
.floating-social-icon:nth-child(2) { animation-delay: 1.8s; }
.floating-social-icon:nth-child(3) { animation-delay: 2s; }

.floating-social-icon svg {
    width: 20px; height: 20px; fill: var(--on-surface-variant);
    transition: fill .3s;
}

.floating-social-icon:hover { transform: translateX(-4px) scale(1.1); }
.fs-linkedin:hover { background: rgba(10,102,194,0.3); }
.fs-linkedin:hover svg { fill: #0A66C2; }
.fs-github:hover { background: rgba(255,255,255,0.1); }
.fs-github:hover svg { fill: #fff; }
.fs-instagram:hover { background: rgba(225,48,108,0.3); }
.fs-instagram:hover svg { fill: #E1306C; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: fadeInUp 1s var(--ease) both 2s;
}

.scroll-mouse {
    width: 24px; height: 38px; border-radius: 12px;
    border: 2px solid rgba(199,153,255,0.3);
    position: relative;
}

.scroll-wheel {
    width: 4px; height: 8px; border-radius: 2px;
    background: var(--primary);
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator span {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--outline);
}

/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
.section-container {
    max-width: 1200px; margin: 0 auto; padding: 0 48px;
}

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

.section-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--tertiary); display: block; margin-bottom: 12px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700; letter-spacing: -1.5px;
    color: var(--on-surface); margin-bottom: 8px; line-height: 1.1;
}

.section-subtitle {
    font-size: 16px; color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.section-line {
    width: 60px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    margin-top: 16px;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.scroll-reveal.revealed {
    opacity: 1; transform: translateY(0);
}

/* ═══════════════════════════════════════════
   BENTO STATS
   ═══════════════════════════════════════════ */
.pf-stats {
    padding: 100px 0;
    background: var(--surface-low);
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.bento-card {
    position: relative; overflow: hidden;
    padding: 40px 32px; border-radius: 20px;
    background: var(--surface-high);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    cursor: default;
}

.bento-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.15), transparent, rgba(160,255,240,0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.bento-glow {
    position: absolute; width: 200px; height: 200px;
    border-radius: 50%; filter: blur(60px); opacity: 0;
    background: rgba(199,153,255,0.15);
    transition: opacity .4s;
    pointer-events: none;
    top: var(--mouse-y, 50%); left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%);
}

.bento-card:hover .bento-glow { opacity: 1; }

.bento-icon { font-size: 32px; margin-bottom: 20px; }

.bento-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px; font-weight: 700;
    color: var(--on-surface); line-height: 1;
    margin-bottom: 8px;
}

.bento-label {
    font-size: 16px; font-weight: 600;
    color: var(--primary); margin-bottom: 8px;
}

.bento-detail {
    font-size: 13px; color: var(--on-surface-variant);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   SKILLS MARQUEE
   ═══════════════════════════════════════════ */
.pf-skills-section {
    padding: 60px 0; background: var(--surface);
    overflow: hidden; position: relative;
}

.skills-label {
    text-align: center; font-family: 'Space Grotesk', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 3px;
    color: var(--outline); margin-bottom: 32px;
}

.skills-marquee {
    overflow: hidden; width: 100%;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.skills-track {
    display: flex; gap: 16px; width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skill-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 50px;
    background: var(--surface-high);
    font-size: 14px; font-weight: 500;
    color: var(--on-surface); white-space: nowrap;
    transition: all .3s var(--ease);
    flex-shrink: 0;
}

.skill-pill:hover {
    background: var(--surface-highest);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(199,153,255,0.15);
}

.skill-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════ */
.pf-experience {
    padding: 100px 0; background: var(--surface-low);
}

.timeline {
    position: relative; padding-left: 40px;
}

.timeline-line {
    position: absolute; left: 12px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--tertiary), transparent);
    border-radius: 2px;
}

.timeline-item { position: relative; margin-bottom: 40px; }

.timeline-dot {
    position: absolute; left: -34px; top: 24px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--surface-low), 0 0 16px rgba(199,153,255,0.4);
    z-index: 2;
}

.timeline-dot-pulse {
    position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--primary);
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline-card {
    padding: 32px; border-radius: 20px;
    background: var(--surface-high);
    position: relative; overflow: hidden;
    transition: transform .3s var(--ease);
}

.timeline-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.12), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.timeline-card-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px; flex-wrap: wrap;
}

.timeline-company-logo {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--surface-highest);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}

.timeline-company-logo img {
    width: 80%; height: 80%; object-fit: contain;
}

.timeline-company-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 4px;
}

.timeline-role {
    font-size: 14px; font-weight: 600;
    color: var(--primary);
}

.timeline-date {
    margin-left: auto; font-size: 13px;
    color: var(--on-surface-variant);
    background: var(--surface-highest);
    padding: 6px 14px; border-radius: 20px;
}

.timeline-desc {
    font-size: 15px; line-height: 1.7;
    color: var(--on-surface-variant); margin-bottom: 16px;
}

.timeline-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.timeline-tag {
    padding: 4px 14px; border-radius: 20px;
    background: rgba(199,153,255,0.08);
    color: var(--primary); font-size: 12px; font-weight: 600;
}

/* ═══════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════ */
.pf-education {
    padding: 100px 0; background: var(--surface);
}

.education-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.education-card {
    position: relative; padding: 36px 32px;
    border-radius: 20px; background: var(--surface-high);
    overflow: hidden;
    transition: transform .4s var(--ease);
}

.education-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.12), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.edu-card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
}

.edu-icon { font-size: 36px; margin-bottom: 16px; }

.education-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 8px;
}

.edu-institution {
    font-size: 14px; color: var(--on-surface-variant); margin-bottom: 8px;
}

.edu-year {
    font-size: 13px; color: var(--outline);
    background: var(--surface-highest);
    padding: 4px 14px; border-radius: 20px;
    display: inline-block; margin-bottom: 20px;
}

.edu-score {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 12px;
}

.edu-score-label {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--on-surface-variant);
}

.edu-score-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px; font-weight: 700; color: var(--primary);
}

.edu-status {
    font-size: 13px; color: var(--tertiary); font-weight: 600;
}

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.pf-projects {
    padding: 100px 0; background: var(--surface-low);
}

.projects-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}

.project-card {
    position: relative; padding: 44px 36px;
    border-radius: 24px; overflow: hidden;
    background: var(--surface-high);
    transition: transform .5s var(--ease), box-shadow .4s var(--ease);
    cursor: default;
}

.project-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.2), transparent 50%, rgba(160,255,240,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.project-card-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(199,153,255,0.08), transparent 50%);
    pointer-events: none; transition: opacity .3s;
    opacity: 0;
}

.project-card:hover .project-card-bg { opacity: 1; }

.project-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px; font-weight: 700; line-height: 1;
    color: rgba(199,153,255,0.06);
    position: absolute; right: 24px; top: 16px;
}

.project-tag {
    display: inline-block; padding: 5px 16px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    background: rgba(199,153,255,0.1);
    color: var(--primary); margin-bottom: 20px;
}

.tag-ai {
    background: rgba(160,255,240,0.08);
    color: var(--tertiary);
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 12px; position: relative;
}

.project-card p {
    font-size: 15px; line-height: 1.7;
    color: var(--on-surface-variant); margin-bottom: 28px;
    max-width: 340px; position: relative;
}

.project-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #1a0040; font-weight: 700; font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all .3s var(--ease); position: relative;
}

.project-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(199,153,255,0.3);
}

/* ═══════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════ */
.pf-certifications {
    padding: 100px 0; background: var(--surface);
}

.cert-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.cert-card {
    position: relative;
    border-radius: 20px; overflow: hidden;
    background: var(--surface-high);
    transition: transform .4s var(--ease);
    cursor: pointer;
}

.cert-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.cert-img-wrapper {
    position: relative; overflow: hidden; height: 180px;
    background: var(--surface-highest);
}

.cert-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--ease);
}

.cert-card:hover .cert-img { transform: scale(1.08); }

.cert-overlay {
    position: absolute; inset: 0;
    background: rgba(13,13,22,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}

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

.cert-view-icon { font-size: 32px; }

.cert-info { padding: 24px; }

.cert-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 6px;
}

.cert-issuer {
    font-size: 13px; color: var(--on-surface-variant);
    display: block; margin-bottom: 16px;
}

.cert-btn {
    background: none; border: none; cursor: pointer;
    color: var(--primary); font-weight: 600; font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    transition: color .3s;
}

.cert-btn:hover { color: var(--tertiary); }

/* ═══════════════════════════════════════════
   CONNECT
   ═══════════════════════════════════════════ */
.pf-connect {
    padding: 100px 0; background: var(--surface-low);
}

.connect-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-bottom: 48px;
}

.connect-card {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 28px; border-radius: 16px;
    background: var(--surface-high);
    transition: all .4s var(--ease);
    position: relative; overflow: hidden;
}

.connect-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none; transition: background .3s;
}

.connect-icon-wrap {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-highest); flex-shrink: 0;
    transition: all .3s;
}

.connect-icon-wrap svg {
    width: 24px; height: 24px; fill: var(--on-surface-variant);
    transition: fill .3s;
}

.connect-platform {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; font-weight: 700;
    color: var(--on-surface); display: block;
}

.connect-handle {
    font-size: 13px; color: var(--on-surface-variant);
}

.connect-arrow {
    margin-left: auto; font-size: 20px;
    color: var(--outline); transition: all .3s;
}

.connect-linkedin:hover { box-shadow: 0 8px 32px rgba(10,102,194,0.2); }
.connect-linkedin:hover .connect-icon-wrap { background: rgba(10,102,194,0.2); }
.connect-linkedin:hover svg { fill: #0A66C2; }
.connect-linkedin:hover .connect-arrow { color: #0A66C2; transform: translateX(4px); }

.connect-github:hover { box-shadow: 0 8px 32px rgba(255,255,255,0.08); }
.connect-github:hover .connect-icon-wrap { background: rgba(255,255,255,0.1); }
.connect-github:hover svg { fill: #fff; }
.connect-github:hover .connect-arrow { color: #fff; transform: translateX(4px); }

.connect-instagram:hover { box-shadow: 0 8px 32px rgba(225,48,108,0.2); }
.connect-instagram:hover .connect-icon-wrap { background: rgba(225,48,108,0.2); }
.connect-instagram:hover svg { fill: #E1306C; }
.connect-instagram:hover .connect-arrow { color: #E1306C; transform: translateX(4px); }

.connect-email {
    text-align: center; padding: 32px;
    border-radius: 16px; background: var(--surface-high);
}

.email-label {
    display: block; font-size: 14px;
    color: var(--on-surface-variant); margin-bottom: 12px;
}

.email-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--primary);
    transition: color .3s;
}

.email-link:hover { color: var(--tertiary); }

/* ═══════════════════════════════════════════
   FOOTER — Clean Centered
   ═══════════════════════════════════════════ */
.pf-footer {
    padding: 40px 24px 32px;
    background: var(--surface);
    position: relative;
}

.footer-inner {
    text-align: center;
}

.footer-divider {
    width: 48px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    margin: 0 auto 24px;
    opacity: 0.4;
}

.footer-copy {
    font-size: 14px; color: var(--on-surface-variant);
    margin-bottom: 6px;
}

.footer-copy strong {
    color: var(--primary);
    font-weight: 700;
}

.footer-year {
    font-size: 12px; color: var(--outline);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════ */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px; border-radius: 14px; z-index: 999;
    background: rgba(37,37,49,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(199,153,255,0.15);
    color: var(--primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px);
    transition: all .3s var(--ease);
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(199,153,255,0.15);
}

.back-to-top.visible {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(199,153,255,0.2);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(199,153,255,0.25);
}

/* ═══════════════════════════════════════════
   PROJECT TECH ROW
   ═══════════════════════════════════════════ */
.project-tech-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 24px; position: relative;
}

.project-tech {
    padding: 4px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(199,153,255,0.06);
    color: var(--on-surface-variant);
    border: 1px solid rgba(199,153,255,0.08);
}

/* ═══════════════════════════════════════════
   CERTIFICATE MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}

.modal-overlay.active { opacity: 1; }

.modal-content {
    max-width: 90vw; max-height: 90vh; position: relative;
}

.full-cert-img {
    max-width: 100%; max-height: 85vh;
    border-radius: 12px;
}

.close-modal-btn {
    position: absolute; top: -12px; right: -12px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: #1a0040;
    border: none; cursor: pointer;
    font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s;
}

.close-modal-btn:hover { transform: scale(1.1); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pf-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .pf-hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-tagline { text-align: center; }
    .hero-cta-row { justify-content: center; }
    .pf-hero-visual { margin-top: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .floating-socials { position: static; flex-direction: row; justify-content: center; margin-top: 32px; transform: none; gap: 16px; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-wide { grid-column: span 2; }
    .connect-grid { grid-template-columns: 1fr 1fr; }

    /* Scale orbit tracks for tablet */
    .pf-orbit-track-1 { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
    .pf-orbit-track-2 { width: 320px; height: 320px; margin-top: -160px; margin-left: -160px; }
    .pf-orbit-track-3 { width: 370px; height: 370px; margin-top: -185px; margin-left: -185px; }
    .avatar-orbit { width: 350px; height: 350px; }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 24px; }
    .navbar.scrolled { padding: 10px 24px; }
    .navbar nav { display: none; }
    .hamburger { display: flex; }
    .section-container { padding: 0 24px; }
    .pf-hero { padding: 120px 24px 60px; overflow: hidden; }
    .hero-name { font-size: clamp(32px, 10vw, 48px); letter-spacing: -2px; }
    .hero-subtitle { font-size: 14px; }
    .hero-desc { font-size: 15px; max-width: 100%; }

    /* Single column grids */
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
    .education-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .connect-grid { grid-template-columns: 1fr; }

    /* Hero visual — explicit centering for mobile */
    .pf-hero-visual {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        min-height: 320px;
    }

    /* Avatar wrapper — center it so orbit aligns */
    .avatar-container {
        width: 180px; height: 180px;
        position: relative;
        z-index: 2;
    }

    /* Orbit system — center relative to the hero-visual */
    .avatar-orbit {
        width: 300px; height: 300px;
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Orbit tracks scaled for mobile — centered via margin from avatar-orbit center */
    .pf-orbit-track-1 { width: 230px; height: 230px; margin-top: -115px; margin-left: -115px; }
    .pf-orbit-track-2 { width: 270px; height: 270px; margin-top: -135px; margin-left: -135px; }
    .pf-orbit-track-3 { width: 310px; height: 310px; margin-top: -155px; margin-left: -155px; }

    /* Floating socials horizontal below avatar */
    .floating-socials { position: static; flex-direction: row; justify-content: center; margin-top: 28px; transform: none; gap: 14px; }
    .floating-social-icon { width: 38px; height: 38px; border-radius: 10px; }

    .scroll-indicator { display: none; }
    .timeline-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .timeline-date { margin-left: 0; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

    /* Project cards full width */
    .project-card { max-width: 100%; }
    .project-card p { max-width: 100%; }
    .project-tech-row { flex-wrap: wrap; }

    /* Section titles */
    .section-label { font-size: 36px; }
    .section-tag { font-size: 12px; }

    /* Timeline spacing */
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-item::before { left: 14px; width: 12px; height: 12px; }

    /* Connect section email */
    .connect-email-box { padding: 24px 20px; }
    .connect-email { font-size: 16px; word-break: break-all; }

    /* Cert modal */
    .cert-modal-content { width: 95%; max-height: 85vh; }
    .cert-modal-content img { max-height: 60vh; }
}

@media (max-width: 480px) {
    .pf-hero { padding: 90px 16px 50px; }
    .hero-name { font-size: 32px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 13px; gap: 6px; }
    .section-container { padding: 0 16px; }
    .hero-cta-row { flex-direction: column; width: 100%; gap: 12px; }
    .cta-primary, .cta-ghost { width: 100%; text-align: center; justify-content: center; }
    .pf-stats, .pf-experience, .pf-education, .pf-projects, .pf-certifications, .pf-connect { padding: 60px 0; }

    /* Avatar — smaller for small phones */
    .pf-hero-visual { min-height: 280px; }
    .avatar-container { width: 150px; height: 150px; }
    .avatar-orbit { width: 260px; height: 260px; }
    .pf-orbit-track-1 { width: 190px; height: 190px; margin-top: -95px; margin-left: -95px; }
    .pf-orbit-track-2 { width: 230px; height: 230px; margin-top: -115px; margin-left: -115px; }
    .pf-orbit-track-3 { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
    .pf-orbit-track-1 .pf-orbit-planet { width: 10px; height: 10px; }
    .pf-orbit-track-2 .pf-orbit-planet { width: 8px; height: 8px; top: -4px; }
    .pf-orbit-track-3 .pf-orbit-planet { width: 9px; height: 9px; top: -4.5px; }
    .pf-orbit-track-2b .pf-orbit-planet { width: 6px; height: 6px; top: -3px; }

    /* Section headings */
    .section-label { font-size: 28px; }
    .bento-value { font-size: 36px; }

    /* Text sizing */
    .hero-desc { font-size: 14px; }
    .status-badge { font-size: 12px; padding: 8px 16px; }

    /* Floating socials */
    .floating-socials { gap: 10px; margin-top: 24px; }
    .floating-social-icon { width: 34px; height: 34px; }

    /* Timeline */
    .timeline-card { padding: 20px; }
    .timeline-card h3 { font-size: 18px; }

    /* Project card */
    .project-card { padding: 24px; }
    .project-card h3 { font-size: 20px; }
    .project-number { font-size: 60px; }

    /* Connect */
    .connect-card { padding: 16px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   INDEX PAGE — Light Theme Overrides
   (Only applies when .portfolio-body is NOT present)
   ═══════════════════════════════════════════════════════════ */
body:not(.portfolio-body) {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    background: #FFFFFF;
    color: #374151;
}

body:not(.portfolio-body) .navbar {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(108,60,225,0.06);
}

body:not(.portfolio-body) .navbar.scrolled {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 32px rgba(108,60,225,0.06);
}

body:not(.portfolio-body) .navbar nav a { color: #6B7280; }
body:not(.portfolio-body) .navbar nav a:hover { color: #6C3CE1; }
body:not(.portfolio-body) .navbar nav a::after { background: #6C3CE1; }

body:not(.portfolio-body) .hamburger span { background: #374151; }

body:not(.portfolio-body) .mobile-nav {
    background: rgba(255,255,255,0.98);
}

body:not(.portfolio-body) .mobile-nav a { color: #374151; }
body:not(.portfolio-body) .mobile-nav a:hover { background: #EDE9FE; color: #6C3CE1; }

body:not(.portfolio-body) .cursor-dot {
    background: #6C3CE1;
    box-shadow: 0 0 10px 4px rgba(108,60,225,0.5), 0 0 24px 8px rgba(108,60,225,0.25);
}

body:not(.portfolio-body) .cursor-ring {
    border-color: rgba(108,60,225,0.45);
    box-shadow: 0 0 12px rgba(108,60,225,0.15);
}

/* INDEX HERO */
.hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; padding: 0 48px; gap: 40px;
    position: relative; overflow: hidden; background: #fff;
}

.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(108,60,225,0.03) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(108,60,225,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
    z-index: 0;
}

.hero-accent {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    right: -150px; top: -100px;
    background: radial-gradient(circle, #EDE9FE 0%, transparent 70%);
    opacity: .6; z-index: 0; pointer-events: none;
}

.hero-accent-2 {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    left: -100px; bottom: -50px;
    background: radial-gradient(circle, rgba(79,70,229,0.06) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}

.hero-left { position: relative; z-index: 1; padding: 120px 0 80px; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: #6C3CE1; margin-bottom: 24px;
}

.hero-tag-dot {
    width: 6px; height: 6px; background: #6C3CE1; border-radius: 50%;
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-left h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 5.5vw, 72px); font-weight: 700;
    line-height: 1.05; letter-spacing: -3px; color: #111827; margin-bottom: 24px;
}

.hero-left h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #6C3CE1, #8B5CF6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-left .hero-sub {
    font-size: 17px; color: #6B7280; line-height: 1.7;
    max-width: 460px; margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 10px; font-weight: 600; font-size: 14px;
    transition: all .25s var(--ease); cursor: pointer; border: none;
    position: relative; overflow: hidden;
}

.btn-primary {
    background: #6C3CE1; color: #fff;
    box-shadow: 0 4px 16px rgba(108,60,225,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(108,60,225,0.35); background: #7C3AED;
}

.btn-ghost {
    background: transparent; color: #6C3CE1;
    border: 1.5px solid #C4B5FD;
}

.btn-ghost:hover {
    background: #EDE9FE; border-color: #6C3CE1; transform: translateY(-2px);
}

/* Hero Right Visual */
.hero-right {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; padding: 100px 0;
}

.hero-visual {
    position: relative; width: 100%; max-width: 420px; aspect-ratio: 1;
}

.hero-visual-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid #EDE9FE; animation: ringRotate 25s linear infinite;
}

.hero-visual-ring:nth-child(2) {
    inset: 30px; animation-direction: reverse; animation-duration: 20s;
    border-color: rgba(108,60,225,0.06);
}

.hero-visual-ring:nth-child(3) {
    inset: 60px; animation-duration: 30s; border-style: dashed;
    border-color: rgba(108,60,225,0.05);
}

.hero-visual-center {
    position: absolute; inset: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #EDE9FE, #fff);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 60px rgba(108,60,225,0.08);
    border: 1px solid rgba(108,60,225,0.08); z-index: 2;
}

.hero-visual-center img { height: 60%; width: auto; object-fit: contain; }

/* Orbit Planets */
.orbit-track {
    position: absolute; top: 50%; left: 50%; border-radius: 50%; z-index: 1;
}

.orbit-track-1 {
    width: 260px; height: 260px;
    margin-top: -130px; margin-left: -130px;
    animation: orbitSpin 9s linear infinite;
}

.orbit-track-2 {
    width: 330px; height: 330px;
    margin-top: -165px; margin-left: -165px;
    animation: orbitSpin 15s linear infinite reverse;
}

.orbit-track-3 {
    width: 400px; height: 400px;
    margin-top: -200px; margin-left: -200px;
    animation: orbitSpin 23s linear infinite;
}

@keyframes orbitSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.orbit-planet {
    position: absolute; border-radius: 50%;
    top: -7px; left: 50%; transform: translateX(-50%);
}

.orbit-track-1 .orbit-planet {
    width: 14px; height: 14px;
    background: linear-gradient(135deg, #6C3CE1, #A78BFA);
    box-shadow: 0 0 0 3px rgba(108,60,225,0.15), 0 0 16px 4px rgba(108,60,225,0.55);
    animation: counterSpin 9s linear infinite;
}

.orbit-track-2 .orbit-planet {
    width: 10px; height: 10px;
    background: linear-gradient(135deg, #A78BFA, #C4B5FD);
    box-shadow: 0 0 0 2px rgba(167,139,250,0.2), 0 0 12px 4px rgba(167,139,250,0.55);
    animation: counterSpin 15s linear infinite reverse; top: -5px;
}

.orbit-track-3 .orbit-planet {
    width: 12px; height: 12px;
    background: linear-gradient(135deg, #4F46E5, #6C3CE1);
    box-shadow: 0 0 0 2px rgba(79,70,229,0.15), 0 0 14px 4px rgba(79,70,229,0.55);
    animation: counterSpin 23s linear infinite; top: -6px;
}

@keyframes counterSpin { from{transform:translateX(-50%) rotate(0deg)} to{transform:translateX(-50%) rotate(-360deg)} }

.orbit-track-2-b {
    width: 330px; height: 330px;
    margin-top: -165px; margin-left: -165px;
    animation: orbitSpin 15s linear infinite reverse;
    animation-delay: -7.5s;
}

.orbit-track-2-b .orbit-planet {
    width: 7px; height: 7px; top: -3.5px;
    background: #C4B5FD;
    box-shadow: 0 0 8px 3px rgba(196,181,253,0.6);
    animation: counterSpin 15s linear infinite;
}

/* INDEX SECTIONS */
.section-tools {
    padding: 100px 48px; position: relative; background: #FAFBFF;
}

.section-tools::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #EDE9FE, transparent);
}

.section-label {
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #6C3CE1; margin-bottom: 12px;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px); font-weight: 700;
    letter-spacing: -1.5px; color: #111827; margin-bottom: 16px; line-height: 1.1;
}

.section-desc {
    font-size: 16px; color: #9CA3AF; max-width: 500px;
    margin-bottom: 48px; line-height: 1.7;
}

.tools-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; }

.tool-tile {
    padding: 40px 36px; border-radius: 20px; position: relative;
    overflow: hidden; color: #fff;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease); cursor: default;
}

.tool-tile:hover { transform: translateY(-6px); }

.tool-tile.tile-resume {
    background: linear-gradient(145deg, #6C3CE1, #7C3AED);
    box-shadow: 0 16px 48px rgba(108,60,225,0.2);
}

.tool-tile.tile-resume:hover { box-shadow: 0 24px 56px rgba(108,60,225,0.3); }

.tool-tile.tile-ats {
    background: linear-gradient(145deg, #4F46E5, #6C3CE1);
    box-shadow: 0 16px 48px rgba(79,70,229,0.2);
}

.tool-tile.tile-ats:hover { box-shadow: 0 24px 56px rgba(79,70,229,0.3); }

.tool-tile::after {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,0.07); pointer-events: none;
    transition: transform .5s var(--ease);
}

.tool-tile:hover::after { transform: scale(1.3); }

.tool-tile .tile-num {
    font-size: 72px; font-weight: 700; line-height: 1;
    color: rgba(255,255,255,0.08); position: absolute;
    right: 24px; top: 20px; font-family: 'Space Grotesk', sans-serif;
}

.tool-tile h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px; font-weight: 700; margin-bottom: 10px;
    position: relative; letter-spacing: -.3px;
}

.tool-tile p {
    font-size: 14px; opacity: .8; line-height: 1.7;
    margin-bottom: 28px; max-width: 280px; position: relative;
}

.tile-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; font-weight: 600; font-size: 13px;
    padding: 10px 22px; border-radius: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all .25s var(--ease); position: relative;
}

.tile-link:hover { background: rgba(255,255,255,0.25); transform: translateX(4px); }

/* About Strip */
.about-strip {
    padding: 100px 48px; display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto;
}

.about-strip-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px); font-weight: 700;
    letter-spacing: -1.5px; color: #111827; margin-bottom: 16px; line-height: 1.1;
}

.about-strip-text p {
    font-size: 16px; color: #6B7280; line-height: 1.7; margin-bottom: 32px;
}

.about-strip-visual { position: relative; }

.about-visual-bg {
    position: absolute; inset: 20px; border-radius: 20px;
    background: linear-gradient(135deg, #EDE9FE, #F5F3FF);
    z-index: 0;
}

.about-visual-card {
    position: relative; z-index: 1; padding: 36px 32px; border-radius: 20px;
    background: #fff; box-shadow: 0 20px 60px rgba(108,60,225,0.08);
    border: 1px solid rgba(108,60,225,0.06);
}

.av-icon { font-size: 32px; margin-bottom: 12px; }

.about-visual-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 8px;
}

.about-visual-card p { font-size: 14px; color: #6B7280; line-height: 1.7; }

/* Contact */
.contact-section {
    padding: 100px 48px; text-align: center;
}

.contact-card {
    display: inline-block; padding: 32px 48px;
    border-radius: 16px; background: #FAFBFF;
    border: 1px solid rgba(108,60,225,0.06);
    margin-top: 24px;
}

.contact-card p { color: #374151; font-size: 16px; }

/* Index Footer */
.footer {
    text-align: center; padding: 32px 48px;
    font-size: 14px; color: #6B7280;
    border-top: 1px solid rgba(108,60,225,0.06);
}

.footer strong { color: #6C3CE1; }
.footer a { color: #6C3CE1; font-weight: 600; }

/* Scroll Animate */
.scroll-animate {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.scroll-animate.show { opacity: 1; transform: translateY(0); }

/* Privacy Modal */
body:not(.portfolio-body) .modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(16px);
    z-index: 10000; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .4s;
}

body:not(.portfolio-body) .modal-overlay.active { display: flex; opacity: 1; }

.privacy-stage {
    position: relative; width: 420px; max-width: 90vw;
    min-height: 320px; display: flex;
    align-items: center; justify-content: center;
}

.graphic-blob {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(108,60,225,0.15), transparent 70%);
    filter: blur(40px); pointer-events: none;
}

.card-stack-wrapper {
    position: relative; width: 100%; min-height: 280px;
}

.privacy-card {
    position: absolute; width: 100%;
    padding: 36px 32px; border-radius: 20px;
    background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    transition: all .4s var(--ease); opacity: 0; pointer-events: none;
}

.privacy-card.front { opacity: 1; transform: scale(1) translateY(0); z-index: 3; pointer-events: auto; }
.privacy-card.middle { opacity: 0.6; transform: scale(0.94) translateY(12px); z-index: 2; }
.privacy-card.back { opacity: 0.3; transform: scale(0.88) translateY(24px); z-index: 1; }
.privacy-card.hidden { opacity: 0; transform: scale(0.8) translateY(36px); z-index: 0; }

.card-icon-box { font-size: 36px; margin-bottom: 12px; }

.privacy-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 8px;
}

.card-date { font-size: 12px; color: #9CA3AF; margin-bottom: 12px; }

.privacy-card p { font-size: 14px; color: #6B7280; line-height: 1.7; }

.card-list { list-style: none; padding: 0; }

.card-list li {
    font-size: 14px; color: #6B7280; line-height: 1.7;
    padding: 4px 0;
}

.contact-link {
    color: #6C3CE1; font-weight: 600; font-size: 14px;
    display: inline-block; margin-top: 8px;
}

.progress-bar {
    height: 3px; background: #E5E7EB; border-radius: 3px;
    margin-top: 20px; overflow: hidden;
}

.progress-bar .fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #6C3CE1, #A78BFA);
}

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid rgba(108,60,225,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all .2s;
}

.nav-arrow:hover { background: #EDE9FE; }
.nav-arrow svg { width: 20px; height: 20px; color: #6C3CE1; }
.nav-arrow.prev { left: -56px; }
.nav-arrow.next { right: -56px; }

body:not(.portfolio-body) .close-modal-btn {
    position: absolute; top: -16px; right: -16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: #6C3CE1; color: #fff; border: none;
    cursor: pointer; font-size: 18px; z-index: 11;
    display: flex; align-items: center; justify-content: center;
}

/* INDEX RESPONSIVE */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding: 0 24px; }
    .hero-left { padding: 120px 0 40px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-right { padding: 20px 0 60px; }
    .hero-visual { max-width: 280px; }
    .tools-row { grid-template-columns: 1fr; }
    .about-strip { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
    .contact-section { padding: 60px 24px; }
    .privacy-stage { width: 90vw; }
    .nav-arrow.prev { left: -8px; }
    .nav-arrow.next { right: -8px; }
}

/* ═══════════════════════════════════════════════════════════
   COMMERCIAL WORK — Dedicated Page & Inline Sections
   ═══════════════════════════════════════════════════════════ */

/* ── CW Hero ─────────────────────────────────────────────── */
.cw-hero {
    min-height: 100vh;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 140px 48px 100px;
    text-align: center;
}

.cw-hero-inner {
    max-width: 800px; margin: 0 auto;
    position: relative; z-index: 1;
}

.cw-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 50px;
    background: rgba(37,37,49,0.6);
    backdrop-filter: blur(12px);
    font-size: 13px; font-weight: 500;
    color: var(--tertiary); letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.cw-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 700; line-height: 1.1;
    letter-spacing: -2px; color: var(--on-surface);
    margin-bottom: 24px;
}

.cw-hero-desc {
    font-size: 17px; color: var(--on-surface-variant);
    line-height: 1.8; max-width: 640px; margin: 0 auto 40px;
}

.cw-hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
}

.cw-stat { text-align: center; }

.cw-stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px; font-weight: 700;
    color: var(--primary);
}

.cw-stat-label {
    font-size: 13px; color: var(--on-surface-variant);
    letter-spacing: 0.5px;
}

.cw-stat-divider {
    width: 1px; height: 40px;
    background: var(--outline-variant);
}

.cw-hero-actions {
    display: flex; gap: 16px; align-items: center; justify-content: center;
    flex-wrap: wrap;
}

/* ── Case Study Cards ────────────────────────────────────── */
.cw-showcase {
    padding: 100px 0; background: var(--surface-low);
}

.cw-case-study {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    margin-bottom: 100px; position: relative;
    transition: transform .5s var(--ease);
}

.cw-case-study:last-child { margin-bottom: 0; }

.cw-case-reverse { direction: rtl; }
.cw-case-reverse > * { direction: ltr; }

.cw-case-visual { position: relative; }

.cw-case-browser {
    border-radius: 16px; overflow: hidden;
    background: var(--surface-highest);
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.cw-case-browser:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.cw-browser-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    background: var(--surface-bright);
    border-bottom: 1px solid var(--outline-variant);
}

.cw-browser-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--surface-highest);
}

.cw-browser-dot:nth-child(1) { background: #FF605C; }
.cw-browser-dot:nth-child(2) { background: #FFBD44; }
.cw-browser-dot:nth-child(3) { background: #00CA4E; }

.cw-browser-url {
    margin-left: 12px; font-size: 12px;
    color: var(--on-surface-variant);
    background: var(--surface-container);
    padding: 4px 16px; border-radius: 6px;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.3px; flex: 1;
}

.cw-browser-content {
    position: relative; overflow: hidden;
    height: 280px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
}

.cw-case-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform .6s var(--ease);
}

.cw-case-browser:hover .cw-case-img { transform: scale(1.03); }

.cw-case-glow {
    position: absolute; width: 300px; height: 300px;
    border-radius: 50%; filter: blur(80px);
    pointer-events: none; z-index: -1;
}

.cw-glow-warm {
    background: rgba(255,180,80,0.12);
    bottom: -50px; right: -50px;
}

.cw-glow-emerald {
    background: rgba(45,231,210,0.1);
    bottom: -50px; left: -50px;
}

.cw-case-info { position: relative; }

.cw-case-tag {
    display: inline-block; padding: 6px 18px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    background: rgba(255,180,80,0.12);
    color: #FFB450; margin-bottom: 16px;
}

.cw-tag-corporate {
    background: rgba(45,231,210,0.1);
    color: var(--tertiary);
}

.cw-case-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cw-case-subtitle {
    font-size: 14px; color: var(--primary);
    font-weight: 500; margin-bottom: 16px;
}

.cw-case-desc {
    font-size: 15px; line-height: 1.8;
    color: var(--on-surface-variant); margin-bottom: 24px;
}

.cw-case-results {
    display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}

.cw-result {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 10px;
    background: var(--surface-high);
    font-size: 13px; font-weight: 500;
    color: var(--on-surface);
}

.cw-result-icon { font-size: 16px; }

.cw-case-tech {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}

.cw-tech-pill {
    padding: 4px 14px; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
    background: rgba(199,153,255,0.06);
    color: var(--on-surface-variant);
    border: 1px solid rgba(199,153,255,0.1);
}

.cw-case-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 28px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #1a0040; font-weight: 700; font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all .3s var(--ease);
}

.cw-case-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(199,153,255,0.35);
}

/* ── Process Cards ───────────────────────────────────────── */
.cw-process {
    padding: 100px 0; background: var(--surface);
}

.cw-process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cw-process-card {
    position: relative; padding: 36px 28px;
    border-radius: 20px; background: var(--surface-high);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.cw-process-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.12), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.cw-process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(199,153,255,0.12);
}

.cw-process-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px; font-weight: 700; line-height: 1;
    color: rgba(199,153,255,0.06);
    position: absolute; right: 16px; top: 12px;
}

.cw-process-icon { font-size: 32px; margin-bottom: 20px; }

.cw-process-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 12px;
}

.cw-process-card p {
    font-size: 14px; line-height: 1.7;
    color: var(--on-surface-variant);
}

/* ── Features Grid ───────────────────────────────────────── */
.cw-features {
    padding: 100px 0; background: var(--surface-low);
}

.cw-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cw-feature-card {
    padding: 32px 28px; border-radius: 16px;
    background: var(--surface-high);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    position: relative; overflow: hidden;
}

.cw-feature-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.cw-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(199,153,255,0.1);
}

.cw-feature-icon { font-size: 28px; margin-bottom: 16px; }

.cw-feature-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 8px;
}

.cw-feature-card p {
    font-size: 14px; color: var(--on-surface-variant);
    line-height: 1.7;
}

/* ── Hire CTA Section ────────────────────────────────────── */
.cw-hire-cta {
    padding: 100px 0; background: var(--surface);
}

.cw-hire-card {
    position: relative; overflow: hidden;
    padding: 64px 48px; border-radius: 28px;
    background: linear-gradient(135deg, var(--surface-high), var(--surface-highest));
    text-align: center;
}

.cw-hire-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 28px; padding: 1.5px;
    background: linear-gradient(135deg, var(--primary), var(--tertiary), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.cw-hire-glow {
    position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(199,153,255,0.08), transparent 70%);
    top: -200px; left: 50%; transform: translateX(-50%);
    filter: blur(60px); pointer-events: none;
}

.cw-hire-content { position: relative; z-index: 1; }

.cw-hire-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700; color: var(--on-surface);
    margin-bottom: 16px; letter-spacing: -1px;
}

.cw-hire-content > p {
    font-size: 16px; color: var(--on-surface-variant);
    line-height: 1.7; max-width: 520px; margin: 0 auto 36px;
}

.cw-hire-actions {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 32px;
}

.cw-hire-btn {
    font-size: 16px !important;
    padding: 16px 36px !important;
}

.cw-hire-assurance {
    display: flex; gap: 24px; justify-content: center;
    flex-wrap: wrap;
}

.cw-hire-assurance span {
    font-size: 13px; font-weight: 600;
    color: var(--tertiary);
    letter-spacing: 0.3px;
}

/* ── Inline Client Work Section (for about.html & index.html) ── */
.cw-inline {
    padding: 100px 0; background: var(--surface-low);
}

.cw-inline-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 32px; margin-bottom: 40px;
}

.cw-inline-card {
    position: relative; border-radius: 20px;
    overflow: hidden; background: var(--surface-high);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    cursor: pointer;
}

.cw-inline-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(135deg, rgba(199,153,255,0.15), transparent, rgba(160,255,240,0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.cw-inline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(199,153,255,0.15);
}

.cw-inline-img-wrap {
    position: relative; overflow: hidden; height: 220px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
}

.cw-inline-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .5s var(--ease);
}

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

.cw-inline-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13,13,22,0.8) 100%);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 20px; opacity: 0;
    transition: opacity .3s var(--ease);
}

.cw-inline-card:hover .cw-inline-overlay { opacity: 1; }

.cw-inline-visit {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    background: rgba(199,153,255,0.2);
    backdrop-filter: blur(8px);
    color: #fff; font-size: 12px; font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.cw-inline-info { padding: 28px; }

.cw-inline-tag {
    display: inline-block; padding: 4px 12px;
    border-radius: 6px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    background: rgba(199,153,255,0.08);
    color: var(--primary); margin-bottom: 12px;
}

.cw-inline-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--on-surface); margin-bottom: 6px;
}

.cw-inline-info > p {
    font-size: 14px; color: var(--on-surface-variant);
    line-height: 1.7; margin-bottom: 18px;
}

.cw-inline-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-weight: 600; font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all .3s var(--ease);
}

.cw-inline-link:hover {
    color: var(--tertiary);
    transform: translateX(4px);
}

.cw-inline-cta {
    text-align: center;
}

/* ── Index Page Client Work Section (Light Theme) ──────── */
.cw-index-section {
    padding: 100px 48px; position: relative;
    background: #fff;
}

.cw-index-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, #EDE9FE, transparent);
}

.cw-index-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 28px; max-width: 960px; margin-bottom: 40px;
}

.cw-index-card {
    border-radius: 20px; overflow: hidden;
    background: #fff; border: 1px solid rgba(108,60,225,0.06);
    box-shadow: 0 8px 32px rgba(108,60,225,0.05);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    cursor: pointer;
}

.cw-index-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(108,60,225,0.12);
    border-color: rgba(108,60,225,0.12);
}

.cw-index-img {
    position: relative; overflow: hidden; height: 200px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
}

.cw-index-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .4s var(--ease);
}

.cw-index-card:hover .cw-index-img img { transform: scale(1.05); }

.cw-index-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 4px 14px; border-radius: 8px;
    background: rgba(108,60,225,0.9); color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.cw-index-body { padding: 24px; }

.cw-index-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    color: #111827; margin-bottom: 6px;
}

.cw-index-body > p {
    font-size: 14px; color: #6B7280;
    line-height: 1.6; margin-bottom: 16px;
}

.cw-index-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #6C3CE1; font-weight: 700; font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all .25s var(--ease);
}

.cw-index-link:hover { transform: translateX(4px); }

.cw-index-cta {
    text-align: center;
}

.cw-view-all {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 10px;
    background: transparent; color: #6C3CE1;
    border: 1.5px solid #C4B5FD;
    font-weight: 600; font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all .25s var(--ease);
}

.cw-view-all:hover {
    background: #EDE9FE; border-color: #6C3CE1;
    transform: translateY(-2px);
}

/* ── Commercial Work Responsive ──────────────────────────── */
@media (max-width: 1024px) {
    .cw-case-study { grid-template-columns: 1fr; gap: 40px; }
    .cw-case-reverse { direction: ltr; }
    .cw-process-grid { grid-template-columns: 1fr 1fr; }
    .cw-features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .cw-hero { padding: 120px 24px 60px; }
    .cw-hero-title { font-size: clamp(28px, 8vw, 42px); letter-spacing: -1px; }
    .cw-hero-desc { font-size: 15px; }
    .cw-hero-stats { gap: 20px; }
    .cw-stat-value { font-size: 24px; }
    .cw-hero-actions { flex-direction: column; width: 100%; gap: 12px; }
    .cw-hero-actions .cta-primary,
    .cw-hero-actions .cta-ghost { width: 100%; text-align: center; justify-content: center; }
    .cw-showcase, .cw-process, .cw-features, .cw-hire-cta { padding: 60px 0; }
    .cw-case-study { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
    .cw-case-reverse { direction: ltr; }
    .cw-process-grid { grid-template-columns: 1fr; }
    .cw-features-grid { grid-template-columns: 1fr; }
    .cw-hire-card { padding: 40px 24px; }
    .cw-hire-actions { flex-direction: column; }
    .cw-hire-assurance { flex-direction: column; gap: 12px; }
    .cw-inline-grid { grid-template-columns: 1fr; }
    .cw-index-grid { grid-template-columns: 1fr; }
    .cw-index-section { padding: 60px 24px; }
}

@media (max-width: 480px) {
    .cw-hero { padding: 90px 16px 50px; }
    .cw-hero-title { font-size: 28px; }
    .cw-case-title { font-size: 24px; }
    .cw-case-results { flex-direction: column; }
    .cw-browser-content { height: 200px; }
    .cw-inline-img-wrap { height: 180px; }
}