/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary-color: #00b4d8;
    --primary-dark: #0096c7;
    --primary-light: #48cae4;
    --secondary-color: #023e8a;
    
    /* Text Colors */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    
    /* Background Colors */
    --light-bg: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --dark-bg: #1a1a2e;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(2, 62, 138, 0.85), rgba(0, 180, 216, 0.7));
    --gradient-glow: radial-gradient(circle, rgba(0, 180, 216, 0.3) 0%, transparent 70%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 180, 216, 0.4);
    --shadow-card-hover: 0 20px 60px rgba(0, 180, 216, 0.25);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    /* Animation Durations */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    
    /* Z-Index Layers */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 1500;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* CSS Fallback: Auto-hide preloader after 3 seconds if JS fails */
    animation: preloaderFadeOut 0.5s ease forwards;
    animation-delay: 3s;
}

/* CSS Fallback Animation */
@keyframes preloaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none; /* Cancel CSS animation when JS works */
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 30px;
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo img {
    height: 80px;
    width: auto;
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.preloader-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary-color);
    animation: spinnerRotate 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--secondary-color);
    animation: spinnerRotate 1.5s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--primary-light);
    animation: spinnerRotate 2s linear infinite;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.preloader-text {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: preloaderTextFade 1.5s ease-in-out infinite;
}

@keyframes preloaderTextFade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Smooth scrolling for anchor links */
html:focus-within {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 180, 216, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Effect on Scroll */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 2px 8px rgba(0, 180, 216, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header.scrolled .navbar {
    padding: 10px 20px;
}

.header.scrolled .logo-img {
    height: 60px;
    transition: height 0.3s ease;
}

/* Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    /* لمنع الشعار من الانكماش داخل القائمة */
    flex-shrink: 0; 
    display: flex;
    align-items: center;
}

.logo-img {
    /* تحديد ارتفاع مناسب للشعار */
    height: 80px; 
    
    /* جعل العرض تلقائي للحفاظ على أبعاد الصورة */
    width: auto; 
    
    /* خاصية مهمة جداً لمنع الصورة من التقلص تلقائياً */
    flex-shrink: 0; 
    
    /* لضمان ظهور الصورة بشكل كامل */
    object-fit: contain; 
}

/* في حالة الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    .logo-img {
        height: 50px; /* تقليل الحجم قليلاً للموبايل */
    }
}

.footer-logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    overflow: hidden;
}

/* Animated Underline Effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(101%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    opacity: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(0);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hover glow effect */
.nav-link:hover::after {
    opacity: 0.3;
    transform: translateX(0);
    filter: blur(4px);
}

.nav-cta {
    margin-left: 20px;
    position: relative;
    overflow: hidden;
}

.nav-cta::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.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger:hover span {
    background: var(--primary-color);
}

.hamburger:hover span:nth-child(1) {
    transform: translateY(-2px);
}

.hamburger:hover span:nth-child(3) {
    transform: translateY(2px);
}

/* ===== Hero Slider ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 8px; height: 8px; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; width: 12px; height: 12px; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; width: 6px; height: 6px; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: 1s; width: 14px; height: 14px; }
.particle:nth-child(5) { left: 60%; top: 30%; animation-delay: 3s; width: 10px; height: 10px; }
.particle:nth-child(6) { left: 70%; top: 70%; animation-delay: 5s; width: 8px; height: 8px; }
.particle:nth-child(7) { left: 80%; top: 50%; animation-delay: 2.5s; width: 12px; height: 12px; }
.particle:nth-child(8) { left: 90%; top: 20%; animation-delay: 4.5s; width: 6px; height: 6px; }
.particle:nth-child(9) { left: 15%; top: 60%; animation-delay: 1.5s; width: 10px; height: 10px; }
.particle:nth-child(10) { left: 85%; top: 85%; animation-delay: 3.5s; width: 8px; height: 8px; }

/* Hero Floating Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(2, 62, 138, 0.1));
    filter: blur(40px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 30%;
    animation: float 12s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
    animation: float 9s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease, transform 1.5s ease;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 62, 138, 0.85) 0%, rgba(0, 150, 199, 0.7) 50%, rgba(0, 180, 216, 0.6) 100%);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding-top: 80px;
    z-index: 5;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease forwards;
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    max-width: 800px;
    line-height: 1.1;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line.highlight {
    color: var(--primary-light);
    text-shadow: 0 0 40px rgba(0, 180, 216, 0.5);
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0.95;
    line-height: 1.7;
}

.typing-text {
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    padding-right: 5px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    animation: glowPulse 2s ease-in-out infinite;
}

.btn-glow::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.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scroll-arrows span {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s ease-in-out infinite;
}

.scroll-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollArrow {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(45deg) translateY(0);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) translateY(5px);
    }
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-dot.active::before {
    border-color: rgba(255, 255, 255, 0.5);
}


/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
    /* Ensure visibility fallback */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Animated Gradient Border */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-light), var(--primary-color));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientBorder 4s ease infinite paused;
}

/* Glow effect on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

/* 3D Hover Effect */
.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 25px 50px rgba(0, 180, 216, 0.2),
                0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.service-card:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Service Icon with animations */
.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(2, 62, 138, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon pulse ring */
.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(180deg);
    background: transparent;
}

.service-card:hover .service-icon::before {
    border-color: rgba(0, 180, 216, 0.3);
    animation: pulse 1.5s ease-out infinite;
}

.service-card:hover .service-icon::after {
    opacity: 1;
    transform: scale(1);
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.service-card:hover .service-icon i {
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Service card button enhancement */
.service-card .btn-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.service-card:hover .btn-outline {
    color: var(--white);
    border-color: transparent;
}

.service-card:hover .btn-outline::before {
    left: 0;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.about::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.about-content .lead {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.about-features {
    margin-bottom: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-dark);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.about-features li.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Animated Checkmark */
.about-features i {
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-features i::before {
    position: relative;
    z-index: 1;
}

.about-features i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-features li:hover i::after {
    transform: translate(-50%, -50%) scale(1.2);
}

.about-features li:hover i {
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* About Map with Parallax Container */
.about-map {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-map:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 180, 216, 0.2);
}

.about-map:hover::before {
    opacity: 1;
}

.about-map iframe {
    display: block;
    transition: transform 0.5s ease;
}

.about-map:hover iframe {
    transform: scale(1.02);
}

/* ===== Stats Section ===== */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

/* Wave Background Animation */
.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: waveMove 15s ease-in-out infinite;
}

.stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.02)' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,128C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: waveMove 20s ease-in-out infinite reverse;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

/* Floating particles in stats */
.stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: var(--white);
    position: relative;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.stat-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    -webkit-text-fill-color: var(--primary-light);
}

/* Floating number effect */
.stat-number.counting {
    animation: countPulse 0.1s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Stat icon decoration */
.stat-item::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.stat-item:hover::after {
    opacity: 1;
    top: -30px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background: var(--light-bg);
    overflow: hidden;
    position: relative;
}

/* Background decoration */
.testimonials::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 5%;
    font-size: 20rem;
    font-family: Georgia, serif;
    color: rgba(0, 180, 216, 0.03);
    line-height: 1;
    pointer-events: none;
    animation: floatQuote 6s ease-in-out infinite;
}

.testimonials::after {
    content: '"';
    position: absolute;
    bottom: 50px;
    right: 5%;
    font-size: 20rem;
    font-family: Georgia, serif;
    color: rgba(0, 180, 216, 0.03);
    line-height: 1;
    pointer-events: none;
    animation: floatQuote 6s ease-in-out infinite reverse;
}

@keyframes floatQuote {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

/* Progress indicator for auto-slide */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Quote mark decoration */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(0, 180, 216, 0.08);
    line-height: 1;
    transition: all 0.4s ease;
}

.testimonial-card:hover::before {
    color: rgba(0, 180, 216, 0.15);
    transform: scale(1.1) rotate(10deg);
}

/* Card hover effect */
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.15);
}

/* Gradient border on hover */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover::after {
    transform: scaleX(1);
}

/* Star Rating Animation */
.testimonial-stars {
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: starAppear 0.4s ease forwards;
}

.testimonial-stars i:nth-child(1) { animation-delay: 0.1s; }
.testimonial-stars i:nth-child(2) { animation-delay: 0.2s; }
.testimonial-stars i:nth-child(3) { animation-delay: 0.3s; }
.testimonial-stars i:nth-child(4) { animation-delay: 0.4s; }
.testimonial-stars i:nth-child(5) { animation-delay: 0.5s; }

@keyframes starAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.3) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Star hover effect */
.testimonial-card:hover .testimonial-stars i {
    animation: starPulse 0.6s ease infinite;
}

.testimonial-card:hover .testimonial-stars i:nth-child(1) { animation-delay: 0s; }
.testimonial-card:hover .testimonial-stars i:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:hover .testimonial-stars i:nth-child(3) { animation-delay: 0.2s; }
.testimonial-card:hover .testimonial-stars i:nth-child(4) { animation-delay: 0.3s; }
.testimonial-card:hover .testimonial-stars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.3);
    }
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.4s ease;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

.testimonial-card:hover .author-avatar::before {
    border-color: var(--primary-light);
}

.author-info strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.testimonial-card:hover .author-info strong {
    color: var(--primary-color);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

/* Carousel dots/indicators */
.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot.active::before {
    border-color: rgba(0, 180, 216, 0.3);
}

.carousel-dot:hover {
    background: var(--primary-light);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.carousel-btn i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.carousel-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-btn:hover::before {
    width: 100%;
    height: 100%;
}

.carousel-btn:hover i {
    color: var(--white);
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 45px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Floating Labels Form Group */
.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-weight: 500;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    padding: 0 5px;
    font-size: 1rem;
}

/* Label for textarea */
.form-group:has(textarea) label {
    top: 20px;
    transform: translateY(0);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

/* Floating label active state */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group.focused label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Input focus animations */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1),
                0 4px 20px rgba(0, 180, 216, 0.1);
}

/* Input hover effect */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Select arrow styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Submit button enhancement */
.contact-form .btn-block {
    padding: 16px 30px;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-block::after {
    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 ease, height 0.6s ease;
}

.contact-form .btn-block:active::after {
    width: 300px;
    height: 300px;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.info-card:hover::before {
    transform: scaleY(1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
}

.info-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
}

.info-card:hover .info-icon::before {
    border-color: rgba(0, 180, 216, 0.3);
}

.info-icon i {
    color: var(--white);
    font-size: 1.4rem;
}

.info-content h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.info-card:hover .info-content h4 {
    color: var(--primary-color);
}

.info-content p,
.info-content a {
    color: var(--text-light);
    line-height: 1.6;
}

.info-content a {
    position: relative;
}

.info-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

.info-content a:hover::after {
    width: 100%;
}


/* ===== Footer with Wave Separator ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 100px 0 30px;
    position: relative;
}

/* Wave Separator */
.footer::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%232d3436' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,69.3C960,85,1056,107,1152,101.3C1248,96,1344,64,1392,48L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover i {
    transform: scale(1.2);
}

/* Individual social colors on hover */
.social-links a:nth-child(1):hover { /* Facebook */
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

.social-links a:nth-child(2):hover { /* Instagram */
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.4);
}

.social-links a:nth-child(3):hover { /* TikTok */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.footer-links h4 {
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-links:hover h4::after {
    width: 60px;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.back-to-top i {
    animation: bounceUp 2s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Progress ring around back-to-top */
.back-to-top::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
    opacity: 1;
    animation: spin 1s linear infinite;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    color: var(--white);
    font-size: 2rem;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--white);
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile menu items animation */
    .nav-menu .nav-link {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
    
    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--primary-color);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: var(--primary-color);
    }
    
    /* Hero Responsive */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 120px;
    }
    
    .shape-1, .shape-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-3, .shape-4 {
        display: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-map {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Hero Mobile Small */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===== Animations ===== */

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 180, 216, 0.8);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Gradient Border Animation */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In From Bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Text Reveal */
@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Spin Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Underline Slide */
@keyframes underlineSlide {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Icon Bounce */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Particle Float */
@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(10px, -20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translate(-5px, -40px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(15px, -20px) rotate(270deg);
        opacity: 1;
    }
}

/* ===== Animation Utility Classes ===== */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Hover Animation Classes */
.hover-lift {
    transition: var(--transition-slow);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* GPU Acceleration for Animations */
.gpu-accelerated {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== Reduced Motion Support ===== */
@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;
    }
    
    /* Disable specific animations */
    .preloader {
        display: none !important;
    }
    
    .particle,
    .shape,
    .scroll-indicator,
    .hero-particles,
    .hero-shapes {
        display: none !important;
    }
    
    .slide {
        transition: none !important;
    }
    
    .testimonial-track {
        transition: none !important;
    }
    
    .btn-glow {
        animation: none !important;
    }
    
    .typing-text {
        border-right: none !important;
    }
}

/* ===== Lazy Loading Images ===== */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded,
img:not([data-src]) {
    opacity: 1;
}

/* Image loading placeholder */
.img-placeholder {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s infinite;
}

@keyframes shimmerLoad {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Focus Visible for Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Selection Styling ===== */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-100);
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* ===== Form Success/Error States ===== */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* ===== Loading State ===== */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading span {
    visibility: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
