/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', sans-serif;
    
    /* Brand Colors */
    --color-primary: #6366F1;
    --color-accent: #EC4899;
    --color-purple: #8B5CF6;
    
    /* Dark Mode (Default) */
    --bg-dark: #0F172A;
    --bg-surface: #1E293B;
    --text-primary: #F1F5F9;
    --text-muted: #94A3B8;
    --border-dark: rgba(148, 163, 184, 0.15);
    
    /* Light Mode */
    --bg-light: #F8FAFC;
    --bg-surface-light: rgba(255, 255, 255, 0.9);
    --text-primary-light: #0F172A;
    --text-muted-light: #475569;
    --border-light: #E2E8F0;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-glow-pink: 0 0 30px rgba(236, 72, 153, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal: 50;
    --z-popover: 60;
    --z-tooltip: 70;
    
    /* Effects */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
    --backdrop-blur: blur(20px);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-muted);
}

/* ============================================
   LAYOUT & GRID SYSTEMS
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

/* ============================================
   SECTION TITLES (Reusable)
   ============================================ */

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--text-lg);
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-2xl) 0;
}

/* Animated Gradient Mesh Background */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.15), transparent 50%),
        radial-gradient(at 80% 70%, rgba(236, 72, 153, 0.15), transparent 50%),
        radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.1), transparent 50%),
        var(--bg-dark);
    animation: gradient-shift 20s ease infinite;
}

/* Noise Texture Overlay */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-container {
    position: relative;
    z-index: var(--z-base);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    text-align: center;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: var(--z-base);
}

/* Hero Text */
.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.hero-title-line {
    display: inline-block;
}

/* Character-by-character animation (applied via JS) */
.hero-title-line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: char-fade-in 0.6s ease forwards;
}

@keyframes char-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--radius-lg);
    transition: all 300ms ease;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: var(--shadow-glow);
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    opacity: 0;
    transition: opacity 300ms ease;
}

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

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.cta-primary span,
.cta-secondary span {
    position: relative;
    z-index: var(--z-base);
}

.cta-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.cta-secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.cta-icon {
    transition: transform 300ms ease;
}

.cta-primary:hover .cta-icon,
.cta-secondary:hover .cta-icon {
    transform: translateX(-3px);
}

/* Focus States */
.cta-primary:focus,
.cta-secondary:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-base);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: var(--bg-dark);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

/* Glass effect with inset shadow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
    transition: transform 300ms ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.service-description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
}

/* ============================================
   TRUST SECTION (Logo Strip)
   ============================================ */

.trust {
    background: var(--bg-surface);
    padding: var(--space-2xl) 0;
}

.logo-strip-wrapper {
    overflow: hidden;
    margin-top: var(--space-xl);
    position: relative;
}

/* Fade edges */
.logo-strip-wrapper::before,
.logo-strip-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: var(--z-base);
    pointer-events: none;
}

.logo-strip-wrapper::before {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface), transparent);
}

.logo-strip-wrapper::after {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface), transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    animation: scroll-logos 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 300ms ease;
}

.logo-item:hover {
    filter: grayscale(0%) brightness(1);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    background: var(--bg-dark);
}

/* Filter Buttons */
.project-filters {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all 300ms ease;
    cursor: pointer;
    min-width: 100px;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.filter-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.project-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Project Preview Grid */
.project-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project-preview-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 300ms ease;
}

.project-preview-grid img:hover {
    transform: scale(1.05);
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: var(--radius-lg);
    transition: all 300ms ease;
    cursor: pointer;
}

.project-cta:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-glow);
}

.project-cta:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    background: var(--bg-surface);
}

.gallery-masonry {
    column-count: 1;
    column-gap: var(--space-lg);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: block;
    transition: transform 300ms ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 300ms ease;
}

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 300ms ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-text {
    color: white;
    font-size: var(--text-lg);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    background: var(--bg-dark);
}

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

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 300ms ease;
    cursor: pointer;
    display: block;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(236, 72, 153, 0.3);
}

.testimonial-card:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.testimonial-quote-icon {
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

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

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--bg-surface);
}

.author-name {
    font-size: var(--text-lg);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.author-role {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
    background: var(--bg-surface);
}

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

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 300ms ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Featured Package */
.pricing-card--featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card--featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    pointer-events: none;
}

.package-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    font-family: var(--font-heading);
}

.package-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.package-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-amount {
    font-size: var(--text-5xl);
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: var(--text-xl);
    color: var(--text-muted);
}

.package-features {
    margin-bottom: var(--space-lg);
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    color: var(--text-muted);
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--color-primary);
}

.package-cta {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-lg);
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: var(--radius-lg);
    transition: all 300ms ease;
    cursor: pointer;
}

.package-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.package-cta:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Custom Package Card */
.pricing-card--custom {
    border: 2px dashed var(--glass-border);
}

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

.custom-description {
    text-align: center;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.package-cta--custom {
    background: var(--glass-bg);
    border: 2px solid var(--color-accent);
    color: var(--text-primary);
}

.package-cta--custom:hover {
    background: var(--color-accent);
    color: white;
}

/* ============================================
   CROSS-LINKING SECTION
   ============================================ */

.cross-linking {
    background: var(--bg-dark);
    padding: var(--space-2xl) 0;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-surface);
    padding: var(--space-3xl) 0 var(--space-xl) 0;
    border-top: 1px solid var(--border-dark);
}

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

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

.footer-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-muted);
}

.footer-section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.social-link {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 300ms ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.social-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

.copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.heart-icon {
    color: var(--color-accent);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.2);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: var(--z-fixed);
    transition: all 300ms ease;
    cursor: pointer;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children > *:nth-child(6) { transition-delay: 500ms; }
.stagger-children > *:nth-child(7) { transition-delay: 600ms; }
.stagger-children > *:nth-child(8) { transition-delay: 700ms; }

/* ============================================
   RESPONSIVE DESIGN (Mobile-First)
   ============================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
    /* Typography Scale Increase */
    :root {
        --text-5xl: 3.5rem;
        --text-4xl: 2.5rem;
        --text-3xl: 2rem;
    }
    
    /* Hero */
    .hero-content {
        flex-direction: row;
        text-align: right;
    }
    
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .hero-ctas {
        justify-content: flex-start;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Projects Grid */
    .projects-grid,
    .cross-linking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery Masonry */
    .gallery-masonry {
        column-count: 2;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    /* Typography Scale Increase */
    :root {
        --text-6xl: 4.5rem;
        --text-5xl: 3.75rem;
    }
    
    .hero-title {
        font-size: var(--text-6xl);
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Projects Grid */
    .projects-grid,
    .cross-linking-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Gallery Masonry */
    .gallery-masonry {
        column-count: 3;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Pricing - Special 4-column layout */
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* ============================================
   ACCESSIBILITY & 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;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-muted: var(--text-primary);
        --border-dark: rgba(148, 163, 184, 0.5);
    }
    
    .service-card,
    .project-card,
    .testimonial-card,
    .pricing-card {
        border-width: 2px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

/* Screen Reader Only */
.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;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    z-index: var(--z-tooltip);
    transition: top 300ms ease;
}

.skip-to-content:focus {
    top: var(--space-md);
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .scroll-indicator,
    .hero-background {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}