@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset & Variable Setup */
:root {
    /* Primary Colors */
    --accent-purple: #DF00FF;
    --primary-gradient: linear-gradient(135deg, #DF00FF 0%, #D454FF 50%, #9E00D3 100%);
    
    /* Light Mode (Primary) */
    --bg-main: #ffffff;
    --bg-section: #f8fafc;
    --bg-soft-purple: #faf5ff;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --text-main: #000000;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Sora', sans-serif;
    
    --container-width: 1200px;
    --section-padding: 100px 0;
}

[data-theme="dark"] {
    /* Black Theme (Secondary) */
    --bg-main: #000000;
    --bg-section: #050505;
    --bg-soft-purple: #0a0010;
    --bg-card: #0a0a0a;
    --bg-nav: rgba(0, 0, 0, 0.8);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.8);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); } /* fluid base */
h2 { 
    font-size: clamp(1.6rem, 3.5vw, 2.125rem); 
    font-weight: 500; 
}
h3 { font-size: 1.5rem; }

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-gray {
    background: linear-gradient(135deg, #000000 0%, #555555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text-gray {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-light-gray {
    color: #94a3b8;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    padding: 0 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateY(-3px);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(71, 67, 71, 0.15);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.3);
    animation: primary-glow-pulse 2s infinite ease-in-out;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 #474347, 0 2px 4px rgba(71, 67, 71, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.15);
    animation: secondary-glow-pulse 2s infinite ease-in-out;
}

.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 #474347, 0 2px 4px rgba(0, 0, 0, 0.05);
}

.w-full { width: 100%; }

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* Header & Modern Techy Nav - Refined to Luxury Editorial Style */
header {
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

[data-theme="dark"] header {
    background: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .nav-container {
    background: transparent;
    border: none;
    box-shadow: none;
}

header.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

header.scrolled .nav-container {
    max-width: 1200px;
    padding: 0 24px;
}

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

.logo img {
    height: 24px;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: grayscale(0);
}

.logo-text {
    color: var(--text-main);
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    font-family: 'Sora', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    display: inline-block;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-main);
    opacity: 0.55;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scale(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-toggle:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(223, 0, 255, 0.05);
}

.nav-btn-lux {
    background: var(--text-main);
    color: var(--bg-main);
    border: none;
    height: 37px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateY(-2px);
    box-shadow: 0 3px 0 #474347, 0 6px 12px rgba(71, 67, 71, 0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease, box-shadow 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .nav-btn-lux {
    box-shadow: 0 3px 0 #474347, 0 6px 16px rgba(0, 0, 0, 0.4);
}

.nav-btn-lux:hover {
    transform: translateY(-4px);
    background: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 4px 0 #7e22ce, 0 8px 16px rgba(223, 0, 255, 0.25);
    animation: nav-glow-pulse 2s infinite ease-in-out;
}

/* Hero Section - Refined to Premium Black-and-White Editorial */
.hero {
    padding-top: 145px;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-purple);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-purple);
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.badge-text {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-main);
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 59px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-title .accent-dot {
    color: var(--accent-purple);
}

.hero-intro {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #5C5C5C;
    margin-bottom: 36px;
    max-width: 540px;
}

[data-theme="dark"] .hero-intro {
    color: #A0A0A0;
}

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

.btn-editorial-primary {
    background: var(--text-main);
    color: var(--bg-main);
    border: none;
    height: 47px;
    padding: 0 32px;
    min-width: 200px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateY(-3px);
    box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(71, 67, 71, 0.15);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .btn-editorial-primary {
    box-shadow: 0 4px 0 #474347, 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-editorial-primary:hover {
    transform: translateY(-5px);
    background: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.3);
    animation: editorial-glow-pulse 2s infinite ease-in-out;
}

.btn-editorial-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 #474347, 0 2px 4px rgba(71, 67, 71, 0.1);
}

.btn-editorial-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    height: 47px;
    padding: 0 32px;
    min-width: 200px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-editorial-secondary:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(223, 0, 255, 0.03);
    box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(223, 0, 255, 0.15);
    animation: secondary-glow-pulse 2s infinite ease-in-out;
}

.btn-editorial-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 #474347, 0 2px 4px rgba(71, 67, 71, 0.05);
}

.btn-editorial-secondary .arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-editorial-secondary:hover .arrow {
    transform: rotate(45deg);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}

.hero-portrait {
    width: 457px;
    height: 537px;
    max-width: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
    display: block;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}

.hero-glow-blur {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 450px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .hero-glow-blur {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.01);
}

.hero-purple-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(223, 0, 255, 0.09) 0%, rgba(223, 0, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(30px);
}

[data-theme="light"] .hero-purple-glow {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.04) 0%, rgba(223, 0, 255, 0) 70%);
}


/* --- Premium Minimalist Curved Showcase --- */
.premium-showcase {
    padding: 30px 0;
    /* Clean, soft neutral background matching exactly 2.5% to 3% opacity */
    background: rgba(0, 0, 0, 0.015);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .premium-showcase {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.005);
    border-bottom: 1px solid rgba(255, 255, 255, 0.005);
}

/* Side Vignette Fades - Seamless edge blending */
.marquee-fade-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    z-index: 5;
    pointer-events: none;
}
.marquee-fade-overlay.left {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}
.marquee-fade-overlay.right {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

/* 3D Curved Marquee Container */
.marquee-container {
    display: flex;
    width: 100%;
    overflow: visible;
    padding: 10px 0;
    z-index: 2;
    perspective: none;
    transform-style: flat;
    transform: scale(0.99);
}

.marquee-row {
    width: 100%;
    overflow: visible;
    display: flex;
    /* transform-style: preserve-3d; */
}

/* Curved & Tilted 3D Marquee Track */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    transform-style: flat;
    animation: scroll-left-loop 38s linear infinite;
}

@keyframes scroll-left-loop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Delicate Miniature Cards - Frame-free, Borderless, Small Visual Footprint */
.marquee-card {
    position: relative;
    width: 210px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    transform-style: flat;
    transition: opacity 0.3s ease;
}

/* Mathematical Curved Suspension (TranslateY Offset Mapping) 
   Creates a smooth concave curved bridge loop across the screen */
.marquee-card.card-idx-1 { transform: none; }
.marquee-card.card-idx-2 { transform: none; }
.marquee-card.card-idx-3 { transform: none; }
.marquee-card.card-idx-4 { transform: none; }
.marquee-card.card-idx-5 { transform: none; }
.marquee-card.card-idx-6 { transform: none; }

/* Media (Image/Video) styling - Clean Editorial Portrait */
.marquee-card img,
.marquee-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
    filter: none;
    box-shadow: none;
}

/* Very subtle hover softening - quiet refinement without any scale/tilt/borders */
.marquee-card:hover {
    opacity: 0.88;
}

/* Responsive Styles for Curved Showcase */
@media (max-width: 768px) {
    .premium-showcase {
        padding: 20px 0 25px;
    }
    .marquee-container {
        padding: 10px 0 20px;
        transform: perspective(1000px) rotateX(4deg) scale(0.98);
    }
    .marquee-track {
        gap: 15px;
        animation-duration: 35s;
    }
    .marquee-card {
        width: 140px;
        height: 175px;
    }
    .marquee-card img,
    .marquee-card video {
        border-radius: 10px;
    }
    /* Compact Y-curves for mobile */
    .marquee-card.card-idx-1 { transform: translateY(16px); }
    .marquee-card.card-idx-2 { transform: translateY(5px); }
    .marquee-card.card-idx-3 { transform: translateY(0px); }
    .marquee-card.card-idx-4 { transform: translateY(0px); }
    .marquee-card.card-idx-5 { transform: translateY(5px); }
    .marquee-card.card-idx-6 { transform: translateY(16px); }
    
    .marquee-fade-overlay {
        width: 20%;
    }
}

/* Services */
.services {
    padding: var(--section-padding);
    /* content-visibility: skip browser paint/layout for off-screen sections
       until they approach the viewport — major rendering performance win */
    content-visibility: auto;
    contain-intrinsic-size: 0 700px;
}

.section-title {
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px -20px rgba(168, 85, 247, 0.2);
}

.service-card-top {
    height: 180px; /* Reduced height */
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.service-card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
}

.service-card-top img {
    height: 120px; /* Specific reduced height */
    width: auto;
    object-fit: contain;
    transition: 0.5s ease;
}

.service-card:hover .service-card-top img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-theme="dark"] .service-card {
    /* Removed backdrop-filter: blur() — it forces GPU compositing on all 4 cards
       simultaneously during scroll, causing frame drops on mid-range devices.
       A solid background achieves the same visual with zero compositing cost. */
    background: rgba(12, 12, 12, 0.95);
}

/* Selected Projects */
.selected-projects {
    padding: var(--section-padding);
    background: var(--bg-section);
    content-visibility: auto;
    contain-intrinsic-size: 0 900px;
}

.projects-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

.sticky-sidebar {
    position: sticky;
    top: 150px;
}

.sticky-sidebar h2 {
    margin-bottom: 30px;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 8px 8px 24px;
}

.icon-circle {
    background: #ffffff;
    color: var(--accent-purple);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

[data-theme="dark"] .icon-circle {
    background: #000000;
    color: #ffffff;
}

.btn-with-icon:hover .icon-circle {
    transform: rotate(45deg);
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.masonry-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.masonry-card::after {
    content: '↗';
    position: absolute;
    top: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    background: var(--bg-main);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.3s ease;
    box-shadow: var(--shadow);
    pointer-events: none;
}

.masonry-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: var(--accent-purple);
}

.masonry-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.masonry-large {
    grid-column: span 2;
}

.masonry-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-section);
    margin-bottom: 20px;
}

.masonry-image img,
.masonry-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-card:hover .masonry-image img,
.masonry-card:hover .masonry-image video {
    transform: scale(1.03);
}

.masonry-info {
    padding: 0 10px 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
}

.masonry-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

.masonry-tags span {
    background: var(--bg-section);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Experience Section Refined */
.experience {
    padding: var(--section-padding);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Glass Card Global */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
}

[data-theme="dark"] .glass-card {
    background: rgba(20, 20, 20, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.experience-intro {
    padding-right: 20px;
}

.experience-intro h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 25px;
    line-height: 1.1;
}

.experience-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 400px;
}

.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-card {
    padding: 35px 45px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.experience-card:hover {
    transform: translateX(10px) translateY(-2px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px -20px rgba(168, 85, 247, 0.2);
}

.exp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exp-company {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.exp-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-main);
}

.exp-desc {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.exp-date-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dark Resume Button Style */
.btn-dark {
    background: #1a1a1a;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .btn-dark {
    background: #ffffff;
    color: #000;
}

.btn-dark:hover {
    transform: scale(1.05);
}

/* Tools */
.tools {
    padding: 80px 0;
    background: var(--bg-main);
    content-visibility: auto;
    contain-intrinsic-size: 0 550px;
}

/* Interactive Tools Canvas */
.tools-interactive-container {
    width: 100%;
    height: 450px;
}

.dotted-canvas {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .dotted-canvas {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}

.floating-pill-wrapper {
    position: absolute;
    cursor: grab;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* Float animation ensures they subtly bob up and down */
    animation: float-pill 2s ease-in-out infinite alternate;
    touch-action: none;
}

.floating-pill-wrapper:nth-child(even) {
    animation-delay: -1s;
    animation-duration: 2.4s;
}

.floating-pill-wrapper.dragging {
    cursor: grabbing;
    animation: none !important; /* Stop floating when dragging */
    z-index: 100; /* Bring to front */
}

.floating-pill {
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.4);
    user-select: none;
}

[data-theme="dark"] .floating-pill {
    background: #fff;
    color: #000;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 30px -10px rgba(255,255,255,0.2);
}

@keyframes float-pill {
    0% { transform: translate(-50%, -50%) translateY(-12px); }
    100% { transform: translate(-50%, -50%) translateY(12px); }
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
    content-visibility: auto;
    contain-intrinsic-size: 0 700px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-plus {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Testimonial Marquee */
.testimonial-marquee {
    display: flex;
    gap: 30px;
    overflow: hidden;
    user-select: none;
    padding: 20px 0;
    position: relative;
    /* Gradient mask for smooth fade on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testimonial-marquee-content {
    flex-shrink: 0;
    display: flex;
    gap: 30px;
    min-width: 100%;
    animation: scroll-slow 40s linear infinite; /* Calm Scroll */
    will-change: transform;
}

.testimonial-marquee:hover .testimonial-marquee-content {
    animation-play-state: paused;
}

.testimonial-card {
    min-width: 400px;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-icon {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    font-style: normal;
}

@keyframes scroll-slow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 30px)); }
}

/* Contact */
.contact {
    padding: var(--section-padding);
    background: var(--bg-soft-purple);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.contact-text h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
}

.contact-links {
    margin-top: 40px;
}

.contact-links a {
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: 0.3s ease;
    font-size: 1rem;
    resize: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(223, 0, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer Redesign */
.site-footer {
    padding: 100px 0 40px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 20px 0 30px;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    transition: 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(168,85,247,0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-newsletter p {
    color: var(--text-muted);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-icon {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    font-style: normal;
}

@keyframes scroll-slow {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 30px)); }
}

/* Contact */
.contact {
    padding: var(--section-padding);
    background: var(--bg-soft-purple);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.contact-text h2 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
}

.contact-links {
    margin-top: 40px;
}

.contact-links a {
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: 0.3s ease;
    font-size: 1rem;
    resize: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(223, 0, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer Redesign */
.site-footer {
    padding: 100px 0 40px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 20px 0 30px;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    transition: 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(168,85,247,0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(168,85,247,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Button - Premium Asymmetrical Circular Overhaul */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    padding: 0;
    position: relative;
    outline: none;
}

/* Premium glass hover feedback */
.mobile-menu-btn:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: var(--accent-purple);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Asymmetrical premium line layout */
.mobile-menu-btn span:nth-child(1) {
    width: 18px;
    transform-origin: center;
}

.mobile-menu-btn span:nth-child(2) {
    display: none; /* Hide middle line completely for double-bar high-end aesthetic */
}

.mobile-menu-btn span:nth-child(3) {
    width: 11px;
    transform-origin: center;
}

/* Kinetic Hover: Short bar seamlessly breathes outward to full width */
.mobile-menu-btn:hover span:nth-child(3) {
    width: 18px;
}

/* Animated active state: Morphs circle and cross into glowing violet close symbol */
.mobile-menu-btn.active {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
    width: 18px;
    transform: translateY(2px) rotate(45deg);
    background-color: var(--accent-purple);
}

.mobile-menu-btn.active span:nth-child(3) {
    width: 18px;
    transform: translateY(-2px) rotate(-45deg);
    background-color: var(--accent-purple);
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.4s ease, visibility 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .scroll-top-btn {
    background: rgba(20, 20, 20, 0.7);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    animation: bounce-continuous 2.5s infinite ease-in-out;
}

.scroll-top-btn:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
    animation-play-state: paused;
}

@keyframes bounce-continuous {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    /* Headings */
    /* Best-fit Typography Scaling */
    h1 { 
        font-size: clamp(1.8rem, 9vw, 3rem); 
        line-height: 1.15;
    }
    h2 { 
        font-size: clamp(1.35rem, 6vw, 2rem); 
        line-height: 1.25;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        height: 30px;
    }

    .nav-actions {
        gap: 20px;
    }
    /* Fluid typography handles experience-intro and contact-text scaling automatically */
    
    .section-title {
        margin-bottom: 35px;
    }

    /* Tools & Badges */
    .tools-interactive-container {
        height: 400px;
    }
    
    .floating-pill {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Scroll To Top */
    .scroll-top-btn {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Project Gallery Marquee — Mobile */
    .portfolio-gallery {
        padding: 30px 0;
    }

    .marquee-card {
        min-width: 220px;
        height: 280px;
        border-radius: 8px;
        padding: 12px;
    }

    .marquee {
        gap: 15px;
    }

    .marquee-content {
        gap: 15px;
    }

    /* Testimonial Marquee Fixes */
    .testimonial-marquee {
        margin: 0 -2rem; /* Break out of container padding */
        width: calc(100% + 4rem);
        padding: 20px 0;
    }

    .testimonial-marquee {
        margin: 0 -2rem;
        width: calc(100% + 4rem);
        padding: 16px 0;
        gap: 16px;
    }

    .testimonial-marquee-content {
        gap: 16px;
        padding: 0 1rem;
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        min-height: unset;
        height: auto;
        padding: 22px;
        gap: 16px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .testimonial-text {
        font-size: 0.97rem;
        line-height: 1.6;
        flex: unset;
    }

    .author-avatar {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .author-info h4 {
        font-size: 0.98rem;
    }

    .author-info span {
        font-size: 0.82rem;
    }

    /* Hide social icon (X logo) on mobile */
    .social-icon {
        display: none;
    }

    @keyframes scroll {
        0% { transform: translateX(0) translateZ(0); }
        100% { transform: translateX(calc(-100% - 15px)) translateZ(0); }
    }

    /* Form & Layout Refinement */
    .contact-form {
        padding: 24px; /* Reduced from 50px for better fit */
        border-radius: 8px;
    }

    .form-group input, 
    .form-group textarea {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-masonry {
        grid-template-columns: 1fr;
    }

    /* ── All Pages: Mobile Hero Centering ── */
    .work-hero,
    .about-hero,
    .cs-hero,
    .post-hero,
    .contact-hero {
        text-align: center;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    /* Work page */
    .work-hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    /* About page: show image above text on mobile */
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .about-hero-image {
        max-width: 280px;
        margin: 0 auto;
    }
    .about-hero-image .image-wrapper {
        border-radius: 50%;
        aspect-ratio: 1/1;
    }
    .about-hero-content h1 {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }
    .highlight-text {
        font-size: 1.1rem;
    }
    .about-hero-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .founder-box {
        text-align: left;
    }

    /* About page: What I Do / What Drives Me sections */
    .about-grid-two {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    .story-split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .story-sticky-left {
        position: static;
        text-align: center;
    }
    .story-milestone {
        padding: 25px;
    }
    .journey-grid {
        grid-template-columns: 1fr !important;
    }
    .journey-sticky-header {
        position: static !important;
        text-align: center;
        margin-bottom: 30px;
    }

    /* Case Study page */
    .cs-hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }
    .cs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cs-section-label {
        position: static;
    }
    .cs-coming-soon h1 {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    /* Blog / Post page */
    .single-post h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-links a {
        font-size: 1.2rem;
    }

    /* Vision CTA */
    .vision-cta-section {
        padding: 80px 0;
        text-align: center;
    }
    .vision-cta-section h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .vision-cta-section p {
        font-size: 1rem;
    }
}

/* Mobile Navigation Overlay - Premium Circular Ripple Editorial Overhaul */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 90% 5%, rgba(223, 0, 255, 0.05), transparent 50%), var(--bg-main);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 130px 40px 60px 40px;
    z-index: 1050; /* Set above standard header to hide other content but keep toggles clean */
    box-sizing: border-box;
    
    /* Hardware-Accelerated Premium Ripple Reveal using Clip-Path */
    clip-path: circle(0px at calc(100% - 40px) 40px);
    transition: clip-path 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    
    visibility: hidden;
    pointer-events: none;
}

[data-theme="dark"] .mobile-overlay {
    background: radial-gradient(circle at 90% 5%, rgba(223, 0, 255, 0.1), transparent 50%), rgba(5, 5, 5, 0.98);
}

.mobile-overlay.active {
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 40px) 40px);
}

/* Internal Container for Perfect Responsiveness & Scrolling on Tiny Devices */
.mobile-overlay-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    overflow-y: auto;
    /* Hide scrollbars completely to maintain clean minimal layout */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-overlay-inner::-webkit-scrollbar {
    display: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 320px;
}

.mobile-nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-links a:not(.nav-btn-lux) {
    font-family: 'Sora', sans-serif;
    font-size: 2.6rem; /* Clean large editorial size */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sleek elegant editorial indicator (arrow) sliding in on hover */
.mobile-nav-links a:not(.nav-btn-lux)::after {
    content: " ↗";
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent-purple);
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 8px;
}

.mobile-nav-links a:not(.nav-btn-lux):hover {
    color: var(--accent-purple);
    transform: translateX(8px);
}

.mobile-nav-links a:not(.nav-btn-lux):hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.mobile-nav-links a:not(.nav-btn-lux).active {
    color: var(--accent-purple);
}

/* Custom Mobile CTA Styling */
.mobile-menu-cta {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-cta .mobile-cta-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 320px;
    height: 52px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    border-radius: 50px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(223, 0, 255, 0.15) !important;
    margin: 0 !important;
    transform: translateY(0) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-menu-cta .mobile-cta-btn:hover {
    background: var(--accent-purple) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(223, 0, 255, 0.3) !important;
}

/* Staggered Link Slide-in Animations via Transitions */
.mobile-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Opening Delays */
.mobile-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.08s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.14s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.20s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.26s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.32s; }
.mobile-overlay.active .mobile-menu-cta { transition-delay: 0.38s; }

/* Perfect responsiveness for short vertical viewports & landscape orientation */
@media (max-height: 700px) {
    .mobile-overlay {
        padding: 100px 40px 40px 40px;
    }
    .mobile-nav-links {
        gap: 16px;
    }
    .mobile-nav-links a:not(.nav-btn-lux) {
        font-size: 2.0rem;
    }
    .mobile-overlay-inner {
        justify-content: flex-start;
        gap: 30px;
    }
    .mobile-menu-cta {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (max-height: 480px) {
    .mobile-overlay {
        padding: 85px 40px 20px 40px;
    }
    .mobile-nav-links {
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
    }
    .mobile-nav-links a:not(.nav-btn-lux) {
        font-size: 1.4rem;
    }
    .mobile-overlay-inner {
        justify-content: flex-start;
        gap: 20px;
    }
    .mobile-menu-cta {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Entry Animations */
.nav-container {
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content {
    opacity: 0;
    animation: slideRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-image-container {
    opacity: 0;
    transform: scale(0.85);
    animation: scaleUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links, .desktop-btn, .nav-btn-lux.desktop-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    /* h1/h2 now scale fluidly via clamp() — no override needed here */
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 45px;
    }
    
    .hero-title {
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero-intro {
        margin: 24px auto 36px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-portrait {
        width: 100%;
        max-width: 420px;
        height: auto;
        object-fit: contain;
        aspect-ratio: 457/537;
        margin: 0 auto;
    }

    .hero-glow-blur {
        width: 260px;
        height: 100px;
    }

    .hero-purple-glow {
        width: 380px;
        height: 380px;
    }
    
    .projects-layout {
        grid-template-columns: 1fr;
    }
    
    .sticky-sidebar {
        position: static;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .masonry-large {
        grid-column: span 1;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .experience-intro {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .experience-intro p {
        margin: 25px auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-desc {
        margin: 20px auto 30px;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Work Page Specific Styles */
.work-hero {
    padding-top: 180px;
    padding-bottom: 60px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--accent-purple);
    color: var(--text-main);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Filtering Logic Styles */
.filter-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.work-gallery .projects-masonry {
    margin-top: 0;
}

/* Vision CTA in Work Page */
.vision-cta-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.03));
}

.vision-cta-section h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 20px;
}

.vision-cta-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
        line-height: 1.15;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* Case Study Template Styles */
.cs-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom, var(--bg-card), transparent);
}

.cs-hero-image {
    width: 100%;
    margin-top: 60px;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.cs-hero-image img, .cs-hero-image video {
    width: 100%;
    display: block;
}

.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
}

.cs-stat-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cs-stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.cs-content-section {
    padding-bottom: 100px;
}

.cs-content-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: flex-start;
}

.cs-section-label {
    position: sticky;
    top: 120px;
}

.cs-section-label h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.cs-section-body p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 30px;
}

.cs-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.cs-feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.cs-feature-list i {
    width: 24px;
    height: 24px;
    color: var(--accent-purple);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.cs-feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cs-feature-text p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.cs-image-gallery {
    padding: 80px 0;
}

.cs-image-block {
    margin-bottom: 60px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cs-image-block img {
    width: 100%;
}

/* Coming Soon State */
.cs-coming-soon {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}

.cs-coming-soon {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

.cs-coming-soon i {
    font-size: 5rem;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(223, 0, 255, 0.2));
}

.cs-coming-soon h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.cs-coming-soon p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 45px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .cs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
    
    .cs-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cs-section-label {
        position: static;
    }
}

@media (max-width: 768px) {
    .cs-hero {
        padding-top: 120px;
    }
    
    .cs-stats-grid {
        gap: 30px 15px;
        padding: 40px 0;
        margin-bottom: 60px;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

/* Full Image Case Study Styles */
.cs-full-image-container {
    width: 100%;
    background: var(--bg-main);
    padding: 0;
}

.cs-full-image-inner {
    max-width: 1400px;
    margin: 0 auto;
    background: #000; /* Backdrop for the design image */
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}

.cs-full-image-inner img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1400px) {
    .cs-full-image-inner {
        max-width: 100%;
    }
}

/* Update hero and stats when followed by a full image */
.case-study-template .cs-hero {
    padding-bottom: 40px;
}

.case-study-template .cs-stats {
    margin-bottom: 40px;
}

/* About Page Specific Styles */
.about-hero {
    padding-top: 180px;
    padding-bottom: 100px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 80px;
    align-items: center;
}

.about-hero-image .image-wrapper {
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex; /* Ensures image fills correctly */
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit; /* Perfectly matches the wrapper */
}

.about-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 20px 0;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.about-hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.founder-box {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-soft-purple);
    border-radius: 24px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.text-link {
    display: inline-block;
    color: var(--accent-purple);
    font-weight: 500;
    margin-top: 10px;
    border-bottom: 2px solid transparent;
}

.text-link:hover {
    border-color: var(--accent-purple);
}

/* ── About Page: Text Light Gray ── */
.text-light-gray {
    color: var(--accent-purple);
    opacity: 0.7;
}

/* ── About Page: What I Do Now / What Drives Me ── */
.about-what-now {
    padding: var(--section-padding);
    background: var(--bg-main);
}

.about-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.skills-list li i {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

.philosophy-box {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.philosophy-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.personal-bits {
    /* Personal interests column */
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.interest-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: 0.3s ease;
}

.interest-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(168, 85, 247, 0.1);
}

.interest-card i {
    color: var(--accent-purple);
    font-size: 1.1rem;
}

/* ── About Page: Vision Section ── */
.about-vision {
    padding: var(--section-padding);
}

.large-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.vision-cta {
    margin-top: 30px;
}

/* ── About Page: Life Gallery ── */
.life-gallery {
    padding: 80px 0;
    background: var(--bg-section);
    overflow: hidden;
}

.life-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.life-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

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

.life-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .about-hero-image {
        max-width: 350px;
        margin: 0 auto;
    }
    .about-grid-two {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .life-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .interest-card {
        padding: 12px;
        font-size: 0.85rem;
    }
    .life-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .about-hero-content p {
        font-size: 0.95rem;
    }
}

/* Modular Milestone Cards */
.story-split-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 80px;
    align-items: start;
}

.story-sticky-left {
    position: sticky;
    top: 150px;
}

.story-sticky-left h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

.story-milestone {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 32px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-milestone:hover {
    border-color: var(--accent-purple);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
}

.story-milestone p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    color: var(--text-muted);
}

.story-milestone strong {
    color: var(--text-main);
}

.story-milestone.quote-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
    border-left: none;
}

.story-milestone .quote-text {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .story-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .story-sticky-left { 
        position: static; 
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    form select::placeholder {
        font-size: 0.95rem;
    }
}

.contact-links p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ─── Blog Specific Styles ─── */
.post-date-tag {
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.post-excerpt-preview {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 10px;
}

.article-body h2 {
    font-family: 'Sen', sans-serif;
    font-size: 2rem;
    background: var(--gradient-gray);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 30px 0 15px;
}

.article-body p br {
    display: block;
    content: "";
    margin-top: 10px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.share-buttons a:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .article-body {
        font-size: 1.05rem;
    }
}

/* --- Blog Post Detail Page Styling --- */
.container.narrow {
    max-width: 800px;
    margin: 0 auto;
}

.post-hero {
    padding-top: 180px;
    padding-bottom: 40px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.back-link {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.date-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.single-post h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.post-cover-section {
    padding: 40px 0;
}

.post-image-wrapper {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-post-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

.post-body-section {
    padding: 60px 0 100px;
}

.rich-text-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
}

.rich-text-content p {
    margin-bottom: 1.5rem;
}

.rich-text-content h2 {
    font-size: 2.25rem;
    margin: 3rem 0 1.5rem;
}

.rich-text-content h3 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.rich-text-content blockquote {
    border-left: 4px solid var(--accent-purple);
    padding: 1rem 0 1rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: var(--bg-soft-purple);
    border-radius: 0 16px 16px 0;
}

.post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.share-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-box span {
    font-weight: 500;
    font-size: 0.95rem;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.3s;
}

.share-links a:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

@media (max-width: 768px) {
    .single-post h1 {
        font-size: 2.5rem;
    }
    
    .rich-text-content {
        font-size: 1.05rem;
    }
}

/* Blog Engagement Styles */
.like-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-button:hover {
    background: rgba(223, 0, 255, 0.1);
    border-color: var(--accent-purple);
    color: var(--text-main);
    transform: translateY(-2px);
}

.like-button.liked {
    background: rgba(223, 0, 255, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.like-button.liked i {
    font-weight: 500;
}

.copy-link-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.copy-link-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: toastIn 0.3s ease forwards;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }

@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Life Gallery Section --- */
.life-gallery {
    padding: 120px 0;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

/* 4-Way Premium Fade Masks */
.life-gallery-fade-v::before,
.life-gallery-fade-v::after,
.life-gallery-fade-h::before,
.life-gallery-fade-h::after {
    content: '';
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

/* Top & Bottom */
.life-gallery-fade-v::before {
    top: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, var(--bg-main) 0%, transparent 100%);
}
.life-gallery-fade-v::after {
    bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%);
}

/* Left & Right */
.life-gallery-fade-h::before {
    top: 0; bottom: 0; left: 0; width: 12%;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}
.life-gallery-fade-h::after {
    top: 0; bottom: 0; right: 0; width: 12%;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.life-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
    width: 120%;
    margin-left: -10%;
    justify-content: center;
}

@media (max-width: 1200px) {
    .life-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .life-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .life-grid { 
        grid-template-columns: repeat(2, 1fr);
        width: 110%;
        margin-left: -5%;
        gap: 8px;
    }
}

.life-item {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.life-item img, .life-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.life-item:hover img, .life-item:hover video {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

@media (max-width: 1024px) {
    .life-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .life-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .life-item {
        border-radius: 16px;
    }
}

/* --- Career Journey Timeline --- */
.career-journey {
    padding: 140px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-glass);
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.journey-sticky-header {
    position: sticky;
    top: 140px;
}

.journey-sticky-header h2 {
    margin: 20px 0;
    font-size: 3.5rem;
    line-height: 1;
}

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

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom, 
        var(--accent-purple) 0%, 
        var(--border-glass) 50%, 
        transparent 100%
    );
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -45px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent-purple);
    z-index: 2;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple);
    transform: scale(1.3);
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-company {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.timeline-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

.timeline-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 500;
    opacity: 0.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.timeline-tags li {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.timeline-item:hover .timeline-tags li {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

@media (max-width: 1024px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .journey-sticky-header {
        position: relative;
        top: 0;
        text-align: center;
    }

    .journey-sticky-header h2 {
        font-size: 2.675rem; /* Reduced by exactly 2px (0.125rem) */
    }

    .timeline-container {
        padding-left: 30px;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* ─── Premium 3D Button Dual Wave Hover Overlay Effects ─── */
}

}

/* ─── Premium Neo-Glassmorphic Bubble Fill Hover Effects ─── */
.btn-editorial-primary::before,
.btn-editorial-secondary::before,
.btn-primary::before,
.btn-secondary::before,
.nav-btn-lux::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    top: -30px;
    left: -30px;
    transform: scale(0);
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: -1;
}

.btn-editorial-primary::after,
.btn-editorial-secondary::after,
.btn-primary::after,
.btn-secondary::after,
.nav-btn-lux::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    transform: scale(0);
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.08s;
    pointer-events: none;
    z-index: -1;
}

/* Dark Editorial & Lux Nav Buttons: Glowing Violet/Purple Glass Bubbles */
.btn-editorial-primary::before,
.nav-btn-lux::before {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.45) 0%, rgba(223, 0, 255, 0.1) 70%);
    filter: blur(12px);
}
.btn-editorial-primary::after,
.nav-btn-lux::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0.15) 70%);
    filter: blur(12px);
}

/* Purple Brand Buttons: Shimmering Translucent White Glass Bubbles */
.btn-primary::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 70%);
    filter: blur(8px);
}
.btn-primary::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 70%);
    filter: blur(8px);
}

/* Secondary/Transparent Buttons: Delicate Purple Accent Glass Bubbles */
.btn-editorial-secondary::before,
.btn-secondary::before {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.16) 0%, rgba(223, 0, 255, 0.02) 70%);
    filter: blur(15px);
}
.btn-editorial-secondary::after,
.btn-secondary::after {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.26) 0%, rgba(223, 0, 255, 0.04) 70%);
    filter: blur(15px);
}

/* Trigger Organically Merging Glass Bubbles Scale-Up on Hover */
.btn-editorial-primary:hover::before,
.btn-editorial-secondary:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.nav-btn-lux:hover::before {
    transform: scale(2.4);
}

.btn-editorial-primary:hover::after,
.btn-editorial-secondary:hover::after,
.btn-primary:hover::after,
.btn-secondary:hover::after,
.nav-btn-lux:hover::after {
    transform: scale(2.4);
}

/* 3D shadow breathing glowing pulses */
@keyframes editorial-glow-pulse {
    0% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.25); }
    50% { box-shadow: 0 6px 0 #474347, 0 18px 36px rgba(71, 67, 71, 0.45); }
    100% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.25); }
}

@keyframes primary-glow-pulse {
    0% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.3); }
    50% { box-shadow: 0 6px 0 #474347, 0 18px 36px rgba(71, 67, 71, 0.55); }
    100% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.3); }
}

@keyframes secondary-glow-pulse {
    0% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.15); }
    50% { box-shadow: 0 6px 0 #474347, 0 18px 36px rgba(71, 67, 71, 0.3); }
    100% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.15); }
}

@keyframes nav-glow-pulse {
    0% { box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(71, 67, 71, 0.25); }
    50% { box-shadow: 0 4px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.4); }
    100% { box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(71, 67, 71, 0.25); }
}

/* Phone Icon and Interactive Vibration Animation */
.phone-icon {
    width: 13px;
    height: 13px;
    margin-right: 8px;
    display: inline-block !important;
    transform-origin: center center !important;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease;
}

@keyframes phone-vibrate {
    0% { transform: translate(0, 0) rotate(0deg) scale(1.2); }
    10% { transform: translate(-2px, -1px) rotate(-12deg) scale(1.2); }
    20% { transform: translate(1px, 2px) rotate(12deg) scale(1.2); }
    30% { transform: translate(-2px, 1px) rotate(-10deg) scale(1.2); }
    40% { transform: translate(2px, -1px) rotate(10deg) scale(1.2); }
    line-height: 1.6;
    color: var(--text-muted);
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 500;
    opacity: 0.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.timeline-tags li {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.timeline-item:hover .timeline-tags li {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

@media (max-width: 1024px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .journey-sticky-header {
        position: relative;
        top: 0;
        text-align: center;
    }

    .journey-sticky-header h2 {
        font-size: 2.675rem; /* Reduced by exactly 2px (0.125rem) */
    }


    .timeline-container {
        padding-left: 30px;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* ─── Premium 3D Button Dual Wave Hover Overlay Effects ─── */
}

}

/* ─── Premium Neo-Glassmorphic Bubble Fill Hover Effects ─── */
.btn-editorial-primary::before,
.btn-editorial-secondary::before,
.btn-primary::before,
.btn-secondary::before,
.nav-btn-lux::before {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    top: -30px;
    left: -30px;
    transform: scale(0);
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: -1;
}

.btn-editorial-secondary::after,
.btn-primary::after,
.btn-secondary::after,
.nav-btn-lux::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    transform: scale(0);
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.08s;
    pointer-events: none;
    z-index: -1;
}

/* Dark Editorial & Lux Nav Buttons: Glowing Violet/Purple Glass Bubbles */
.btn-editorial-primary::before,
.nav-btn-lux::before {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.45) 0%, rgba(223, 0, 255, 0.1) 70%);
    filter: blur(12px);
}
.btn-editorial-primary::after,
.nav-btn-lux::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0.15) 70%);
    filter: blur(12px);
}

/* Purple Brand Buttons: Shimmering Translucent White Glass Bubbles */
.btn-primary::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 70%);
    filter: blur(8px);
}
.btn-primary::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 70%);
    filter: blur(8px);
}

/* Secondary/Transparent Buttons: Delicate Purple Accent Glass Bubbles */
.btn-editorial-secondary::before,
.btn-secondary::before {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.16) 0%, rgba(223, 0, 255, 0.02) 70%);
    filter: blur(15px);
}
.btn-editorial-secondary::after,
.btn-secondary::after {
    background: radial-gradient(circle, rgba(223, 0, 255, 0.26) 0%, rgba(223, 0, 255, 0.04) 70%);
    filter: blur(15px);
}

/* Trigger Organically Merging Glass Bubbles Scale-Up on Hover */
.btn-editorial-primary:hover::before,
.btn-editorial-secondary:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.nav-btn-lux:hover::before {
    transform: scale(2.4);
}

.btn-editorial-primary:hover::after,
.btn-editorial-secondary:hover::after,
.btn-primary:hover::after,
.btn-secondary:hover::after,
.nav-btn-lux:hover::after {
    transform: scale(2.4);
}

/* 3D shadow breathing glowing pulses */
@keyframes editorial-glow-pulse {
    0% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.25); }
    50% { box-shadow: 0 6px 0 #474347, 0 18px 36px rgba(71, 67, 71, 0.45); }
    100% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.25); }
}

@keyframes primary-glow-pulse {
    0% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.3); }
    50% { box-shadow: 0 6px 0 #474347, 0 18px 36px rgba(71, 67, 71, 0.55); }
    100% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.3); }
}

@keyframes secondary-glow-pulse {
    0% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.15); }
    50% { box-shadow: 0 6px 0 #474347, 0 18px 36px rgba(71, 67, 71, 0.3); }
    100% { box-shadow: 0 6px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.15); }
}

@keyframes nav-glow-pulse {
    0% { box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(71, 67, 71, 0.25); }
    50% { box-shadow: 0 4px 0 #474347, 0 12px 24px rgba(71, 67, 71, 0.4); }
    100% { box-shadow: 0 4px 0 #474347, 0 8px 16px rgba(71, 67, 71, 0.25); }
}

/* Phone Icon and Interactive Vibration Animation */
.phone-icon {
    width: 13px;
    height: 13px;
    margin-right: 8px;
    display: inline-block !important;
    transform-origin: center center !important;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease;
}

@keyframes phone-vibrate {
    0% { transform: translate(0, 0) rotate(0deg) scale(1.2); }
    10% { transform: translate(-2px, -1px) rotate(-12deg) scale(1.2); }
    20% { transform: translate(1px, 2px) rotate(12deg) scale(1.2); }
    30% { transform: translate(-2px, 1px) rotate(-10deg) scale(1.2); }
    40% { transform: translate(2px, -1px) rotate(10deg) scale(1.2); }
    50% { transform: translate(-1px, 2px) rotate(-12deg) scale(1.2); }
    60% { transform: translate(1px, -2px) rotate(12deg) scale(1.2); }
    70% { transform: translate(-2px, 1px) rotate(-10deg) scale(1.2); }
    80% { transform: translate(2px, 2px) rotate(10deg) scale(1.2); }
    90% { transform: translate(-1px, -1px) rotate(-8deg) scale(1.2); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1.2); }
}

/* Secondary and outline transparent buttons: Icon stays dark on hover */
.btn-editorial-secondary:hover .phone-icon,
.btn-secondary:hover .phone-icon {
    transition: none !important;
    animation: phone-vibrate 0.3s linear infinite !important;
    color: var(--text-main) !important;
}

/* Primary solid and nav buttons: Icon turns white on hover to contrast with the dark/purple background */
.btn-editorial-primary:hover .phone-icon,
.btn-primary:hover .phone-icon,
.nav-btn-lux:hover .phone-icon {
    transition: none !important;
    animation: phone-vibrate 0.3s linear infinite !important;
    color: #ffffff !important;
}

/* --- Modern Testimonials Section --- */
.testimonials-modern {
    padding: var(--section-padding);
    background: var(--bg-main);
}

.testimonials-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.testimonials-title-area {
    flex: 1;
    max-width: 100%; /* Changed from 500px so it can center cleanly on smaller screens */
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
}

[data-theme="dark"] .badge-pill {
    border-color: rgba(255, 255, 255, 0.1);
}

.testimonials-title-area h2 {
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.2;
    margin: 0;
}

.testimonials-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.02);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

[data-theme="dark"] .stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.03);
}

.stat-box h3 {
    font-size: clamp(28px, 6vw, 42px);
    color: var(--text-main);
    margin: 0 0 5px 0;
    line-height: 1;
    display: inline-block;
}

.stat-box .stat-suffix {
    font-size: clamp(20px, 4vw, 30px);
    color: var(--text-main);
    font-weight: 500;
    margin-left: 2px;
}

.stat-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Modern Testimonials Section Grid --- */
.testimonials-grid-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 850px; /* Collapsed height, fits 4 cards in 2x2 grid */
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonials-grid-wrapper.is-expanded {
    max-height: 5000px; /* Expands to full content */
}

.testimonials-grid-wrapper.no-fade {
    max-height: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding-bottom: 150px; /* Space for the overlay */
}

.testimonials-grid-wrapper.is-expanded .testimonials-grid {
    padding-bottom: 60px; /* Reset padding once expanded */
}

/* Fade Overlay & Button */
.testimonials-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--bg-main) 85%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 10;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

.testimonials-grid-wrapper.is-expanded .testimonials-fade-overlay {
    background: transparent;
    height: auto;
    position: relative;
    padding-top: 20px;
    padding-bottom: 40px;
}

.see-all-btn {
    pointer-events: auto;
    z-index: 12;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-purple);
    border-radius: 0;
    color: var(--text-main);
    padding: 8px 4px;
    font-weight: 700;
    font-family: 'Sen', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.see-all-btn:hover {
    color: var(--accent-purple);
    border-bottom-color: var(--text-main);
}

/* Modern Testimonial Card */
.modern-test-card {
    background: #fafcff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 14px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s;
    height: auto;
}

.modern-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
}

[data-theme="dark"] .modern-test-card {
    background: #121214;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

[data-theme="dark"] .modern-test-card:hover {
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
}

/* Quote Icon */
.modern-test-card .quote-icon {
    font-size: 32px;
    color: rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    line-height: 1;
}

[data-theme="dark"] .modern-test-card .quote-icon {
    color: rgba(255, 255, 255, 0.08);
}

/* Testimonial Text */
.modern-test-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 35px;
    font-weight: 400;
}

[data-theme="dark"] .modern-test-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Author Row */
.modern-test-author-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.modern-test-avatar-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
}

.modern-test-avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e4e9;
    border: 2px solid var(--border-glass);
}

/* Brand Badge Overlay */
.brand-badge-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fafcff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
    overflow: hidden;
}

[data-theme="dark"] .brand-badge-overlay {
    border-color: #121214;
}

.brand-badge-overlay img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.brand-badge-overlay i,
.brand-badge-overlay span {
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific built-in overlays styling */
.brand-badge-overlay.spotify {
    background: #000;
    color: #1ed760;
}

.brand-badge-overlay.meta {
    background: #fff;
    color: #0064e0;
}

.brand-badge-overlay.booking {
    background: #003580;
    color: #fff;
    font-weight: 800;
}

.brand-badge-overlay.google {
    background: #fff;
    color: #4285f4;
}

.brand-badge-overlay.apple {
    background: #000;
    color: #fff;
}

/* Author Info */
.modern-test-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modern-test-author-info .author-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

.modern-test-author-info .author-company {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .testimonials-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Mobile Modern Testimonials Section Enhancements */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 120px;
    }
    .testimonials-grid-wrapper {
        max-height: 800px; /* Collapsed height on mobile to display 2 vertical cards */
    }
    .testimonials-fade-overlay {
        height: 200px;
    }
    .modern-test-card {
        padding: 30px 24px;
        border-radius: 8px;
    }
    .modern-test-text {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .testimonials-title-area h2 {
        font-size: 2.2rem;
    }
}

/* ── Mobile: Reduce all card border-radius to 8px ── */
@media (max-width: 768px) {
    .service-card {
        border-radius: 8px;
    }
    .experience-card {
        border-radius: 8px;
    }
    .masonry-card {
        border-radius: 8px;
    }
    .masonry-image {
        border-radius: 6px;
    }
    .cs-hero-image {
        border-radius: 8px;
    }
    .founder-box,
    .philosophy-box,
    .story-milestone {
        border-radius: 8px;
    }
    .interest-card {
        border-radius: 8px;
    }
    .life-item {
        border-radius: 8px;
    }
}
