/* ============================================
   WEB DESIGN PAGE - ENHANCED UI/UX STYLES
   Modern, conversion-focused design system
   ============================================ */

/* ============================================
   CSS VARIABLES & THEMING
   ============================================ */
:root {
    /* Primary Colors */
    --wd-primary: #7c3aed;
    --wd-primary-dark: #5b21b6;
    --wd-primary-light: #a78bfa;
    --wd-primary-bg: rgba(124, 58, 237, 0.05);

    /* Secondary Colors */
    --wd-secondary: #3b82f6;
    --wd-secondary-dark: #2563eb;
    --wd-secondary-light: #60a5fa;

    /* Neutral Colors */
    --wd-gray-50: #f9fafb;
    --wd-gray-100: #f3f4f6;
    --wd-gray-200: #e5e7eb;
    --wd-gray-300: #d1d5db;
    --wd-gray-400: #9ca3af;
    --wd-gray-500: #6b7280;
    --wd-gray-600: #4b5563;
    --wd-gray-700: #374151;
    --wd-gray-800: #1f2937;
    --wd-gray-900: #111827;

    /* Accent Colors */
    --wd-success: #10b981;
    --wd-warning: #f59e0b;
    --wd-error: #ef4444;
    --wd-info: #06b6d4;

    /* Spacing System (8px grid) */
    --wd-space-xs: 0.5rem;
    --wd-space-sm: 1rem;
    --wd-space-md: 1.5rem;
    --wd-space-lg: 2rem;
    --wd-space-xl: 3rem;
    --wd-space-2xl: 4rem;
    --wd-space-3xl: 6rem;
    --wd-space-4xl: 8rem;

    /* Typography */
    --wd-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wd-font-display: 'Inter', sans-serif;

    /* Font Sizes */
    --wd-text-xs: 0.75rem;
    --wd-text-sm: 0.875rem;
    --wd-text-base: 1rem;
    --wd-text-lg: 1.125rem;
    --wd-text-xl: 1.25rem;
    --wd-text-2xl: 1.5rem;
    --wd-text-3xl: 1.875rem;
    --wd-text-4xl: 2.25rem;
    --wd-text-5xl: 3rem;
    --wd-text-6xl: 3.75rem;

    /* Shadows */
    --wd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --wd-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --wd-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --wd-shadow-purple: 0 10px 40px rgba(124, 58, 237, 0.15);

    /* Border Radius */
    --wd-radius-sm: 0.375rem;
    --wd-radius-md: 0.5rem;
    --wd-radius-lg: 0.75rem;
    --wd-radius-xl: 1rem;
    --wd-radius-2xl: 1.5rem;
    --wd-radius-full: 9999px;

    /* Transitions */
    --wd-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --wd-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --wd-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Layers */
    --wd-z-base: 0;
    --wd-z-dropdown: 100;
    --wd-z-sticky: 200;
    --wd-z-overlay: 300;
    --wd-z-modal: 400;
    --wd-z-popover: 500;
    --wd-z-tooltip: 600;
}

/* ============================================
   GLOBAL STYLES & RESETS
   ============================================ */
* {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, var(--wd-gray-50) 0%, #ffffff 100%);
    font-family: var(--wd-font-primary);
    color: #2d3748; /* Darker text for better contrast */
    line-height: 1.8; /* Better readability */
    font-size: 16px;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove all inline styles override */
.services-section,
.benefits-section,
.process-section,
.cta-section {
    padding: var(--wd-space-4xl) 0 !important;
}

/* ============================================
   ENHANCED HEADER & NAVIGATION
   ============================================ */
/* Note: Header is dynamically loaded via navigation-inline.js */
/* Ensure it matches homepage height */
#header {
    min-height: 80px !important; /* Match homepage header height */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--wd-z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: all var(--wd-transition-base);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--wd-shadow-md);
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(124, 58, 237, 0.1);
    z-index: calc(var(--wd-z-sticky) + 1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--wd-primary), var(--wd-secondary));
    width: 0;
    transition: width var(--wd-transition-fast);
}

/* ============================================
   MODERN HERO SECTION
   ============================================ */
.web-design-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #3b82f6 100%);
    padding: 80px 0 40px 0 !important; /* Optimized for viewport fit */
    position: relative;
    overflow: hidden;
    height: 100vh; /* Full viewport height */
    max-height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Animated Mesh Background */
.web-design-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 219, 98, 0.3) 0%, transparent 50%);
    animation: meshAnimation 20s ease-in-out infinite;
}

@keyframes meshAnimation {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -20px) rotate(1deg);
    }
    66% {
        transform: translate(20px, -20px) rotate(-1deg);
    }
}

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float1 15s infinite ease-in-out;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    border-radius: 50%;
    animation: float2 20s infinite ease-in-out;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    transform: rotate(45deg);
    animation: float3 18s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(-30px) rotate(180deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg);
    }
    50% {
        transform: translate(30px, -30px) rotate(225deg);
    }
}

/* Hero Content */
.web-design-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.web-design-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.web-design-hero .highlight-text {
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-design-hero .location-text {
    color: #fbbf24;
}

.web-design-hero .title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    margin: 20px auto;
    border-radius: 2px;
}

.web-design-hero .hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.web-design-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 40px 0;
    flex-wrap: wrap;
}

.web-design-hero .stat-item {
    text-align: center;
}

.web-design-hero .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.web-design-hero .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.web-design-hero .hero-cta-section {
    margin-top: 3rem;
}

.web-design-hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.web-design-hero .hero-primary-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.web-design-hero .hero-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

.web-design-hero .btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.web-design-hero .btn-subtext {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.web-design-hero .hero-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.web-design-hero .hero-call-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-title {
    font-size: clamp(var(--wd-text-3xl), 5vw, var(--wd-text-6xl));
    font-weight: 900;
    color: white;
    margin-bottom: var(--wd-space-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    display: block;
    font-size: clamp(var(--wd-text-xl), 3vw, var(--wd-text-3xl));
    font-weight: 600;
    margin-top: var(--wd-space-sm);
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--wd-text-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--wd-space-xl);
    line-height: 1.8;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--wd-space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--wd-space-2xl);
}

.btn-web-design {
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    color: var(--wd-primary);
    padding: var(--wd-space-sm) var(--wd-space-lg);
    border-radius: var(--wd-radius-xl);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--wd-space-xs);
    transition: all var(--wd-transition-base);
    box-shadow: var(--wd-shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-web-design::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-web-design:hover::before {
    left: 100%;
}

.btn-web-design:hover {
    transform: translateY(-3px);
    box-shadow: var(--wd-shadow-2xl);
    background: white;
}

.hero-phone {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--wd-text-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--wd-space-xs);
    padding: var(--wd-space-sm) var(--wd-space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--wd-radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--wd-transition-base);
}

.hero-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Animated Stats Grid */
.web-design-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--wd-space-md);
    max-width: 800px;
    margin: 0 auto;
}

.web-design-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--wd-radius-xl);
    padding: var(--wd-space-md);
    text-align: center;
    transition: all var(--wd-transition-base);
}

.web-design-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.web-design-stat-number {
    font-size: var(--wd-text-3xl);
    font-weight: 900;
    color: white;
    margin-bottom: var(--wd-space-xs);
    background: linear-gradient(90deg, #fff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-design-stat-label {
    font-size: var(--wd-text-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ============================================
   ENHANCED SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--wd-space-lg);
    margin-top: var(--wd-space-2xl);
}

.web-design-service-card {
    background: white;
    border-radius: var(--wd-radius-2xl);
    padding: var(--wd-space-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--wd-transition-base);
    border: 1px solid var(--wd-gray-200);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.web-design-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wd-primary), var(--wd-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--wd-transition-base);
}

.web-design-service-card:hover::before {
    transform: scaleX(1);
}

.web-design-service-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-10px);
    box-shadow: var(--wd-shadow-2xl);
    border-color: var(--wd-primary);
}

.web-design-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wd-primary), var(--wd-secondary));
    border-radius: var(--wd-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--wd-space-md);
    font-size: 2.5rem;
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
    color: white;
}

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

.web-design-service-card h3 {
    font-size: var(--wd-text-xl);
    font-weight: 700;
    color: var(--wd-gray-900);
    margin-bottom: var(--wd-space-sm);
    text-align: center;
}

.web-design-service-card p {
    color: #4a5568; /* Darker for better contrast */
    line-height: 1.8;
    margin-bottom: var(--wd-space-md);
    text-align: center;
    font-size: 15px;
}

.web-design-service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.web-design-service-card ul li {
    padding: var(--wd-space-xs) 0;
    color: var(--wd-gray-700);
    display: flex;
    align-items: center;
    gap: var(--wd-space-xs);
}

.web-design-service-card ul li::before {
    content: '✓';
    color: var(--wd-success);
    font-weight: bold;
}

/* ============================================
   ENHANCED BENEFITS SECTION
   ============================================ */
.benefits-section {
    background: linear-gradient(180deg, var(--wd-gray-50), white);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--wd-space-lg);
    margin-top: var(--wd-space-2xl);
}

.web-design-benefit-item {
    background: white;
    padding: var(--wd-space-md);
    border-radius: var(--wd-radius-xl);
    border-left: 4px solid var(--wd-primary);
    box-shadow: var(--wd-shadow-md);
    display: flex;
    align-items: flex-start;
    gap: var(--wd-space-md);
    transition: all var(--wd-transition-base);
    position: relative;
    overflow: hidden;
}

.web-design-benefit-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--wd-primary-bg) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--wd-transition-base);
}

.web-design-benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--wd-shadow-xl);
}

.web-design-benefit-item:hover::after {
    opacity: 1;
}

.web-design-benefit-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--wd-primary), var(--wd-secondary));
    border-radius: var(--wd-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.web-design-benefit-item h3 {
    margin-bottom: 0.5rem;
    color: var(--wd-gray-900);
    font-size: 1.125rem;
    font-weight: 700;
}

.web-design-benefit-item p {
    color: #2d3748; /* Darker for better readability */
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 400;
}

/* ============================================
   MODERN PROCESS TIMELINE
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--wd-space-lg);
    margin-top: var(--wd-space-3xl);
    position: relative;
}

/* Connecting Lines for Desktop */
@media (min-width: 768px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg,
            transparent,
            var(--wd-primary) 20%,
            var(--wd-primary) 80%,
            transparent);
        z-index: 0;
    }
}

.web-design-process-step {
    background: white;
    border: 2px solid var(--wd-gray-200);
    border-radius: var(--wd-radius-xl);
    padding: var(--wd-space-xl) var(--wd-space-lg) var(--wd-space-lg);
    text-align: center;
    position: relative;
    transition: all var(--wd-transition-base);
    z-index: 1;
}

.web-design-process-step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--wd-shadow-2xl);
    border-color: var(--wd-primary);
    background: linear-gradient(135deg, white, var(--wd-primary-bg));
}

.web-design-process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--wd-primary), var(--wd-secondary));
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: var(--wd-text-xl);
    box-shadow: var(--wd-shadow-lg);
    z-index: 2;
}

.web-design-process-step h3 {
    margin: var(--wd-space-lg) 0 var(--wd-space-sm);
    color: var(--wd-gray-900);
    font-size: var(--wd-text-xl);
    font-weight: 700;
}

.web-design-process-step p {
    color: #4a5568; /* Better contrast */
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================
   ENHANCED CTA SECTION
   ============================================ */
.web-design-cta {
    background: linear-gradient(135deg, var(--wd-gray-900) 0%, var(--wd-primary-dark) 100%);
    color: white;
    padding: var(--wd-space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.web-design-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: ctaBg 15s ease-in-out infinite;
}

@keyframes ctaBg {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, 20px);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: clamp(var(--wd-text-2xl), 4vw, var(--wd-text-4xl));
    font-weight: 900;
    margin-bottom: var(--wd-space-md);
    background: linear-gradient(90deg, #fff, var(--wd-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: var(--wd-text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--wd-space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--wd-space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   MODERN FOOTER REDESIGN
   ============================================ */
footer {
    background: rgb(15, 23, 42); /* Match homepage footer background */
    color: white;
    padding: 80px 0 30px; /* Match homepage footer padding */
    position: relative;
    margin-top: var(--wd-space-4xl);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(124,58,237,0.2)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.5;
}

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

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

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 50px;
    margin-bottom: var(--wd-space-md);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--wd-space-md);
}

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--wd-space-xs);
    transition: all var(--wd-transition-base);
}

.footer-contact a:hover {
    color: var(--wd-primary-light);
    transform: translateX(5px);
}

.footer-column h4 {
    font-size: var(--wd-text-lg);
    font-weight: 700;
    margin-bottom: var(--wd-space-md);
    color: white;
    position: relative;
    padding-bottom: var(--wd-space-xs);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--wd-primary), transparent);
}

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

.footer-list li {
    margin-bottom: var(--wd-space-xs);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--wd-transition-base);
    display: inline-flex;
    align-items: center;
}

.footer-list a:hover {
    color: var(--wd-primary-light);
    transform: translateX(5px);
}

.footer-cta-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--wd-space-sm);
}

.footer-cta-btn {
    background: linear-gradient(135deg, var(--wd-primary), var(--wd-secondary));
    color: white;
    padding: var(--wd-space-sm) var(--wd-space-md);
    border-radius: var(--wd-radius-lg);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all var(--wd-transition-base);
}

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--wd-shadow-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--wd-space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--wd-space-md);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--wd-text-sm);
}

.footer-location {
    display: block;
    margin-top: var(--wd-space-xs);
    color: var(--wd-primary-light);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--wd-transition-base);
}

.social-link:hover {
    background: var(--wd-primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--wd-space-2xl);
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: clamp(var(--wd-text-2xl), 4vw, var(--wd-text-4xl));
    font-weight: 900;
    color: var(--wd-gray-900);
    margin-bottom: var(--wd-space-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--wd-primary), var(--wd-secondary));
    border-radius: var(--wd-radius-full);
}

.section-subtitle {
    font-size: var(--wd-text-lg);
    color: #4a5568; /* Better contrast */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .web-design-hero {
        padding: 60px var(--wd-space-md) var(--wd-space-2xl) var(--wd-space-md) !important;
    }

    .hero-title {
        font-size: var(--wd-text-3xl);
    }

    .hero-subtitle {
        font-size: var(--wd-text-xl);
    }

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

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

/* ============================================
   LOADING STATES & SKELETON SCREENS
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
        var(--wd-gray-200) 25%,
        var(--wd-gray-100) 50%,
        var(--wd-gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--wd-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .web-design-hero,
    .floating-shape,
    .web-design-cta,
    footer {
        display: none;
    }

    .services-section,
    .benefits-section,
    .process-section {
        page-break-inside: avoid;
    }
}