/**
 * HomeHub Smart Solutions
 * Premium Bold Theme - Optimized for Performance
 */

/* Fonts loaded via HTML <link> for better performance */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Foundation - Rich Dark */
    --black: #000000;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --gray-950: #030712;

    /* Brand - Vibrant & Premium */
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --accent: #06B6D4;
    --accent-light: #22D3EE;
    --accent-dark: #0891B2;
    --coral: #F43F5E;
    --coral-light: #FB7185;
    --amber: #F59E0B;
    --emerald: #10B981;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-warm: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%);
    --gradient-dark: linear-gradient(180deg, var(--gray-900) 0%, var(--gray-950) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 80px;
    --space-4xl: 120px;

    /* Layout */
    --container: 1280px;
    --container-narrow: 800px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    /* Effects */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.3s;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 50px rgba(124, 58, 237, 0.25);
    --shadow-glow-accent: 0 0 50px rgba(6, 182, 212, 0.25);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--primary-dark);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

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

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-dark {
    background: var(--gray-950);
    color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: var(--gray-400);
}

.section-dark .section-label::before {
    background: var(--accent);
}

.section-header {
    margin-bottom: var(--space-3xl);
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(40px, 6vw, 72px);
}

.section-title-sm {
    font-size: clamp(32px, 4vw, 48px);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin-top: var(--space-md);
}

.section-dark .section-subtitle,
.section-dark .split-text {
    color: var(--gray-400);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--primary);
}

/* Ghost button on dark backgrounds */
.cta-section .btn-ghost,
.section-dark .btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-ghost:hover,
.section-dark .btn-ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary:focus-visible {
    outline-color: var(--primary-light);
}

.btn-secondary:focus-visible {
    outline-color: var(--accent-light);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: all var(--duration) var(--ease);
}

.header.scrolled {
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--gray-900);
    line-height: 1.2;
    margin-right: var(--space-xl);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--gray-800);
    font-size: 15px;
    font-weight: 700;
    transition: color var(--duration) var(--ease);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width var(--duration) var(--ease);
    border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    margin-left: var(--space-lg);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: all var(--duration) var(--ease);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius);
}

/* ==========================================================================
   Hero - Bold & Creative
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-4xl) 0;
    background: var(--off-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-gradient-2 {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    animation: pulse 10s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-xl);
    padding: 10px 20px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.hero-title {
    font-size: clamp(48px, 7vw, 88px);
    line-height: 1;
    margin-bottom: var(--space-xl);
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
}

.hero-card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.hero-services {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero-service {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--off-white);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}

.hero-service:hover {
    background: var(--gray-100);
    transform: translateX(8px);
}

.hero-service-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.hero-service-text h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.hero-service-text p {
    font-size: 14px;
    color: var(--gray-800);
    margin: 0;
}

/* Floating elements */
.float-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: float 6s ease-in-out infinite;
}

.float-badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.float-badge-2 {
    bottom: 5%;
    left: -60px;
    animation-delay: 2s;
}

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

/* ==========================================================================
   Services Grid - Bold Cards
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-card:hover .service-icon,
.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-link {
    color: var(--white);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--primary);
    transition: all var(--duration) var(--ease);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 24px;
    margin-bottom: var(--space-md);
    transition: color var(--duration) var(--ease);
}

.service-desc {
    color: var(--gray-800);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
    transition: color var(--duration) var(--ease);
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--duration) var(--ease);
}

/* Service cards in dark sections */
.section-dark .service-card {
    background: var(--gray-900);
    border-color: var(--gray-800);
}

.section-dark .service-card .service-desc {
    color: var(--gray-400);
}

.section-dark .service-card .service-title {
    color: var(--white);
}

.section-dark .service-card:hover {
    border-color: var(--primary);
}

/* ==========================================================================
   Split Sections
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

.split-content {
    max-width: 520px;
}

.split-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.split-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-dark .split-label {
    color: var(--accent);
}

.split-title {
    font-size: clamp(36px, 4vw, 56px);
    margin-bottom: var(--space-lg);
}

.split-text {
    font-size: 18px;
    color: var(--gray-800);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gray-100);
}

.split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
}

/* ==========================================================================
   Feature List
   ========================================================================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 17px;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--emerald);
}

.section-dark .feature-item {
    color: var(--gray-300);
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
    background: var(--gray-950);
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 64px);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-featured {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-featured::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 200px;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-lg);
}

.testimonial-quote {
    font-size: 24px;
    line-height: 1.6;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

.testimonial-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 17px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--gray-800);
}

/* Testimonial Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--duration) var(--ease);
}

.testimonial-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.review-link {
    text-decoration: none;
    display: block;
}

.review-link:hover .testimonial-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: var(--gray-950);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12), transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(40px, 6vw, 64px);
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-text,
.cta-subtitle {
    font-size: 20px;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-brand);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-desc {
    color: var(--gray-300);
    font-size: 15px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--duration) var(--ease);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-links li {
    color: var(--gray-300);
    font-size: 15px;
    transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-900);
}

.copyright {
    font-size: 14px;
    color: var(--gray-300);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 14px;
    color: var(--gray-300);
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    padding: calc(var(--space-4xl) + 40px) 0 var(--space-3xl);
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.06), transparent 60%);
}

.page-header .container {
    position: relative;
}

.page-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.page-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.page-title {
    font-size: clamp(48px, 8vw, 80px);
    margin-bottom: var(--space-lg);
}

.page-subtitle {
    font-size: 20px;
    color: var(--gray-800);
    max-width: 600px;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(50% + 36px);
    width: calc(100% - 72px + var(--space-xl));
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    width: 72px;
    height: 72px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto var(--space-lg);
    position: relative;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

.process-step p {
    font-size: 15px;
    color: var(--gray-800);
}

/* ==========================================================================
   Video Container
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-900);
    box-shadow: var(--shadow-soft);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 18px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-300);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2327272A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 56px;
}

/* ==========================================================================
   Contact Layout
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-label {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    display: block;
}

.contact-value {
    color: var(--gray-800);
    font-size: 17px;
}

.contact-value a {
    color: var(--gray-800);
}

.contact-value a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Guardian Hero
   ========================================================================== */
.guardian-hero {
    background: var(--gradient-brand);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.guardian-hero h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--white);
    margin-bottom: var(--space-md);
}

.guardian-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   Legal Content
   ========================================================================== */
.legal-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 28px;
    margin: var(--space-2xl) 0 var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content ul li {
    margin-bottom: var(--space-sm);
}

.legal-content strong {
    color: var(--gray-900);
}

/* ==========================================================================
   Web & Branding Page Specific
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gray-100);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration) var(--ease);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-2xl);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

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

.portfolio-overlay h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.portfolio-overlay p {
    color: var(--gray-300);
    font-size: 15px;
}

/* Case Study Cards */
.case-study-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.case-study:nth-child(even) {
    direction: rtl;
}

.case-study:nth-child(even) > * {
    direction: ltr;
}

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

.case-study-browser {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.case-study-browser-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-800);
}

.case-study-browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-600);
}

.case-study-browser-dot:first-child { background: #FF5F57; }
.case-study-browser-dot:nth-child(2) { background: #FFBD2E; }
.case-study-browser-dot:nth-child(3) { background: #28CA41; }

.case-study-browser-url {
    flex: 1;
    margin-left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-700);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--gray-400);
}

.case-study-screenshot {
    aspect-ratio: 16/10;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-screenshot svg {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.case-study-content h3 {
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: var(--space-sm);
}

.case-study-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.case-study-desc {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.case-study-journey {
    margin-bottom: var(--space-xl);
}

.case-study-journey h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.journey-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.journey-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-700);
}

.journey-step svg {
    color: var(--primary);
    flex-shrink: 0;
}

.case-study-meta {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.case-study-stat {
    text-align: left;
}

.case-study-stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.case-study-stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--primary);
    margin-top: var(--space-lg);
}

.case-study-link:hover {
    gap: var(--space-md);
}

/* App mockup styles */
.case-study-app {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.app-mockup {
    width: 200px;
    background: var(--gray-900);
    border-radius: 32px;
    padding: 12px;
    box-shadow: var(--shadow-2xl);
}

.app-mockup-screen {
    background: var(--gradient-brand);
    border-radius: 24px;
    aspect-ratio: 9/19;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-mockup-screen svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 991px) {
    .case-study {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .case-study:nth-child(even) {
        direction: ltr;
    }

    .case-study-meta {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.pricing-card.pricing-dark {
    background: var(--gray-900);
    border-color: var(--gray-800);
}

.pricing-card.pricing-dark .pricing-label {
    color: var(--accent-light);
}

.pricing-card.pricing-dark .pricing-name,
.pricing-card.pricing-dark .pricing-price {
    color: var(--white);
}

.pricing-card.pricing-dark .pricing-price span {
    color: var(--gray-400);
}

.pricing-card.pricing-dark .pricing-features li {
    border-color: var(--gray-800);
    color: var(--gray-300);
}

.pricing-card.pricing-dark .btn-outline {
    border-color: var(--gray-600);
    color: var(--white);
}

.pricing-card.pricing-dark .btn-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--gray-900);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured.pricing-dark {
    position: relative;
}

.pricing-card.featured.pricing-dark::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-brand);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.pricing-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.pricing-name {
    font-size: 28px;
    margin-bottom: var(--space-md);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.pricing-price span {
    font-size: 18px;
    color: var(--gray-800);
}

.pricing-features {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-features svg {
    color: var(--emerald);
    flex-shrink: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-visual {
        max-width: 500px;
    }
}

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-brand {
        grid-column: span 2;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 991px) {
    .nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav.open {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }

    .nav.open .nav-list {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }

    .nav.open .nav-link {
        font-size: 28px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .split-reverse {
        direction: ltr;
    }

    .split-content {
        max-width: none;
    }

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

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

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

@media (max-width: 767px) {
    :root {
        --space-4xl: 80px;
        --space-3xl: 56px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .hero {
        min-height: auto;
        padding-top: 140px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .float-badge {
        display: none;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@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;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .header, .footer, .cta-section {
        display: none;
    }
}

/* ==========================================================================
   iOS & Mobile Optimizations
   ========================================================================== */
/* iOS Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
    .header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .footer {
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
    }

    .cta-section {
        padding-bottom: calc(var(--space-4xl) + env(safe-area-inset-bottom));
    }
}

/* Touch-friendly tap targets (min 44x44px) */
@media (pointer: coarse) {
    .nav-link {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 48px;
    }

    .btn-sm {
        min-height: 44px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .footer-links a {
        padding: 8px 0;
        display: block;
    }
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* iOS momentum scrolling */
.nav.open {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Better tap highlighting */
a, button {
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.15);
}

/* Prevent text selection on buttons */
.btn {
    -webkit-user-select: none;
    user-select: none;
}

/* ==========================================================================
   Premium Visual Effects & Polish
   ========================================================================== */
/* Subtle gradient border effect on cards */
.service-card {
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--gray-200), var(--gray-100)) border-box;
    border: 1px solid transparent;
}

.service-card:hover {
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        var(--gradient-brand) border-box;
}

/* Glow effect on primary buttons */
.btn-primary {
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Animated underline for links */
.nav-link::after {
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
    width: 100%;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Premium testimonial card styling */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.testimonial-card:hover::before,
.review-link:hover .testimonial-card::before {
    transform: scaleX(1);
}

/* Stats number shimmer effect */
.stat-number {
    position: relative;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero card floating animation enhancement */
.hero-card {
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Process step pulse animation */
.process-number {
    position: relative;
}

.process-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-brand);
    opacity: 0;
    z-index: -1;
    animation: processPulse 2s ease-out infinite;
}

@keyframes processPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Smooth page header gradient */
.page-header {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

/* Mobile menu animation */
.nav.open {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* CTA section enhanced glow */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.08), transparent 60%);
    pointer-events: none;
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */
/* GPU acceleration for animations */
.service-card,
.testimonial-card,
.btn,
.hero-card,
.float-badge,
.nav-link::after {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Contain layout for performance */
.services-grid,
.testimonials-grid,
.process-grid,
.stats-grid {
    contain: layout style;
}

/* Content visibility for below-fold sections */
.section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ==========================================================================
   Focus Visible Enhancement
   ========================================================================== */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius);
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Premium Tech Company Effects
   ========================================================================== */
/* Page load animation */
body {
    animation: pageLoad 0.6s ease-out;
}

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

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* Enhanced glassmorphism header */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

/* Magnetic button effect */
.btn-primary {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-brand);
    border-radius: inherit;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

/* Hero particle effect background */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

/* Glowing border on hero card */
.hero-card {
    position: relative;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-brand);
    border-radius: calc(var(--radius-lg) + 1px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hero-card:hover::after {
    opacity: 0.3;
    filter: blur(10px);
}

/* Tech grid background for sections */
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Animated gradient text on titles */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

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

/* Enhanced service card hover */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-8px) rotateX(2deg);
}

/* Stats counter glow */
.stat-number {
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

/* Premium testimonial quote styling */
.testimonial-quote {
    position: relative;
}

.testimonial-card .testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 80px;
    font-family: var(--font-display);
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

/* CTA section with animated particles */
.cta-section {
    position: relative;
}

.cta-section::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: ctaPulse 6s ease-in-out infinite alternate;
}

@keyframes ctaPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Smooth scroll reveal for elements */
.service-card,
.testimonial-card,
.process-step,
.split-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card.visible,
.testimonial-card.visible,
.process-step.visible,
.split-image.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu slide animation */
@media (max-width: 991px) {
    .nav.open {
        animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .nav.open .nav-link {
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    .nav.open .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav.open .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .nav.open .nav-link:nth-child(3) { animation-delay: 0.2s; }
    .nav.open .nav-link:nth-child(4) { animation-delay: 0.25s; }
    .nav.open .nav-link:nth-child(5) { animation-delay: 0.3s; }
    .nav.open .nav-link:nth-child(6) { animation-delay: 0.35s; }
    .nav.open .nav-link:nth-child(7) { animation-delay: 0.4s; }
    .nav.open .nav-link:nth-child(8) { animation-delay: 0.45s; }

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

/* Premium hover state for images */
.split-image {
    position: relative;
    overflow: hidden;
}

.split-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.split-image:hover::before {
    opacity: 1;
}

.split-image img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-image:hover img {
    transform: scale(1.05);
}

/* Footer glow effect */
.footer::before {
    background: var(--gradient-brand);
    height: 2px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* Phone number pulse on header CTA */
.header-cta {
    position: relative;
}

.header-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    animation: ctaPulseRing 2s infinite;
}

@keyframes ctaPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    border-top: 1px solid var(--gray-700);
    padding: var(--space-lg);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#cookieBanner.visible {
    transform: translateY(0);
}

#cookieBanner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text strong {
    color: var(--white);
    font-size: 16px;
    display: block;
    margin-bottom: var(--space-xs);
}

.cookie-text p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary);
    color: var(--white);
}

.cookie-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: var(--gray-700);
    color: var(--white);
}

.cookie-btn-secondary:hover {
    background: var(--gray-600);
}

.cookie-link {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    padding: 10px;
}

.cookie-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    #cookieBanner {
        padding: var(--space-md);
    }

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

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}
