/* CSS Variables - Modern Color Palette */
:root {
    --bg: #ffffff;
    --bg-rgb: 255, 255, 255;
    --text: #0b1220;
    --primary: #010f56; /* neon cyan */
    --primary-light: #66f0ff;
    --primary-dark: #00c2d6;
    --secondary: #f6f9ff;
    --muted: #445066;
    --border: #e6eef7;
    --card: #ffffff;
    --card-hover: #ffffff;
    --success: #39ff14; /* neon green */
    --warning: #ffd166;
    --info: #00d1ff;
    --accent: #ff2bd6; /* neon magenta */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;
}

.dark {
    --bg: #0f172a;
    --bg-rgb: 15, 23, 42;
    --text: #f1f5f9;
    --primary: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    --secondary: #1e293b;
    --muted: #94a3b8;
    --border: #334155;
    --card: #1e293b;
    --card-hover: #2d3748;
    --success: #34d399;
    --warning: #fbbf24;
    --info: #22d3ee;
    --accent: #f9a8d4;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient canvas behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(60rem 60rem at 10% 10%, rgba(0, 229, 255, 0.12), rgba(0,0,0,0) 60%),
        radial-gradient(50rem 50rem at 90% 20%, rgba(255, 43, 214, 0.10), rgba(0,0,0,0) 60%),
        radial-gradient(70rem 70rem at 30% 90%, rgba(57, 255, 20, 0.08), rgba(0,0,0,0) 60%),
        linear-gradient(120deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),1) 100%);
    animation: gradientShift 24s ease-in-out infinite alternate;
}

/* Subtle film grain for texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/feColorMatrix%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 140px 140px;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

.background-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.20), rgba(255, 43, 214, 0.16));
    animation: float 20s infinite ease-in-out;
    filter: blur(8px) saturate(110%);
    mix-blend-mode: lighten;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.15), 0 0 120px rgba(255, 43, 214, 0.12);
}

.background-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.background-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.background-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 30s;
}

.background-shape:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 60%;
    right: 20%;
    animation-delay: -15s;
    animation-duration: 22s;
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.16), rgba(255, 43, 214, 0.10));
}

.background-shape:nth-child(5) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 20%;
    animation-delay: -20s;
    animation-duration: 18s;
    background: linear-gradient(45deg, rgba(57, 255, 20, 0.12), rgba(0, 229, 255, 0.10));
}

/* Additional floating particles */
.animated-background::before,
.animated-background::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    animation: sparkle 8s infinite linear;
}

.animated-background::before {
    top: 20%;
    left: 15%;
    animation-delay: -2s;
}

.animated-background::after {
    top: 70%;
    right: 25%;
    animation-delay: -4s;
    background: rgba(244, 114, 182, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-22px) translateX(12px) rotate(90deg) scale(1.02);
    }
    50% {
        transform: translateY(-42px) translateX(-10px) rotate(180deg) scale(1.03);
    }
    75% {
        transform: translateY(-20px) translateX(-14px) rotate(270deg) scale(1.01);
    }
}

@keyframes gradientShift {
    0% {
        transform: translate3d(0,0,0);
        filter: hue-rotate(0deg) saturate(105%);
    }
    50% {
        transform: translate3d(0,-1.5%,0);
        filter: hue-rotate(10deg) saturate(110%);
    }
    100% {
        transform: translate3d(0,0,0);
        filter: hue-rotate(-8deg) saturate(105%);
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    body::before, body::after { display: none; }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dark theme adjustments for background */
.dark .background-shape:nth-child(1) {
    background: linear-gradient(45deg, rgba(129, 140, 248, 0.08), rgba(249, 168, 212, 0.08));
}

.dark .background-shape:nth-child(2) {
    background: linear-gradient(45deg, rgba(129, 140, 248, 0.06), rgba(249, 168, 212, 0.06));
}

.dark .background-shape:nth-child(3) {
    background: linear-gradient(45deg, rgba(34, 211, 238, 0.06), rgba(129, 140, 248, 0.06));
}

.dark .background-shape:nth-child(4) {
    background: linear-gradient(45deg, rgba(34, 211, 238, 0.04), rgba(129, 140, 248, 0.04));
}

.dark .background-shape:nth-child(5) {
    background: linear-gradient(45deg, rgba(249, 168, 212, 0.03), rgba(34, 211, 238, 0.03));
}

/* Typography */
.font-heading { 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700;
    letter-spacing: -0.025em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

/* Layout */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem;
    width: 100%;
}

/* Image optimization and responsive styles */
.hero-banner {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== CTA Carousel ===== */
.cta-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: rgba(var(--bg-rgb), 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9; /* rectangular shape */
    box-shadow: var(--shadow-md);
}

.cta-viewport { width: 100%; height: 100%; overflow: hidden; }
.cta-track {
    display: flex;
    align-items: stretch;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.cta-slide { min-width: 100%; position: relative; height: 100%; }
.cta-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Ensure 2nd and 3rd carousel images fit without cropping on all screens */
.cta-track .cta-slide:nth-child(2) img,
.cta-track .cta-slide:nth-child(3) img {
    object-fit: contain;
    background: rgba(var(--bg-rgb), 0.85);
}

.cta-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 9999px; /* circular button */
    border: 1px solid var(--border);
    background: rgba(var(--bg-rgb), 0.92);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    color: var(--text);
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    cursor: pointer;
}
.cta-prev { left: 0.75rem; }
.cta-next { right: 0.75rem; }
.cta-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cta-nav:active { transform: translateY(-50%) scale(0.97); }
.dark .cta-nav { background: rgba(30,41,59,0.85); border-color: rgba(255,255,255,0.18); color: #fff; }

.cta-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.75rem; }
.cta-dots button {
    width: 8px; height: 8px; border-radius: 9999px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 220ms ease, background-color 220ms ease;
}
.cta-dots button[aria-selected="true"] { background: var(--primary); transform: scale(1.2); }

@media (max-width: 768px) {
    .cta-carousel { aspect-ratio: 4 / 3; }
    /* show compact arrows on mobile */
    .cta-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border-radius: 9999px;
        font-size: 20px;
        background: rgba(var(--bg-rgb), 0.98);
        color: var(--text);
        border: 1px solid var(--border);
    }
    .about-content { grid-template-columns: 1fr !important; }
    /* tighten spacing under the carousel in CTA on mobile */
    .cta-dots { padding-bottom: 0.25rem; }
    section[aria-label="Get in touch"] { padding-bottom: 2rem; }
    /* mobile: make pagination dots black */
    .cta-dots button { background: #000; border-color: rgba(0,0,0,0.85); }
    .cta-dots button[aria-selected="true"] { background: var(--primary); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-track { transition: none !important; }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 440px;
    object-fit: cover;
}

.service-image {
    width: 100%;
    height: 160px; /* smaller, faster to render */
    margin-top: auto;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(255,43,214,0.08));
}

.service-img {
    width: auto;
    height: 100%;
    object-fit: contain; /* crisp at smaller size */
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* Media queries for responsive images */
@media (max-width: 768px) {
    .hero-image {
        max-height: 260px;
    }
    
    .service-image { height: 140px; }

    /* Make the Enterprise IT Solutions badge even smaller on mobile */
    .hero .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
        gap: 0.35rem;
        border-radius: 9999px;
    }
    .hero .badge i[data-lucide] { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
    .hero-image {
        max-height: 200px;
    }
/* Why illustration */
.why-illustration {
    margin: -1rem auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center; /* center the image horizontally */
    align-items: center;
    position: relative;
    width: min(720px, 100%);
    aspect-ratio: 1 / 1; /* make it a square */
}

.why-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* ensure focal point is centered */
    display: block;
}

@media (max-width: 768px) {
    .why-illustration { border-radius: 12px; width: 86%; }
}

/* Desktop: enforce a clearly centered square size */
@media (min-width: 1024px) {
    .why-illustration {
        width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}
    
    .service-image { height: 120px; }
}

.section { 
    padding: 8rem 0; 
    position: relative;
    overflow: hidden;
}

.section-header { 
    text-align: center; 
    margin-bottom: 5rem;
    position: relative;
}

.section-title { 
    font-size: clamp(2.25rem, 5vw, 3rem); 
    font-weight: 800; 
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.section-subtitle { 
    font-size: 1.25rem; 
    color: var(--muted); 
    max-width: 700px; 
    margin: 0 auto;
    line-height: 1.7;
}

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.hidden { display: none; }

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: var(--border-radius-full);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25) inset, 0 12px 30px rgba(0, 229, 255, 0.35), 0 0 32px rgba(255, 43, 214, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.35) inset, 0 18px 40px rgba(0, 229, 255, 0.45), 0 0 48px rgba(255, 43, 214, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    transition: all var(--transition-normal);
    z-index: -1;
    border-radius: var(--border-radius-full);
}

.btn-outline:hover::before {
    width: 100%;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Card base styles - hover animations handled by unified system */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-rgb), 0.8);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
}

.logo-image, .footer-logo-image {
    height: 3rem;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
}

/* Make footer logo bigger */
.footer-logo-image {
    height: 4.5rem; /* Increased from 3rem to 4.5rem (72px) */
    width: auto;
}

/* Enlarge navbar logo without affecting footer logo */
.logo .logo-image { height: 3.75rem; }
/* Nudge logo slightly upward inside pill for perfect vertical centering */
.logo .logo-image { display: block; transform: translateY(-2px); }

@media (max-width: 768px) {
    .logo-image, .footer-logo-image {
        height: 2.5rem;
    }
    /* Slightly larger navbar logo on mobile too */
    .logo .logo-image { height: 3rem; }
    .logo .logo-image { transform: translateY(-1px); }
    
    /* Footer logo responsive sizing */
    .footer-logo-image {
        height: 3.5rem; /* Slightly smaller on mobile but still bigger than original */
    }
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto; /* center links */
}

/* Push Contact button to far right within nav-content */
.nav-links .btn.btn-primary {
    margin-left: auto;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Consistent link hover/focus */
a:hover, a:focus { outline: none; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* Desktop-only: turn nav links into subtle glass pills on hover */
@media (min-width: 769px) {
    .nav-link {
        display: inline-block;
        padding: 0.7rem 1.8rem; /* longer pill */
        border-radius: 9999px;
        z-index: 0; /* needed for ::before layering */
        font-weight: 600;
        font-size: 1rem;
    }

    /* Disable underline on desktop since we use pill hover */
    .nav-link::after { display: none; }

    .nav-link::before {
        content: '';
        position: absolute;
        inset: -1px -6px; /* extend horizontally for a longer look */
        border-radius: inherit;
        /* flat glass base */
        background: rgba(var(--bg-rgb), 0.75);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        backdrop-filter: blur(14px) saturate(160%);
        border: 1px solid var(--border);
        box-shadow: none;
        transform: scale(0.96);
        opacity: 0.45; /* faint by default */
        transition: opacity var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
        z-index: -1;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        transform: scale(1.08);
        border-color: var(--primary);
        box-shadow: none;
    }

    /* Disable glow layer for flat look */
    .nav-link::after { display: none; }

    /* Dark theme tweak for pill */
    .dark .nav-link::before {
        background: rgba(30, 41, 59, 0.6);
        border: 1px solid rgba(255,255,255,0.14);
        box-shadow: none;
    }
}

/* Subtle weight/spacing on hover for modern feel */
.nav-link:hover { letter-spacing: 0.2px; }

/* Navbar CTA refinement */
.navbar .btn.btn-primary {
    padding: 0.625rem 1.1rem;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2) inset, 0 10px 26px rgba(0, 229, 255, 0.28), 0 0 28px rgba(255, 43, 214, 0.18);
}

.navbar .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.28) inset, 0 16px 34px rgba(0, 229, 255, 0.36), 0 0 40px rgba(255, 43, 214, 0.24);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(var(--bg-rgb), 0.75);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: none; /* flat per user preference */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto; /* push fully to the right */
        align-self: center;
    }
}

/* Ensure toggle button is hidden on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none !important; }
}

/* Mobile menu button interactions */
.mobile-menu-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: none; /* keep flat */
}

.mobile-menu-btn:active {
    transform: translateY(0) scale(0.98);
}

.mobile-menu-btn i {
    transition: transform 220ms ease, color 220ms ease;
}

.mobile-menu-btn:hover i {
    transform: rotate(90deg);
    color: var(--primary);
}

@media (max-width: 768px) {
    /* Center hamburger icon (Lucide) in the circular button */
    .mobile-menu-btn i[data-lucide] {
        width: 22px;
        height: 22px;
        display: inline-block;
        line-height: 1;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(var(--bg-rgb), 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 1001;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu.open {
    right: 0;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-menu-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 0.25s ease, background-size 0.35s ease;
}

.mobile-menu-link:hover {
    color: var(--primary);
    background-size: 100% 2px;
}

/* ===== Mobile-only navbar link font + flat glass animation ===== */
@media (max-width: 768px) {
    .mobile-menu-links { gap: 1rem; }
    .mobile-menu-link {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        letter-spacing: 0.2px;
        font-size: 1.125rem;
        padding: 0.75rem 1rem;
        border-radius: 9999px;
        position: relative;
        overflow: hidden;
        background-image: none; /* remove underline anim base */
    }

    /* Flat glass pill on hover/tap */
    .mobile-menu-link::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: rgba(var(--bg-rgb), 0.75);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
        backdrop-filter: blur(12px) saturate(150%);
        border: 1px solid var(--border);
        opacity: 0;
        transform: scale(0.96);
        transition: opacity var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
        z-index: -1;
    }

    .mobile-menu-link:hover::before,
    .mobile-menu-link:active::before { opacity: 1; transform: scale(1.02); border-color: var(--primary); }

    /* Slide-in with stagger when menu opens */
    .mobile-menu.active .mobile-menu-link {
        opacity: 0;
        transform: translateY(10px);
        animation: mobileLinkIn 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .mobile-menu.active .mobile-menu-link:nth-child(1) { animation-delay: 40ms; }
    .mobile-menu.active .mobile-menu-link:nth-child(2) { animation-delay: 100ms; }
    .mobile-menu.active .mobile-menu-link:nth-child(3) { animation-delay: 160ms; }
    .mobile-menu.active .mobile-menu-link:nth-child(4) { animation-delay: 220ms; }
}

@keyframes mobileLinkIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(244, 114, 182, 0.1));
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(79, 70, 229, 0.1));
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-left { text-align: left; }
.hero-right img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-md); transform: translateY(-10px); }

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

/* Stat card hover handled by unified system */

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 229, 255, 0.10);
    color: var(--primary);
    border-radius: var(--border-radius-md);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: rgba(0, 229, 255, 0.10);
    color: var(--primary);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-stat-label {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Skills Section */
.skills-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tab {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--secondary);
    color: var(--text);
    border: none;
}

.skill-tab.active {
    background: var(--primary);
    color: white;
}

.skill-content {
    display: none;
}

.skill-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
}

.skill-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-level {
    width: 100%;
    height: 0.5rem;
    background: var(--secondary);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--border-radius-full);
    transition: width 1s ease;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--muted);
}

.contact-form {
    background: var(--card);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.footer-about p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg);
    color: var(--text);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-link {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-nav-link:hover {
    color: var(--primary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.footer-contact-text {
    color: var(--muted);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.copyright {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fadeIn { animation: fadeIn 1s ease; }
.animate-slideInLeft { animation: slideInLeft 1s ease; }
.animate-slideInRight { animation: slideInRight 1s ease; }
.animate-zoomIn { animation: zoomIn 1s ease; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s infinite; }

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 6vw, 3.5rem);
    }
    
    .section-title {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1.25rem;
    }
    /* Add extra breathing room between navbar and hero on mobile */
    .hero { padding-top: 10rem; }
    
    .nav-links {
        display: none;
    }
    /* Ensure CTA button in navbar is hidden on mobile */
    .nav-links .btn { display: none !important; }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Mobile: let pill span comfortably */
    .nav-content {
        width: calc(100% - 1.5rem);
        padding: 0.5rem 0.75rem;
    }

    /* Restore logo to normal on mobile */
    .logo {
        width: auto;
        height: auto;
        border-radius: 0;
        padding: 0;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
    }

    .logo .logo-image {
        width: auto;
        height: 3rem; /* keep navbar-specific rule effective */
        transform: translateY(-1px);
        object-fit: contain;
        display: block;
    }

    .hero-split { grid-template-columns: 1fr; }
    .hero-right { display: flex; justify-content: center; }
    .hero-right img { max-width: 100%; }
    /* Slightly reduce upward nudge on smaller screens for balance */
    .hero-right img { transform: translateY(-6px); }
    .hero-left { text-align: center; }
    .hero-buttons { justify-content: center; }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    /* Hide images on 2nd and 3rd solution cards for mobile */
    .services-grid .service-card:nth-child(2) .service-image,
    .services-grid .service-card:nth-child(3) .service-image { display: none; }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skill-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .skill-tab {
        margin-bottom: 0.5rem;
    }
}

/* Remove navbar gradient line on large screens */
@media (min-width: 1024px) {
    .navbar::after { content: none !important; }
}

/* Desktop: nudge hero image slightly higher for balanced composition */
@media (min-width: 1024px) {
    .hero-right img { transform: translateY(-14px); }
}

/* Remove footer gradient line entirely */
.footer .container::before { content: none !important; }

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .hero {
        padding: 10rem 0 3.5rem; /* more top space under navbar */
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 9rem 0 3rem; /* small phones: extra top gap */
    }
    /* Keep the image almost level on very small screens and large */
    .hero-right img { transform: translateY(-4px); max-width: 96%; }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}

.btn-outline {
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: transparent;
    padding: 0.5rem 0;
}

/* Animated bottom accent line for navbar */
/* Remove navbar bottom accent line globally */
.navbar::after { content: none !important; }

/* Force only the pill to show; kill any full-width glass bar on scroll */
.navbar,
.navbar.scrolled {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

@keyframes navAccent {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dark .navbar {
    background: rgba(15, 23, 42, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .navbar.scrolled {
    background: rgba(15, 23, 42, 0.30);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.375rem 0.75rem;
    background: rgba(var(--bg-rgb), 0.65);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    width: 100%;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text);
    margin-left: 0.5rem; /* nudge logo slightly right */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    justify-self: center;
}

/* CTA aligns to far right grid column */
.nav-cta { justify-self: end; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none !important; }
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tech Stack */
.tech-stack { background: var(--secondary); }

/* Unified section header styling */
.section-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.section-header .section-title {
    margin: 0.25rem 0 0.75rem;
}

.section-header .section-subtitle {
    color: var(--muted);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* Subtle separator under section headers */
.section-header::after {
    content: '';
    display: block;
    width: 72px;
    height: 2px;
    margin: 1.25rem auto 0;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.55;
}

/* Trusted By section background image with low opacity */
.trusted-section { position: relative; background: url('images/DSC_8071.webp') center/cover no-repeat; padding-top: 3rem; padding-bottom: 3rem; }
/* Remove background overlay and any opacity effects */
/* Dim the section background image without affecting inner content */
.trusted-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* increase overlay to visibly reduce bg image opacity */
    pointer-events: none;
    z-index: 0;
}
.trusted-section .container,
.trusted-section .section-header,
.trusted-section .tech-grid { position: relative; z-index: 1; }

/* Trusted By images: keep width proportions, slightly reduce vertical size, no opacity */
.trusted-section img {
    height: clamp(28px, 3.2vw, 42px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.35 !important; /* ensure logos/images stay fully visible; dim via overlay instead */
    filter: none !important;
    display: inline-block;
}

.trusted-section img:hover { opacity: 1 !important; }

/* Trusted By section specific hover effects - keeping white background */
.trusted-section .tech-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: white; /* Ensure white background */
}

.trusted-section .tech-card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(0, 229, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    background: white; /* Keep white background on hover */
}

/* Animated border gradient for trusted cards */
.trusted-section .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--accent) 25%, 
        var(--info) 50%, 
        var(--accent) 75%, 
        var(--primary) 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

.trusted-section .tech-card:hover::before {
    opacity: 1;
}

/* Shimmer effect for trusted cards */
.trusted-section .tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.trusted-section .tech-card:hover::after {
    left: 100%;
}

/* Enhanced icon animations for trusted cards - NO TILT */
.trusted-section .tech-card:hover .tech-icon {
    transform: scale(1.15); /* Removed rotate(8deg) - no tilt */
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text enhancement for trusted cards */
.trusted-section .tech-card:hover .tech-name {
    color: var(--primary);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.trusted-section .tech-card:hover .tech-category {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Maintain white background - no transparency or color changes */
.trusted-section .tech-card:hover {
    background: white !important; /* Force white background */
}

/* Maintain original opacity for images while enhancing other elements */
.trusted-section .tech-card:hover img {
    opacity: 1 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Responsive adjustments for trusted section */
@media (max-width: 768px) {
    .trusted-section .tech-card:hover {
        transform: translateY(-3px) scale(1.02);
        background: white !important; /* Keep white on mobile too */
    }
    
    .trusted-section .tech-card:hover .tech-icon {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Tech Stack layout: cards left, image right */
.tech-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* left image, right cards */
    grid-template-areas: 'illustration grid';
    gap: 2.25rem;
    align-items: center;
}

.tech-grid {
    grid-area: grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

.tech-illustration {
    grid-area: illustration;
    justify-self: start; /* align to left edge of container */
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(var(--bg-rgb), 0.6);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: var(--shadow-md);
}

.tech-illustration img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .tech-layout {
        grid-template-columns: 1fr; /* stack on tablet/mobile */
        grid-template-areas:
            'grid'
            'illustration';
        gap: 1.75rem;
    }
    .tech-illustration { max-width: 640px; margin: 0 auto; }
}

/* Mobile optimization: smaller tech stack illustration while preserving clarity */
@media (max-width: 768px) {
    .tech-illustration { max-width: 86%; margin-left: auto; margin-right: auto; }
    .tech-illustration img { width: 100%; height: auto; }
}

@media (max-width: 480px) {
    .tech-illustration { max-width: 78%; }
}

.tech-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Remove background image from cards; image belongs to section */

/* Tech card hover handled by unified system */

.tech-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* Normalize icon treatments */
.tech-icon, .stat-icon-container, .service-badge { border: 1px solid rgba(59, 130, 246, 0.15); }

.tech-name {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tech-category {
    font-size: 0.75rem;
    background: var(--secondary);
    color: var(--muted);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .about-content { 
        grid-template-columns: 1fr 1fr; 
    }
}

/* Mobile-optimized About Us section */
@media (max-width: 768px) {
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
        width: 100%;
    }
    
    .about-text {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .about-card {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* Mobile tab content styling */
    .tab-content {
        padding: 1rem;
        background: rgba(var(--card), 0.6);
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid var(--border);
    }
    
    .tab-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Mobile feature items */
    .features-grid {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
        border-radius: 8px;
        background: rgba(var(--bg-rgb), 0.5);
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .about-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .tabs-list {
        max-width: 280px;
        padding: 0.5rem;
    }
    
    .tab-trigger {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .ceo-card {
        max-width: 280px;
        width: 100%;
        padding: 1.25rem;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    
    .about-card {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
}

/* Extra small screens - ensure perfect centering */
@media (max-width: 360px) {
    .about-content {
        padding: 0 0.25rem;
    }
    
    .about-card {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    
    .ceo-card {
        max-width: 260px;
        width: 100%;
        padding: 1rem;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}

.about-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Tabs */
.tabs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile-optimized tabs for touch interactions */
@media (max-width: 768px) {
    .tabs-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 16px;
        max-width: 320px;
        background: rgba(var(--bg-rgb), 0.8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
}

.tab-trigger {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* Mobile-optimized tab triggers for touch */
@media (max-width: 768px) {
    .tab-trigger {
        padding: 1rem 1.5rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        min-height: 48px; /* Minimum touch target size */
        background: rgba(var(--card), 0.6);
        border: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }
    
    .tab-trigger:hover,
    .tab-trigger:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: rgba(var(--card), 0.8);
    }
    
    .tab-trigger.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
    }
}

.tab-trigger.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.feature-item i { color: var(--success); }

/* CEO Card */
.ceo-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile-optimized CEO card */
@media (max-width: 768px) {
    .ceo-card {
        max-width: 320px;
        width: 100%;
        padding: 1.5rem;
        border-radius: 16px;
        background: rgba(var(--card), 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}

.ceo-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

/* Mobile CEO card element centering */
@media (max-width: 768px) {
    .ceo-avatar {
        margin: 0 auto 1.5rem;
    }
    
    .ceo-name {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .ceo-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .ceo-description {
        text-align: center;
    }
}

.ceo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.ceo-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.ceo-title {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.ceo-description {
    color: var(--muted);
    line-height: 1.6;
}

/* Stats Section */
.stats-section { background: var(--secondary); }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.stat-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); border-color: var(--primary); }

.stat-icon-container {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-number-display {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--info));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    aspect-ratio: 3 / 2; /* larger card footprint */
}

/* Service card hover handled by unified system */

.service-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.service-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-skills {
    margin-bottom: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.skill-item i { color: var(--success); }

.service-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Service bullet points and gallery */
.service-points {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.service-points li { list-style: disc; }

.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.service-gallery img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Lift the button on the first Solutions card slightly */
.services-grid .service-card:first-child .service-btn {
    margin-top: 0.5rem; /* move button up from bottom */
}

/* Skills */
.skills-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .skills-content { grid-template-columns: 1fr 1fr; }
}

/* Mobile-specific skills content adjustments */
@media (max-width: 768px) {
    .skills-content {
        gap: 2rem;
        padding: 0 1rem;
    }
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

/* Single image below all progress bars */
.skills-showcase-image {
    margin-top: 3rem;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(var(--bg-rgb), 0.6);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-showcase-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.skills-showcase-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.skills-showcase-image:hover img {
    transform: scale(1.02);
}

/* Responsive adjustments for showcase image */
@media (max-width: 768px) {
    .skills-showcase-image {
        margin-top: 2rem;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }
    
    .skills-showcase-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        object-position: center;
        display: block;
    }
}

@media (max-width: 480px) {
    .skills-showcase-image {
        margin-top: 1.5rem;
        border-radius: 12px;
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .skills-showcase-image img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
        object-position: center;
        display: block;
        border-radius: 8px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .skills-showcase-image {
        padding: 0 0.25rem;
        margin-top: 1rem;
    }
    
    .skills-showcase-image img {
        max-height: 200px;
    }
}

/* Enhanced visuals: circles and categorized mini-cards */
.skills-extras { display: grid; gap: 2rem; margin-top: 1rem; }
.skill-circles { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 1rem; }
.skill-circle-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; display: flex; align-items: center; justify-content: center; }
.circle { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.circle svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.circle .track { fill: none; stroke: #e9eef5; stroke-width: 8; }
.circle .progress { fill: none; stroke: var(--primary); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: calc(226 - (var(--percent, 0) / 100) * 226); transition: stroke-dashoffset 1.2s ease; }
.circle-label { position: absolute; text-align: center; display: grid; gap: 0.125rem; }
.circle-value { font-weight: 700; color: var(--text); }
.circle-name { font-size: 0.875rem; color: var(--muted); }

.skill-categories { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 1rem; }
.skill-card-mini { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; }
.mini-title { font-weight: 700; margin-bottom: 0.5rem; }
.mini-list { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 0.25rem; }

@media (max-width: 1024px) {
    .skill-circles { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}

@media (max-width: 768px) {
    .skill-circles { grid-template-columns: repeat(3, 1fr); }
    .skill-categories { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .skill-circles { 
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 1.5rem;
    }
    
    /* Center the third circular progress bar (DevOps) */
    .skill-circles .skill-circle-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 200px;
        margin-top: 0.5rem;
    }
}

/* Extra small screens - ensure perfect centering */
@media (max-width: 360px) {
    .skill-circles {
        gap: 1rem;
    }
    
    .skill-circles .skill-circle-card:nth-child(3) {
        max-width: 180px;
    }
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skill-dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    background: #00e5ff; 
    flex-shrink: 0;
}

.skill-percentage {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
    text-align: left;
    margin-left: 0.25rem;
}

.skill-sep {
    color: var(--muted);
    font-weight: 400;
    margin: 0 0.25rem;
}

.skill-name { 
    font-weight: 700; 
    color: #0b1220; 
    text-align: left;
    margin-left: 0.25rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background: #e9eef5;
    border-radius: 50px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 50px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

/* Right-pointing arrowhead at the end of the bar */
/* Remove decorative arrowhead for a cleaner, professional look */
.progress-fill::after { content: none; }

/* Subtle circular watermark behind bars */
.skills-section::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(59,130,246,0.07), rgba(6,182,212,0.05) 60%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* Give Skills section a white banner background similar to achievements */
.skills-section { 
    background: var(--card);
}

/* Why Choose Us Section */
.why-us-section {
    background: linear-gradient(135deg, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--secondary), 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(255, 43, 214, 0.05) 70%, transparent 100%);
    filter: blur(60px);
    z-index: 0;
}

.why-us-section .container {
    position: relative;
    z-index: 1;
}

/* Enhanced layout */
.why-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* left image, right cards */
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

/* Enhanced illustration with floating elements */
.why-layout .why-illustration {
    margin: 0;
    align-self: stretch;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    background: rgba(var(--bg-rgb), 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.why-layout .why-illustration img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.3s ease;
}

.why-layout .why-illustration:hover img {
    transform: scale(1.05);
}

/* Floating elements overlay */
.illustration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(var(--primary), 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
    animation: floatElement 6s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: rgba(255, 43, 214, 0.9);
    box-shadow: 0 8px 24px rgba(255, 43, 214, 0.3);
}

.floating-element.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    background: rgba(57, 255, 20, 0.9);
    box-shadow: 0 8px 24px rgba(57, 255, 20, 0.3);
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* Enhanced steps grid */
.why-layout .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    height: 100%;
}

/* Enhanced step cards */
.why-layout .step-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.why-layout .step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.why-layout .step-card:hover::before {
    transform: scaleX(1);
}

/* Why Choose Us step card hover handled by unified system */

/* Enhanced step badges */
.why-layout .step-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 auto 1rem;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.why-layout .step-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
    border: 2px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.why-layout .step-card:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}

.why-layout .step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text);
}

.why-layout .step-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Feature tags */
.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.feature-tag {
    background: rgba(var(--primary), 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.why-layout .step-card:hover .feature-tag {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Why stats section */
.why-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 3rem 0;
    background: rgba(var(--bg-rgb), 0.5);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.stat-highlight {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(var(--card), 0.6);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 1023px) {
    .why-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-layout .why-illustration {
        width: 90%;
        height: 400px;
        aspect-ratio: 16 / 9;
        margin: 0 auto 2rem;
    }
    
    .why-layout .steps-grid {
        grid-template-rows: none;
        height: auto;
    }
    
    .why-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .why-layout .why-illustration {
        width: 100%;
        height: 300px;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .why-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Step card hover handled by unified system */

.step-badge {
    background: var(--secondary);
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin: 0 auto 1.5rem;
    width: fit-content;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) { .footer-content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-content { grid-template-columns: repeat(4, 1fr); } }

.footer-title {
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--primary); }

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted);
}

.contact-item i {
    color: var(--primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover { color: var(--primary); }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern card hover sheen */
@keyframes cardShine {
    0% { transform: translateX(-140%) skewX(-20deg); opacity: 0.0; }
    20% { opacity: 0.55; }
    50% { opacity: 0.35; }
    100% { transform: translateX(160%) skewX(-20deg); opacity: 0.0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .section { padding: 4rem 0; }
    .hero { padding-top: 5rem; }
    .navbar { top: 0.5rem; left: 0.5rem; right: 0.5rem; }
}

/* ===== UNIFIED CARD ANIMATION SYSTEM ===== */
/* Apply to all card types for consistent experience */
.card,
.service-card,
.tech-card,
.stat-item,
.step-card,
.ceo-card,
.skill-circle-card,
.skill-card-mini,
.stat-highlight {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

/* Base hover state - consistent across all cards */
.card:hover,
.service-card:hover,
.tech-card:hover,
.stat-item:hover,
.step-card:hover,
.ceo-card:hover,
.skill-circle-card:hover,
.skill-card-mini:hover,
.stat-highlight:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 229, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced glow effect for different card types */
.card:hover,
.service-card:hover,
.tech-card:hover,
.stat-item:hover,
.step-card:hover,
.ceo-card:hover,
.skill-circle-card:hover,
.skill-card-mini:hover,
.stat-highlight:hover {
    background: linear-gradient(135deg, 
        rgba(0, 229, 255, 0.03) 0%, 
        rgba(255, 43, 214, 0.02) 50%, 
        rgba(57, 255, 20, 0.03) 100%);
}

/* Animated border gradient */
.card::before,
.service-card::before,
.tech-card::before,
.stat-item::before,
.step-card::before,
.ceo-card::before,
.skill-circle-card::before,
.skill-card-mini::before,
.stat-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--accent) 25%, 
        var(--info) 50%, 
        var(--accent) 75%, 
        var(--primary) 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

.card:hover::before,
.service-card:hover::before,
.tech-card:hover::before,
.stat-item:hover::before,
.step-card:hover::before,
.ceo-card:hover::before,
.skill-circle-card:hover::before,
.skill-card-mini:hover::before,
.stat-highlight:hover::before {
    opacity: 1;
}

/* Shimmer effect overlay */
.card::after,
.service-card::after,
.tech-card::after,
.stat-item::after,
.step-card::after,
.ceo-card::after,
.skill-circle-card::after,
.skill-card-mini::after,
.stat-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.card:hover::after,
.service-card:hover::after,
.tech-card:hover::after,
.stat-item:hover::after,
.step-card:hover::after,
.ceo-card:hover::after,
.skill-circle-card:hover::after,
.skill-card-mini:hover::after,
.stat-highlight:hover::after {
    left: 100%;
}

/* Floating particles effect */
.card:hover,
.service-card:hover,
.tech-card:hover,
.stat-item:hover,
.step-card:hover,
.ceo-card:hover,
.skill-circle-card:hover,
.skill-card-mini:hover,
.stat-highlight:hover {
    position: relative;
}

.card:hover::before,
.service-card:hover::before,
.tech-card:hover::before,
.stat-item:hover::before,
.step-card:hover::before,
.ceo-card:hover::before,
.skill-circle-card:hover::before,
.skill-card-mini:hover::before,
.stat-highlight:hover::before {
    animation: gradientShift 3s ease infinite, particleFloat 2s ease-in-out infinite;
}

/* Keyframe animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(1deg); }
    50% { transform: translateY(-1px) rotate(-1deg); }
    75% { transform: translateY(-3px) rotate(0.5deg); }
}

/* Enhanced icon animations for cards with icons */
.card:hover .tech-icon,
.service-card:hover .service-icon,
.step-card:hover .step-icon,
.stat-item:hover .stat-icon-container,
.ceo-card:hover .ceo-avatar {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text enhancement on hover */
.card:hover h3,
.service-card:hover .service-title,
.tech-card:hover .tech-name,
.step-card:hover .step-title,
.stat-item:hover .stat-title,
.ceo-card:hover .ceo-name {
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Special animations for Why Choose Us step cards */
.why-layout .step-card:hover {
    background: linear-gradient(135deg, 
        rgba(0, 229, 255, 0.08) 0%, 
        rgba(255, 43, 214, 0.05) 50%, 
        rgba(57, 255, 20, 0.08) 100%);
}

/* Enhanced feature tags animation */
.step-card:hover .feature-tag {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

/* Service card specific enhancements */
.service-card:hover .service-img {
    transform: scale(1.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tech card specific enhancements */
.tech-card:hover .tech-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}

/* Stat card specific enhancements */
.stat-item:hover .stat-number-display {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* CEO card specific enhancements */
.ceo-card:hover .ceo-avatar img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card:hover,
    .service-card:hover,
    .tech-card:hover,
    .stat-item:hover,
    .step-card:hover,
    .ceo-card:hover,
    .skill-circle-card:hover,
    .skill-card-mini:hover,
    .stat-highlight:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .service-card,
    .tech-card,
    .stat-item,
    .step-card,
    .ceo-card,
    .skill-circle-card,
    .skill-card-mini,
    .stat-highlight {
        transition: border-color 0.3s ease, background-color 0.3s ease;
    }
    
    .card:hover,
    .service-card:hover,
    .tech-card:hover,
    .stat-item:hover,
    .step-card:hover,
    .ceo-card:hover,
    .skill-circle-card:hover,
    .skill-card-mini:hover,
    .stat-highlight:hover {
        transform: none;
    }
    
    .card::before,
    .service-card::before,
    .tech-card::before,
    .stat-item::before,
    .step-card::before,
    .ceo-card::before,
    .skill-circle-card::before,
    .skill-card-mini::before,
    .stat-highlight::before {
        animation: none;
    }
}

/* ===== Modern Footer — themed + gentle animation ===== */
.footer {
	position: relative;
	background: rgba(var(--bg-rgb), 0.65);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-top: 1px solid var(--border);
}

/* Soft ambient glows in footer background */
.footer::before,
.footer::after {
	content: '';
	position: absolute;
	pointer-events: none;
	filter: blur(60px);
	opacity: 0.35;
}

.footer::before {
	inset: -20% -30% auto -30%;
	height: 180px;
	background:
		radial-gradient(60% 120% at 15% 40%, rgba(0,229,255,0.18), rgba(0,0,0,0) 60%),
		radial-gradient(50% 120% at 85% 35%, rgba(249,168,212,0.18), rgba(0,0,0,0) 60%);
}

.footer::after {
	left: 10%; right: 10%; bottom: 0; height: 140px;
	background: radial-gradient(60% 100% at 50% 100%, rgba(129,140,248,0.14), rgba(0,0,0,0) 70%);
}

/* Animated top accent line */
.footer .container { position: relative; }
.footer .container::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), var(--accent), var(--info));
	background-size: 200% 100%;
	animation: footerAccent 12s linear infinite;
}

@keyframes footerAccent {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Staggered entrance for columns */
.footer-content .footer-section { 
	animation: fadeInUp 0.6s ease both; 
}
.footer-content .footer-section:nth-child(2) { animation-delay: 0.06s; }
.footer-content .footer-section:nth-child(3) { animation-delay: 0.12s; }
.footer-content .footer-section:nth-child(4) { animation-delay: 0.18s; }

/* Links: subtle underline reveal */
.footer-links a,
.footer-bottom-links a {
	position: relative;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: color 0.25s ease, background-size 0.35s ease;
}

.footer-links a:hover,
.footer-bottom-links a:hover { 
	color: var(--primary); 
	background-size: 100% 2px; 
}

/* Social icons: glassy + glow hover */
.social-icon {
	background: rgba(var(--bg-rgb), 0.75);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.social-icon:hover {
	transform: translateY(-3px) scale(1.03);
	background: var(--primary);
	color: #fff;
	box-shadow: 0 8px 28px rgba(0, 229, 255, 0.25), 0 0 28px rgba(255, 43, 214, 0.18);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.footer-content .footer-section { animation: none !important; }
	.footer .container::before { animation: none !important; }
}

/* ===== Glass Cursor (themed) ===== */
/* Keep native cursor visible */
body.use-custom-cursor {
    cursor: auto;
}

.glass-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    margin-left: -12px; /* center on pointer */
    margin-top: -12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 2px 6px rgba(0,0,0,0.08);
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0) scale(1);
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, transform 30ms linear;
    mix-blend-mode: multiply; /* stay visible on white backgrounds */
}

/* sheen + click ring */
.glass-cursor::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transform: scale(0.8);
}

.glass-cursor::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(40% 40% at 30% 30%, rgba(255,255,255,0.45), rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.glass-cursor__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    box-shadow: none;
    opacity: 0.85;
    transition: transform 120ms ease, opacity 120ms ease;
}

/* Cursor states */
.glass-cursor.is-hidden { opacity: 0; transition: opacity 0.25s ease; }
.glass-cursor.is-active {
    transform: scale(0.95);
}
.glass-cursor.is-link {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.14);
}
.glass-cursor.is-link .glass-cursor__dot { transform: scale(0.8); opacity: 1; }

/* Click pulse animation using the ring (::before) */
@keyframes cursorPulse {
    0% { transform: scale(0.7); opacity: 0.35; }
    70% { transform: scale(1.5); opacity: 0.08; }
    100% { transform: scale(1.7); opacity: 0; }
}

.glass-cursor.is-active::before {
    animation: cursorPulse 420ms ease-out;
}

/* Dark theme adjustments for cursor for better contrast */
.dark .glass-cursor {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.25);
    mix-blend-mode: normal;
}

.dark .glass-cursor__dot {
    background: rgba(255,255,255,0.85);
}

/* Respect reduced motion and small screens */
@media (prefers-reduced-motion: reduce) {
    .glass-cursor { display: none !important; }
    body.use-custom-cursor { cursor: auto; }
}

/* Keep enabled on small screens if device is not touch */
@media (pointer: coarse) {
    .glass-cursor { display: none !important; }
    body.use-custom-cursor { cursor: auto; }
}