/* ===================================
   CarsSpace - World-Class Premium Automotive Site
   Designed with Elite Engineering Standards
   Racing Red: #DC0A0A, #FF1F1F
   Deep Black: #0A0A0A, #1A1A1A
   Pure White: #FFFFFF, #FAFAFA
   =================================== */

/* === CSS Custom Properties - Enterprise Grade === */
:root {
    /* Primary Colors - Vibrant & Modern */
    --primary-red: #D93A2B; /* A strong, modern red */
    --light-red: #E86A5D;
    --dark-red: #B32B1F;
    --accent-red: #F29B91;
    
    /* Neutral Colors - High Contrast */
    --deep-black: #121212;
    --rich-black: #1D1D1D;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #EAEAEA;
    --pure-white: #FFFFFF;
    --off-white: #FDFDFD; /* A very light, clean white */
    --cream: #F7F5F2;
    
    /* Text Colors - High Contrast for Readability */
    --text-primary: #0D0D0D; /* Maximum contrast */
    --text-secondary: #2A2A2A; /* Darker for better visibility */
    --text-muted: #555555; /* Improved from 7A */
    --text-light: #1A1A1A; /* Darker for readability */
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    --gradient-dark: linear-gradient(135deg, var(--deep-black) 0%, var(--rich-black) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    
    /* Shadows - Layered for Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    --shadow-red: 0 20px 40px rgba(220, 10, 10, 0.25);
    --shadow-glow: 0 0 40px rgba(220, 10, 10, 0.4);
    
    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3.5rem;
    --font-6xl: 4.5rem;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* === Global Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    background: var(--off-white);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.background-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: zoomInOut 20s ease-in-out infinite;
}

.background-slide.active {
    opacity: 1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(5px) saturate(120%);
    -webkit-backdrop-filter: blur(5px) saturate(120%);
    z-index: -9;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === Typography Enhancement === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, var(--font-6xl)); }
h2 { font-size: clamp(2rem, 4vw, var(--font-4xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--font-2xl)); }

p {
    max-width: 70ch;
}

/* === Premium Glassmorphism Components === */
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all var(--duration-slow) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 90, 74, 0.25), transparent);
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        var(--shadow-xl),
        var(--shadow-red),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(220, 10, 10, 0.2);
}

.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(217, 58, 43, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* === Elite Navigation === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-fixed);
    padding: var(--space-5) 5%;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-red), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(220, 10, 10, 0.5);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    animation: zoomInOutHero 8s ease-in-out infinite;
    filter: brightness(1.12) contrast(1.12) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-slide.active {
    opacity: 1;
}

@keyframes zoomInOutHero {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Grid Overlay Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(201, 90, 74, 0.06) 0px,
            transparent 1px,
            transparent 30px,
            rgba(201, 90, 74, 0.06) 31px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(201, 90, 74, 0.05) 0px,
            transparent 1px,
            transparent 30px,
            rgba(201, 90, 74, 0.05) 31px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05) 0px,
            transparent 2px,
            transparent 60px,
            rgba(255, 255, 255, 0.05) 62px
        );
    z-index: 1;
    pointer-events: none;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Stars Effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 90% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 33% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 15% 90%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 45% 15%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 75% 85%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(3px 3px at 10% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 95% 20%, rgba(201, 90, 74, 0.3), transparent),
        radial-gradient(1px 1px at 40% 90%, rgba(201, 90, 74, 0.35), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(201, 90, 74, 0.25), transparent);
    background-size: 200% 200%, 250% 250%, 180% 180%, 300% 300%, 220% 220%, 
                     190% 190%, 260% 260%, 210% 210%, 240% 240%, 270% 270%,
                     230% 230%, 200% 200%, 280% 280%, 250% 250%, 190% 190%;
    animation: starsAnimation 60s linear infinite, starsTwinkle 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

@keyframes starsAnimation {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0% 50%, 100% 100%,
                           30% 70%, 80% 20%, 60% 90%, 20% 40%, 90% 60%,
                           40% 10%, 10% 80%, 70% 30%, 50% 50%, 85% 75%;
    }
    100% {
        background-position: 100% 100%, 0% 100%, 150% 0%, 100% 150%, 0% 0%,
                           130% 30%, 20% 120%, 160% 10%, 120% 140%, 10% 40%,
                           140% 110%, 110% 20%, 170% 130%, 150% 150%, 15% 25%;
    }
}

@keyframes starsTwinkle {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.6;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 90, 74, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(201, 90, 74, 0.08) 0%, transparent 55%);
    z-index: 0;
}

.hero-overlay {
    /* This can be removed or opacity reduced if the background-overlay is sufficient */
    display: none; 
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.3rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #2E2A26, var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -1px;
    filter: drop-shadow(0 6px 24px rgba(201, 90, 74, 0.35));
    position: relative;
    display: inline-block;
    padding: 0.35rem 1.2rem;
}

.hero h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: none;
    position: relative;
    display: inline-block;
    padding: 0.35rem 1.1rem;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    z-index: -1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--pure-white);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 0.9rem 1.4rem;
    max-width: 100%;
}

.hero-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: -1;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(220, 10, 10, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 10, 10, 0.7);
    border-color: var(--pure-white);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    cursor: pointer;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-red);
    color: var(--light-red);
    box-shadow: 0 0 30px rgba(255, 31, 31, 0.5);
    transform: translateY(-3px);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-dot.active {
    background: var(--light-red);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(220, 10, 10, 0.5);
}

/* === Section Styles === */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--deep-black), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* === Department Grid === */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.department-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.75), rgba(20, 20, 20, 0.9));
    opacity: 0.85;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.department-card:hover::before {
    opacity: 0.55;
}

.department-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.85) 100%);
    z-index: 1;
}

.department-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.department-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(220, 10, 10, 0.6));
}

.department-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.department-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* === Testimonials Slider === */
.testimonials {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 50%, #1A1A1A 100%);
    padding: 6rem 5%;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    text-align: center;
    padding: 3rem;
    display: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: scale(1.02);
}

.testimonial-item.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.testimonial-author {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--light-red);
}

.testimonial-role {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    font-weight: 400;
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.testimonial-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 10, 10, 0.3);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-red);
    width: 35px;
    border-radius: 6px;
}

/* === Floating Contact Buttons === */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    color: var(--pure-white);
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(220, 10, 10, 0.5);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(220, 10, 10, 0.7);
}

/* === RES Quick Gallery Ribbon === */
.res-ribbon {
    position: fixed;
    left: 130px;
    right: 24px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(220, 10, 10, 0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1200;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.res-ribbon__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.9), rgba(255, 31, 31, 0.8));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(220, 10, 10, 0.45);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), opacity 0.2s ease;
}

.res-ribbon__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(220, 10, 10, 0.55);
}

.res-ribbon__toggle i {
    font-size: 1.1rem;
}

.res-ribbon__track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: resRibbonMarquee 36s linear infinite;
}

.res-ribbon.paused .res-ribbon__track,
.res-ribbon.no-motion .res-ribbon__track {
    animation-play-state: paused;
}

.res-ribbon__item {
    width: 120px;
    height: 78px;
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f0f0f;
}

.res-ribbon__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.res-ribbon__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.res-ribbon__item:hover img {
    transform: scale(1.06);
}

.res-ribbon.minimized {
    right: 20px;
    left: auto;
    width: auto;
    padding: 10px 12px;
    gap: 0;
}

.res-ribbon.minimized .res-ribbon__track {
    opacity: 0;
    visibility: hidden;
    height: 0;
    width: 0;
}

.res-ribbon.minimized .res-ribbon__toggle {
    box-shadow: 0 12px 26px rgba(220, 10, 10, 0.4);
}

.res-ribbon.minimized .res-ribbon__toggle span {
    display: none;
}

@keyframes resRibbonMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
    .res-ribbon {
        left: 18px;
        right: 18px;
        bottom: 14px;
        padding: 10px 12px;
    }

    .res-ribbon__item {
        width: 104px;
        height: 68px;
    }
}

@media (max-width: 768px) {
    .res-ribbon {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px;
        gap: 10px;
    }

    .res-ribbon__toggle span {
        display: none;
    }

    .res-ribbon__item {
        width: 88px;
        height: 58px;
    }
}

@media (max-width: 520px) {
    .res-ribbon {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 8px;
    }

    .res-ribbon__item {
        width: 76px;
        height: 52px;
        border-radius: 10px;
    }
}

/* === Footer === */
.footer {
    background: #1A1A1A;
    border-top: 2px solid rgba(220, 10, 10, 0.3);
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--light-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* === Certificates Section === */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certificate-card {
    padding: 2.5rem;
    text-align: center;
}

.certificate-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--light-red);
}

.certificate-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.certificate-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Service Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2.5rem;
    text-align: center;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    filter: drop-shadow(0 0 15px rgba(220, 10, 10, 0.4));
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.4;
    color: var(--deep-black);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* === Enhanced Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.2px;
}

p {
    font-weight: 400;
    letter-spacing: 0.3px;
}

strong {
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Luxury text styles */
.luxury-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.highlight-text {
    color: var(--light-red);
    font-weight: 700;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(220, 10, 10, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(220, 10, 10, 0.7);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 2px solid rgba(220, 10, 10, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .departments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .department-card {
        height: 350px;
    }

    .testimonial-text {
        font-size: 1.2rem;
    }

    .floating-contacts {
        bottom: 20px;
        left: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 4rem 4%;
    }

    .department-card {
        height: 320px;
    }

    .department-content {
        padding: 2rem;
    }
}

/* === Page-Specific Styles === */
.page-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(220, 10, 10, 0.1));
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, var(--pure-white), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* === Gallery Enhancements === */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 350px;
    background: var(--dark-gray);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 60px rgba(220, 10, 10, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.98), rgba(26, 26, 26, 0.7) 50%, transparent);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-red);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* === Enhanced Department Cards === */
.department-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 10, 10, 0.75), rgba(26, 26, 26, 0.85));
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.department-card:hover::before {
    opacity: 0.6;
}

.department-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.9) 100%);
    z-index: 1;
}

.department-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(220, 10, 10, 0.25);
    border-color: rgba(220, 10, 10, 0.4);
}

/* === Feature Items Animations === */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
    z-index: 0;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    background: rgba(220, 10, 10, 0.05) !important;
    border-color: rgba(220, 10, 10, 0.3) !important;
}

/* === Certificate Cards Animations === */
.certificate-card {
    position: relative;
    transition: all 0.4s ease;
}

.certificate-card:hover {
    transform: rotateY(5deg) translateZ(0);
    box-shadow: 0 15px 50px rgba(220, 10, 10, 0.3);
}

/* =====================================================
   ELITE PROFESSIONAL ENHANCEMENTS
   World-Class Design Standards
   ===================================================== */

/* === Premium Container System === */
.container-fluid {
    width: 100%;
    padding: 0 clamp(1rem, 5vw, 5rem);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* === Advanced Grid Layouts === */
.grid-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--space-8);
}

.grid-asymmetric {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .grid-asymmetric {
        grid-template-columns: 1fr;
    }
}

/* === Premium Button System === */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pure-white);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: var(--shadow-md), var(--shadow-red);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s var(--ease-smooth);
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-outline-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--primary-red);
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-outline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--duration-normal) var(--ease-smooth);
    z-index: -1;
}

.btn-outline-premium:hover {
    color: var(--pure-white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

.btn-outline-premium:hover::before {
    width: 100%;
}

/* === Floating Label Inputs === */
.input-group-premium {
    position: relative;
    margin-bottom: var(--space-6);
}

.input-premium {
    width: 100%;
    padding: var(--space-5) var(--space-4);
    font-size: var(--font-base);
    font-family: inherit;
    color: var(--text-primary);
    background: var(--pure-white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-smooth);
    outline: none;
}

.input-premium:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 10, 10, 0.1);
}

.input-label-premium {
    position: absolute;
    top: 50%;
    right: var(--space-4);
    transform: translateY(-50%);
    font-size: var(--font-base);
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--duration-fast) var(--ease-smooth);
    background: var(--pure-white);
    padding: 0 var(--space-2);
}

.input-premium:focus + .input-label-premium,
.input-premium:not(:placeholder-shown) + .input-label-premium {
    top: 0;
    font-size: var(--font-sm);
    color: var(--primary-red);
}

/* === Premium Cards Variants === */
.card-elevated {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-slow) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.card-elevated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--duration-slow) var(--ease-smooth);
}

.card-elevated:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), var(--shadow-red);
}

.card-elevated:hover::before {
    height: 100%;
}

.card-floating {
    background: var(--pure-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-slow) var(--ease-bounce);
}

.card-floating:hover {
    transform: translateY(-16px) rotateX(2deg);
    box-shadow: var(--shadow-xl);
}

/* === Animated Dividers === */
.divider-animated {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 10, 10, 0.2), transparent);
    margin: var(--space-16) 0;
    overflow: hidden;
}

.divider-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: var(--gradient-primary);
    animation: dividerSlide 3s ease-in-out infinite;
}

@keyframes dividerSlide {
    0%, 100% { left: -30%; }
    50% { left: 100%; }
}

.divider-icon {
    position: relative;
    text-align: center;
    margin: var(--space-16) 0;
}

.divider-icon::before,
.divider-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 10, 10, 0.3), transparent);
}

.divider-icon::before { left: 0; }
.divider-icon::after { right: 0; }

.divider-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--pure-white);
    border-radius: var(--radius-full);
    font-size: var(--font-lg);
    box-shadow: var(--shadow-red);
}

/* === Premium Badge System === */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--pure-white);
    box-shadow: var(--shadow-sm);
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.badge-subtle {
    background: rgba(220, 10, 10, 0.1);
    color: var(--primary-red);
}

/* === Animated Counter === */
.counter-box {
    text-align: center;
    padding: var(--space-8);
}

.counter-value {
    font-size: var(--font-6xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.counter-label {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-top: var(--space-3);
    font-weight: 500;
}

.counter-suffix {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary-red);
}

/* === Premium Navigation Enhancement === */
.nav-links a {
    position: relative;
    font-weight: 600;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: var(--radius-full);
    transform: translateX(-50%) scale(0);
    transition: transform var(--duration-fast) var(--ease-bounce);
}

.nav-links a:hover::before {
    transform: translateX(-50%) scale(1);
}

.nav-links a.active::before {
    transform: translateX(-50%) scale(1);
    background: var(--light-red);
}

/* === Scroll Progress Indicator === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: var(--light-gray);
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(220, 10, 10, 0.5);
}

/* === Section Reveal Animations === */
.reveal-section {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-smooth);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s var(--ease-bounce);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* === Hover Lift Effect === */
.hover-lift {
    transition: all var(--duration-normal) var(--ease-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* === Text Gradient Styles === */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(90deg, var(--primary-red), var(--light-red), var(--primary-red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* === Premium Tooltips === */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: var(--space-2) var(--space-4);
    background: var(--deep-black);
    color: var(--pure-white);
    font-size: var(--font-sm);
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration-fast) var(--ease-smooth);
    z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* === Skeleton Loading === */
.skeleton {
    position: relative;
    background: linear-gradient(90deg, 
        var(--light-gray) 25%, 
        #E0E0E0 50%, 
        var(--light-gray) 75%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
}

.skeleton-card {
    height: 200px;
}

/* === Ripple Effect === */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--primary-red) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple-effect:active::after {
    transform: scale(0);
    opacity: 0.3;
    transition: 0s;
}

/* === Image Effects === */
.img-premium {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.img-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--duration-slow) var(--ease-smooth);
}

.img-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(220, 10, 10, 0.3) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.img-premium:hover img {
    transform: scale(1.08);
}

.img-premium:hover::after {
    opacity: 1;
}

/* === Custom Scrollbar Enhancement === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--dark-red));
    border-radius: 10px;
    border: 2px solid var(--off-white);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--light-red), var(--primary-red));
}

/* === Focus States for Accessibility === */
:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-red);
    outline-offset: 4px;
}

/* === Print Styles === */
@media print {
    .navbar,
    .floating-contacts,
    .scroll-progress {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* === Reduced Motion Preference === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === High Contrast Mode === */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #FF0000;
        --light-red: #FF3333;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .glass-card,
    .card-elevated,
    .card-floating {
        border: 2px solid currentColor;
    }
}
