/**
 * Premium Home Page Enhancements
 * Modern, professional design improvements for Compta-Air
 * Author: Claude Code
 * Date: 2025-10-26
 *
 * Features:
 * - Enhanced color schemes and gradients
 * - Smooth animations and micro-interactions
 * - Professional shadows and depth
 * - Glassmorphism effects
 * - Improved typography and spacing
 * - Interactive hover states
 */

/* ============================================
   CSS VARIABLES - PREMIUM COLOR PALETTE
   ============================================ */
:root {
    /* Primary Colors - Enhanced */
    --primary-purple: #667eea;
    --primary-purple-dark: #5568d3;
    --primary-purple-light: #7c8ff0;
    --secondary-purple: #764ba2;
    --secondary-purple-dark: #63408a;

    /* Accent Colors */
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    --accent-blue: #3b82f6;

    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-sunset: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --gradient-ocean: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
    --gradient-hero: linear-gradient(135deg, rgba(102, 126, 234, 0.96) 0%, rgba(118, 75, 162, 0.92) 100%);

    /* Shadows - Enhanced */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(251, 191, 36, 0.4);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

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

/* ============================================
   HERO SECTION - PREMIUM ENHANCEMENTS
   ============================================ */
.hero-section-modern {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

/* Animated background pattern */
.hero-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 2;
    animation: float 20s ease-in-out infinite;
}

.hero-overlay-modern {
    background: var(--gradient-hero);
    backdrop-filter: blur(2px);
    animation: gradientShift 15s ease infinite;
}

.hero-background-modern {
    transform: scale(1.1);
    animation: kenBurns 30s ease-in-out infinite alternate;
}

.hero-content-modern {
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-modern {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-modern::after {
    content: '';
    display: block;
    width: 120px;
    height: 6px;
    background: var(--gradient-gold);
    margin: 20px auto 0;
    border-radius: var(--radius-full);
    animation: expand 0.8s ease-out 0.6s both;
}

.hero-subtitle-modern {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   SEARCH BOX - PREMIUM DESIGN
   ============================================ */
.search-container-modern {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.search-grid-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 16px;
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
}

.search-grid-modern:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    transform: translateY(-4px);
}

.search-field-modern {
    transition: all var(--transition-base);
}

.search-field-modern:focus-within {
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-lg);
}

.search-icon-modern {
    transition: all var(--transition-base);
}

.search-field-modern:focus-within .search-icon-modern {
    transform: scale(1.15);
    color: var(--primary-purple-dark);
}

.search-input-modern {
    font-size: 16px;
    font-weight: 500;
}

.search-input-modern::placeholder {
    color: var(--neutral-400);
    font-weight: 400;
}

.search-btn-modern {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.search-btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(102, 126, 234, 0.5);
}

.search-btn-modern:active {
    transform: translateY(-1px);
}

/* Location button enhancement */
.location-btn-modern {
    transition: all var(--transition-bounce);
}

.location-btn-modern:hover {
    color: var(--secondary-purple);
    transform: scale(1.2) rotate(90deg);
}

/* Popular tags enhancement */
.popular-tags-modern {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.popular-tag-modern {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.popular-tag-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.popular-tag-modern:hover::before {
    left: 100%;
}

.popular-tag-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SECTION HEADERS - ENHANCED
   ============================================ */
.section-header-modern {
    margin-bottom: 60px;
}

.section-title-modern {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: slideInLeft 0.6s ease-out;
}

.section-header-center .section-title-modern::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle-modern {
    font-size: 18px;
    line-height: 1.7;
    color: var(--neutral-600);
    margin-top: 12px;
}

.view-all-link-modern {
    position: relative;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.view-all-link-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: var(--radius-lg);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.view-all-link-modern:hover::before {
    opacity: 0.1;
}

.view-all-link-modern:hover {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
}

.view-all-link-modern:hover i {
    transform: translateX(6px);
}

/* ============================================
   CATEGORIES - PREMIUM DESIGN
   ============================================ */
.categories-section-modern {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
}

.categories-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.category-card-modern {
    border-radius: var(--radius-2xl);
    height: 320px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
}

.category-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 2px;
    background: var(--gradient-primary);
    -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 var(--transition-base);
}

.category-card-modern:hover::before {
    opacity: 1;
}

.category-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.category-image-modern {
    filter: brightness(0.95);
    transition: all var(--transition-slow);
}

.category-card-modern:hover .category-image-modern {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.05);
}

.category-overlay-modern {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: all var(--transition-slow);
}

.category-card-modern:hover .category-overlay-modern {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.88) 0%,
        rgba(118, 75, 162, 0.88) 100%
    );
}

.category-content-modern {
    transition: all var(--transition-base);
}

.category-card-modern:hover .category-content-modern {
    transform: translateY(-8px);
}

.category-name-modern {
    font-size: 22px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}

.category-card-modern:hover .category-name-modern {
    letter-spacing: 0.02em;
}

.category-bullet {
    animation: pulse 2s ease-in-out infinite;
}

.category-count-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.category-card-modern:hover .category-count-modern {
    background: var(--gradient-gold);
    color: #ffffff;
    transform: scale(1.1) translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
}

/* ============================================
   SERVICE CARDS - PREMIUM DESIGN
   ============================================ */
.services-section-modern {
    padding: 100px 0;
    position: relative;
}

.services-section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.services-section-white {
    background: #ffffff;
}

.service-card-modern {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
    border: 1px solid transparent;
}

.service-card-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(102, 126, 234, 0.2);
}

.service-card-modern:hover::after {
    opacity: 0.05;
}

.service-card-header {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    position: relative;
    overflow: hidden;
}

.service-image-modern {
    filter: brightness(0.96);
    transition: all var(--transition-slow);
}

.service-card-modern:hover .service-image-modern {
    transform: scale(1.12);
    filter: brightness(1.02);
}

.service-overlay-modern {
    opacity: 0.8;
    transition: all var(--transition-base);
}

.service-card-modern:hover .service-overlay-modern {
    opacity: 0.5;
}

.service-provider-modern {
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.service-card-modern:hover .service-provider-modern {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.provider-avatar-modern {
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.service-card-modern:hover .provider-avatar-modern {
    transform: scale(1.1);
}

.service-price-modern {
    position: relative;
    font-weight: 800;
    font-size: 15px;
}

.service-category-badge {
    box-shadow: var(--shadow-md);
    transition: all var(--transition-bounce);
}

.service-category-badge:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.service-title-modern a {
    background: linear-gradient(to right, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: all var(--transition-base);
}

.service-title-modern a:hover {
    background-size: 100% 2px;
}

.stars-modern {
    gap: 4px;
}

.star-filled {
    animation: starPulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.service-footer-modern {
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.02));
}

.service-contact-modern i,
.service-location-modern i {
    transition: all var(--transition-base);
}

.service-card-modern:hover .service-contact-modern i,
.service-card-modern:hover .service-location-modern i {
    transform: scale(1.15);
    color: var(--primary-purple-dark);
}

/* ============================================
   BLOG SECTION - PREMIUM DESIGN
   ============================================ */
.blog-section-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.blog-grid-modern {
    gap: 35px;
}

.blog-card-modern {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card-modern:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(102, 126, 234, 0.2);
}

.blog-image-wrapper {
    position: relative;
    height: 240px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.blog-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    mix-blend-mode: overlay;
}

.blog-card-modern:hover .blog-image-wrapper::after {
    opacity: 0.3;
}

.blog-image-modern {
    filter: saturate(0.9);
    transition: all var(--transition-slow);
}

.blog-card-modern:hover .blog-image-modern {
    transform: scale(1.1);
    filter: saturate(1.1);
}

.blog-content-modern {
    padding: 28px;
}

.blog-title-modern a {
    position: relative;
    transition: all var(--transition-base);
}

.blog-title-modern a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.blog-title-modern a:hover::after {
    width: 60px;
}

.blog-date-modern i {
    animation: rotate 20s linear infinite;
}

.blog-read-more-modern {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.blog-read-more-modern:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* ============================================
   HOW IT WORKS - PREMIUM DESIGN
   ============================================ */
.how-it-works-section-modern {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.how-it-works-section-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.how-it-works-section-modern::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

.steps-grid-modern {
    position: relative;
    z-index: 1;
}

.step-card-modern {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.step-card-modern:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-icon-wrapper {
    position: relative;
    display: inline-block;
}

.step-icon-modern {
    transition: all var(--transition-base);
    position: relative;
}

.step-icon-modern::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-base);
}

.step-card-modern:hover .step-icon-modern::before {
    opacity: 1;
    transform: scale(1);
}

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

.step-number-modern {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-bounce);
}

.step-card-modern:hover .step-number-modern {
    transform: scale(1.15) rotate(10deg);
    background: var(--gradient-gold);
    color: #ffffff;
}

/* ============================================
   EMPTY STATE - ENHANCED
   ============================================ */
.empty-state-modern {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--neutral-200);
}

.empty-icon-modern {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   OWL CAROUSEL ENHANCEMENTS
   ============================================ */
.owl-carousel .owl-nav button {
    background: #ffffff !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all var(--transition-base) !important;
}

.owl-carousel .owl-nav button:hover {
    background: var(--gradient-primary) !important;
    transform: scale(1.15) !important;
    box-shadow: var(--shadow-xl) !important;
}

.owl-carousel .owl-dots .owl-dot span {
    background: var(--neutral-300) !important;
    transition: all var(--transition-base) !important;
}

.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
    background: var(--gradient-primary) !important;
    width: 40px !important;
    box-shadow: var(--shadow-glow) !important;
}

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

@keyframes slideInLeft {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes expand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

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

@keyframes kenBurns {
    0% {
        transform: scale(1.1) translateX(0);
    }
    100% {
        transform: scale(1.2) translateX(-5%);
    }
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.96;
    }
    50% {
        opacity: 0.92;
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-aos] {
    transition-property: transform, opacity;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 1200px) {
    .categories-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .hero-section-modern {
        min-height: 600px;
        padding: 120px 0 80px;
    }

    .categories-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .section-title-modern {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .hero-section-modern {
        min-height: 500px;
        padding: 100px 0 60px;
    }

    .hero-title-modern {
        font-size: 32px;
    }

    .categories-grid-modern,
    .blog-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card-modern {
        height: 280px;
    }
}

@media (max-width: 575px) {
    :root {
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }

    .hero-title-modern::after {
        width: 80px;
        height: 4px;
    }

    .section-title-modern {
        font-size: 28px;
    }
}

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

/* GPU Acceleration for smooth animations */
.category-card-modern,
.service-card-modern,
.blog-card-modern,
.search-grid-modern {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
