/* ===== Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #14b8a6 0%, #6366f1 100%);
    
    /* #12 - Elevation System (5 levels) */
    --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --elevation-2: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
    --elevation-3: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --elevation-4: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --elevation-5: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Legacy shadows */
    --shadow: var(--elevation-5);
    --shadow-sm: var(--elevation-2);
    
    /* #63 - Vertical Rhythm Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    
    --radius: 16px;
    --radius-sm: 8px;
    
    /* #64 - Fluid Typography Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 4.5rem);
    
    /* #69 - Border Radius Scale */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* #71 - Shadow Tints with Brand Colors */
    --shadow-primary: 0 10px 30px rgba(99, 102, 241, 0.3);
    --shadow-secondary: 0 10px 30px rgba(236, 72, 153, 0.3);
    --shadow-accent: 0 10px 30px rgba(20, 184, 166, 0.3);
    
    /* #16 - Color Mix for Dynamic Variations */
    --primary-hover: color-mix(in srgb, var(--primary) 85%, white);
    --primary-muted: color-mix(in srgb, var(--primary) 30%, transparent);
    
    /* #74 - Z-Index Scale */
    --z-below: -1;
    --z-base: 0;
    --z-above: 10;
    --z-dropdown: 20;
    --z-sticky: 30;
    --z-fixed: 40;
    --z-modal-backdrop: 50;
    --z-modal: 60;
    --z-popover: 70;
    --z-tooltip: 80;
    --z-maximum: 9999;
    
    /* #75 - Transition Timing Consistency */
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 300ms;
    --duration-slower: 500ms;
    
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* #78 - Consistent Opacity Scale */
    --opacity-0: 0;
    --opacity-5: 0.05;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-100: 1;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.65; /* #61 - Optimal readability */
    overflow-x: hidden;
    position: relative;
}

/* #11 - Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* #14 - Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    border: 2px solid var(--dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--secondary) 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

/* #70 - Overflow Prevention */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* #68 - Margin Collapse Handling */
h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin-top: 0;
}

/* #69 - Hyphenation Settings */
p, li {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* #67 - List Styling with Custom Markers */
ul, ol {
    padding-left: 1.5em;
}

ul li::marker {
    color: var(--primary);
    font-size: 1.2em;
}

ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* #2 - Icon Utility Classes */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* #76 - Proper Cursor States */
button, 
[role="button"],
.btn {
    cursor: pointer;
}

button:disabled,
.btn:disabled,
.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.loading,
[aria-busy="true"] {
    cursor: wait;
}

a:not([href]) {
    cursor: not-allowed;
}

/* #79 - Gradient Text Effects */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* #80 - Aspect Ratio for Media Containers */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

.aspect-wide {
    aspect-ratio: 21 / 9;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
    .aspect-square::before {
        content: '';
        display: block;
        padding-top: 100%;
    }
    
    .aspect-video::before {
        content: '';
        display: block;
        padding-top: 56.25%;
    }
    
    .aspect-portrait::before {
        content: '';
        display: block;
        padding-top: 133.33%;
    }
    
    .aspect-wide::before {
        content: '';
        display: block;
        padding-top: 42.86%;
    }
}

/* #15 - Gradient Border Effects */
.gradient-border {
    position: relative;
    background: var(--dark-light);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-1);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* #15 - Animated Gradient Border */
.gradient-border-animated::before {
    background: linear-gradient(
        var(--gradient-angle, 0deg),
        var(--primary),
        var(--secondary),
        var(--accent),
        var(--primary)
    );
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    to {
        --gradient-angle: 360deg;
    }
}

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* #18 - Dark Mode Support with System Preference */
/* Default is dark theme (as designed) */

/* Light theme (when system prefers light or manually toggled) */
@media (prefers-color-scheme: light) {
    :root {
        --dark: #ffffff;
        --dark-light: #f8fafc;
        --light: #0f172a;
        --gray: #475569;
        --gray-light: #64748b;
    }
    
    body::before {
        opacity: 0.2; /* Lighter noise on light backgrounds */
    }
    
    .navbar {
        background: rgba(255, 255, 255, 0.7);
        border-bottom-color: rgba(0, 0, 0, 0.05);
    }
    
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .service-card {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.08);
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    ::-webkit-scrollbar-thumb {
        border-color: #f1f5f9;
    }
}

/* Manual light theme override */
[data-theme="light"] {
    --dark: #ffffff;
    --dark-light: #f8fafc;
    --light: #0f172a;
    --gray: #475569;
    --gray-light: #64748b;
    --white: #0f172a;
}

[data-theme="light"] body::before {
    opacity: 0.2;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .service-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    border-color: #f1f5f9;
}

/* #20 - View Transitions API for Smooth Page Transitions */
@supports (view-transition-name: none) {
    /* Define view transition names for key elements */
    .navbar {
        view-transition-name: navbar;
    }
    
    .hero {
        view-transition-name: hero;
    }
    
    .service-card {
        view-transition-name: service-card;
    }
    
    /* Default transition animations */
    ::view-transition-old(root) {
        animation: fade-out var(--duration-slower) var(--ease-out);
    }
    
    ::view-transition-new(root) {
        animation: fade-in var(--duration-slower) var(--ease-out);
    }
    
    /* Navbar transition */
    ::view-transition-old(navbar),
    ::view-transition-new(navbar) {
        animation-duration: var(--duration-slow);
    }
    
    /* Hero transition */
    ::view-transition-old(hero),
    ::view-transition-new(hero) {
        animation-duration: var(--duration-slower);
    }
    
    /* Service cards transition */
    ::view-transition-old(service-card),
    ::view-transition-new(service-card) {
        animation-duration: var(--duration-slow);
        animation-timing-function: var(--ease-out);
    }
    
    @keyframes fade-out {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
        }
    }
    
    @keyframes fade-in {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* #81 - Custom Placeholder Styling */
::placeholder {
    color: var(--gray);
    opacity: 0.7;
    font-size: var(--text-base);
    font-family: inherit;
}

.hero-search input::placeholder {
    color: var(--gray-light);
    opacity: 0.8;
}

/* #82 - Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--dark-light) inset !important;
    -webkit-text-fill-color: var(--light) !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill::first-line {
    font-family: inherit;
    font-size: var(--text-base);
}

/* Firefox autofill */
input:-moz-autofill,
input:-moz-autofill-preview {
    filter: none;
}

/* #83 - Clear Button for Search Input */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-clear {
    position: absolute;
    right: 60px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.search-clear svg {
    width: 16px;
    height: 16px;
    color: var(--gray-light);
}

/* #17 - Backdrop Blur Fallbacks */
@supports not (backdrop-filter: blur(20px)) {
    .navbar {
        background: rgba(15, 23, 42, 0.98); /* Solid fallback */
    }
    
    .navbar.scrolled {
        background: rgba(15, 23, 42, 1);
    }
}

@supports not (backdrop-filter: saturate(180%)) {
    .navbar {
        backdrop-filter: blur(20px); /* Fallback without saturate */
    }
}


/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.6); /* #13 - Glassmorphism */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* #13 - Enhanced glassmorphism on scroll */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: var(--elevation-3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--gray-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 24px;
}

.greeting {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
}

.brand {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    transition: all var(--duration-normal) var(--ease-in-out);
    position: relative;
    overflow: hidden;
}

/* #19 - Sophisticated Hover with Glow Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.3) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5), 
                0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Light mode: btn-secondary needs solid background for visibility */
[data-theme="light"] .btn-secondary {
    background: rgba(15, 23, 42, 0.1);
    color: var(--light);
    border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.15);
    border-color: rgba(15, 23, 42, 0.3);
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--dark-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-light);
    font-size: 1.125rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease-in-out);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    box-shadow: var(--elevation-2);
}

/* #19 - Magnetic/Glow Hover Effect */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(99, 102, 241, 0.15) 0%,
                transparent 60%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    pointer-events: none;
    z-index: 0;
}

.service-card:hover:not(.coming-soon) {
    transform: translateY(-8px);
    box-shadow: var(--elevation-4), 
                0 0 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover:not(.coming-soon)::after {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Gradient border variant */
.service-card.gradient-border {
    border: none;
}

.service-card.gradient-border-animated {
    border: none;
    box-shadow: var(--shadow-primary);
}

.service-card.featured {
    border-color: rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, var(--dark) 100%);
}

.service-card.coming-soon {
    opacity: 0.7;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    box-shadow: var(--elevation-3);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-light);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.card-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Only move arrow icon, not lock icon */
.service-card:hover .card-link svg {
    transform: translateX(4px);
}

/* Prevent lock icon from moving on hover */
.service-card:hover .card-link svg:has(use[href*="icon-lock"]) {
    transform: none;
}

.card-link.disabled {
    color: var(--gray);
    cursor: default;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* #62 - Enhanced uppercase spacing */
    /* #77 - Subtle Badge Animations */
    animation: badge-pulse 3s ease-in-out infinite;
    transition: all var(--duration-normal) var(--ease-out);
}

/* #77 - Badge Hover Animation */
.service-card:hover .card-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.card-badge.hot {
    background: rgba(236, 72, 153, 0.2);
    color: var(--secondary);
    animation: badge-pulse-hot 2s ease-in-out infinite;
}

@keyframes badge-pulse-hot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 rgba(236, 72, 153, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    }
}

.card-badge.hot {
    background: rgba(236, 72, 153, 0.2);
    color: var(--secondary);
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background: var(--dark);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.about p {
    color: var(--gray-light);
    font-size: 1.125rem;
    margin-bottom: 48px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--dark-light);
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.contact p {
    color: var(--gray-light);
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.footer-copy {
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: none;
    }

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

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

    .about-stats {
        gap: 40px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .service-card {
        padding: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 24px;
        font-size: 0.875rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}


/* Accessibility: Enhanced contrast mode */
@media (prefers-contrast: more) {
    :root {
        --gray: #333;
        --gray-light: #555;
        --gray-dark: #111;
    }
    body { color: #000; }
    a { text-decoration: underline; }
}


/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Keep scroll-triggered elements visible */
    .animate-on-scroll,
    .animate-on-scroll.animated,
    [class*="animate"],
    .fade-in,
    .fade-up,
    .fade-down,
    .slide-in,
    .slide-up {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}


/* Accessibility: Visible focus indicators */
:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, 
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: 2px;
    border-radius: 2px;
}


/* Print Styles */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a, a:visited { text-decoration: underline; }
    a[href]::after { content: " (" attr(href) ")"; }
    abbr[title]::after { content: " (" attr(title) ")"; }
    img { page-break-inside: avoid; }
    h2, h3 { page-break-after: avoid; }
    p { orphans: 3; widows: 3; }
    nav, footer, .no-print, .btn, button { display: none !important; }
    body { font-size: 12pt; line-height: 1.5; }
}
