/* Modern CSS for The Ark Veterinary Clinic */

/* Root Variables - Modern Color Palette */
:root {
    --primary-color: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #7DD3FC;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --accent-purple: #8B5CF6;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
*,
html {
    /* margin: 0;
    padding: 0;
    box-sizing: border-box; */
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

body {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

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

/* Utility Classes */
.section-padding {
    padding: 40px 0;
}

.section-title {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.bg-primary-light {
    background-color: rgba(14, 165, 233, 0.1) !important;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, #374151 100%);
    color: var(--white);
    padding: 24px 0;
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.cookie-consent.hidden {
    display: none;
}


.logo-img {
    max-height: 48px;
    /* Clean professional navbar size */
    width: auto;
    /* Maintain aspect ratio */
    display: block;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    /* Prevent wrapping in navbar */
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.top-bar a {
    color: var(--white);
    margin-right: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}

.status-badge {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.top-social a {
    font-size: 1.3rem;
}

/* Navigation */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.nav-cta-buttons .btn {
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section - Modern & Attractive with Parallax Effects */
.hero-section {
    background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 50%, #FEF3C7 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    /* Enable 3D transforms */
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Parallax Background Layer 1 - Slow moving gradient */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    font-size: 3.75rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Statistics Section Background - Dynamic & Happening */
.bg-pets-treated {
    color: var(--white);
    position: relative;
    overflow: hidden;
    /* Animated gradient background */
    background: linear-gradient(-45deg, #10B981, #0EA5E9, #8B5CF6, #EC4899);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Animated gradient keyframes */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Overlay with tiled pattern */
.bg-pets-treated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../assets/stats_tile_pattern.png");
    background-size: 150px 150px;
    background-repeat: repeat;
    opacity: 0.15;
    animation: patternSlide 20s linear infinite;
    z-index: 1;
}

@keyframes patternSlide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 150px 150px;
    }
}

/* Floating particles effect */
.bg-pets-treated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    background-position: 0 0, 50px 50px, 100px 100px;
    animation: particlesFloat 30s linear infinite;
    opacity: 0.4;
    z-index: 1;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Ensure content stays above decorative layers */
.bg-pets-treated .container {
    position: relative;
    z-index: 2;
}

.hero-title-gradient {
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-purple)); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 36px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-badges .badge {
    font-size: 1rem;
    padding: 12px 20px;
    margin-right: 0;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-badges .badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    border: none;
}

.hero-badges .bg-success {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.hero-badges .bg-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta .btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
}

.hero-cta .btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.hero-cta .btn-success {
    background: linear-gradient(135deg, #22C55E, var(--secondary-color));
}

.hero-cta .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-cta .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero-image {
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* Hero Image Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Slider Navigation Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slider-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-arrow-prev {
    left: 20px;
}

.hero-slider-arrow-next {
    right: 20px;
}

.hero-slider-arrow i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.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.8);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}


/* Decorative Elements for Hero with Parallax */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 1;
}

/* Parallax Floating Decorative Elements */
.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Floating Paw Prints - Parallax Layer 2 */
.hero-section .container::before {
    content: '🐾';
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    top: 10%;
    left: 5%;
    animation: floatPaw1 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.hero-section .container::after {
    content: '🐾';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.1;
    top: 60%;
    right: 8%;
    animation: floatPaw2 10s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Additional floating hearts for warmth */
.hero-content::before {
    content: '❤️';
    position: absolute;
    font-size: 2rem;
    opacity: 0.12;
    top: 30%;
    right: -10%;
    animation: floatHeart 12s ease-in-out infinite;
    pointer-events: none;
}

.hero-content::after {
    content: '🐾';
    position: absolute;
    font-size: 2.8rem;
    opacity: 0.1;
    bottom: 10%;
    left: -5%;
    animation: floatPaw3 9s ease-in-out infinite;
    pointer-events: none;
}

/* Parallax Float Animations */
@keyframes floatPaw1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(10deg);
    }

    50% {
        transform: translate(-10px, -50px) rotate(-5deg);
    }

    75% {
        transform: translate(15px, -25px) rotate(8deg);
    }
}

@keyframes floatPaw2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-25px, 40px) rotate(-12deg) scale(1.1);
    }

    66% {
        transform: translate(15px, 20px) rotate(8deg) scale(0.95);
    }
}

@keyframes floatPaw3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, -40px) rotate(15deg);
    }
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-20px, -20px) scale(1.05);
    }

    50% {
        transform: translate(10px, -35px) scale(0.95);
    }

    75% {
        transform: translate(-15px, -15px) scale(1.02);
    }
}

/* Enhanced 3D Parallax for Hero Content */
.hero-content {
    padding: 40px 0;
    position: relative;
    z-index: 2;
    /* Parallax effect on scroll */
    transform: translateZ(20px);
    will-change: transform;
}

/* Enhanced 3D effect for hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    /* Add 3D depth */
    transform: translateZ(10px) rotateY(-2deg);
    transition: transform 0.6s ease;
}

.hero-slider:hover {
    transform: translateZ(15px) rotateY(0deg);
}

/* About Section */
.about-content {
    padding: 30px;
}

.about-content .lead {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-dark);
    font-weight: 400;
}

/* Location Cards */
.location-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
}

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

.location-card .card-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

/* Hours Section */
.hours-section {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-light) 100%);
}

.hours-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    background: var(--white);
}

.hours-card .card-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.status-display {
    font-size: 1.6rem;
    font-weight: 700;
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-light);
}

.status-display.open {
    color: var(--secondary-color);
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
}

.status-display.closed {
    color: #EF4444;
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
}

.hours-table .table td {
    padding: 16px;
    font-size: 1.15rem;
}

/* Doctor Cards */
.doctor-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: var(--white);
}

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

.doctor-card .card-img-top {
    height: 320px;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .card-img-top {
    transform: scale(1.1);
}

.doctor-card .card-body {
    padding: 28px;
}

.doctor-card .card-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 16px;
    font-weight: 700;
}

.doctor-badge {
    margin: 20px 0;
}

.doctor-specialties .badge {
    margin: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
}

.consultation-fee {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 20px 0;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.service-card .card-img-top {
    height: 140px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 20px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
    z-index: 1;
}

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

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

.service-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    transition: var(--transition);
}

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

.service-card .card-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card .card-text {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: brightness(0.75);
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    font-size: 3.5rem;
    color: var(--white);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Before/After Treatment Gallery */
.before-after-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.before-after-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.before-after-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make BEFORE images grayscale (black and white) */
.before-image img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Keep AFTER images in full color */
.after-image {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.3s ease;
}

.image-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 10;
}

.before-label {
    left: 20px;
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: var(--white);
}

.after-label {
    right: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: var(--white);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    z-index: 15;
    transition: var(--transition);
}

.slider-button i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.before-after-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    pointer-events: none;
    z-index: 10;
}

.before-after-description {
    padding: 20px;
    text-align: center;
    background: var(--bg-light);
}

.before-after-description p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Testimonials */
#testimonials {
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '\f1b0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -50px;
    right: -20px;
    font-size: 20rem;
    color: rgba(14, 165, 233, 0.03);
    pointer-events: none;
}

.testimonial-card {
    background: var(--white);
    padding: 60px 48px 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    position: relative;
    margin: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card::after {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 30px;
    left: 48px;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.15;
}

.stars {
    color: #FBBF24;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 24px 0;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.testimonial-author strong {
    color: var(--primary-color);
}

/* Statistics Counter Section */
.stats-section {
    position: relative;
    /* Tiled pattern background */
    background-image: linear-gradient(rgb(16 181 151), rgb(20 158 222 / 86%)), url(../assets/stats_tile_pattern.png);
    background-size: auto, 200px 200px;
    background-position: center, 0 0;
    background-repeat: no-repeat, repeat;
    /* overflow: hidden; */
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-card {
    position: relative;
    z-index: 3;
    padding: 40px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Staggered entrance animation */
    animation: statCardEntrance 0.8s ease-out backwards;
}

/* Staggered animation delays for each card */
.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes statCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    /* Pulsing glow animation */
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.6));
    }
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(360deg);
    color: var(--white);
    filter: drop-shadow(0 8px 25px rgba(255, 255, 255, 0.8));
    animation: none;
    /* Stop pulsing on hover */
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 12px;
    font-family: "Roboto", sans-serif;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 255, 255, 0.6);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Before/After Gallery */
.before-after-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

.before-after-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.before-after-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
}

.before-after-container {
    position: relative;
    padding: 0;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    user-select: none;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.after-image {
    clip-path: inset(0 50% 0 0);
}

.image-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 4px;
    z-index: 2;
}

.before-label {
    left: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.after-label {
    right: 20px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.slider-button i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.slider-button::before,
.slider-button::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 2px;
    height: 100vh;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.slider-button::before {
    left: 50%;
    transform: translate(-50%, -50%);
}

.before-after-description {
    padding: 20px 24px;
    background: var(--bg-light);
}

.before-after-description p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Instagram Feed */
#instagram-feed {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-light) 100%);
}

.instagram-post {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(16, 185, 129, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0.5);
    transition: var(--transition);
}

.instagram-post:hover .instagram-overlay i {
    transform: scale(1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-buttons .btn {
    padding: 18px 40px;
    font-size: 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.contact-buttons .btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-info {
    font-size: 1.15rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1F2937 100%);
    color: var(--white);
    padding: 70px 0 40px;
    position: relative;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 700;
}

.footer p {
    color: #D1D5DB;
}

.footer a {
    color: #D1D5DB;
    transition: var(--transition);
}

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

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

.footer-links li {
    margin-bottom: 12px;
}

.social-links a {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    margin-right: 12px;
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.floating-action-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    transform: scale(1.15);
    color: var(--white);
    animation: none;
}

/* Modal Customization */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 24px;
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-family: "Roboto", "Helvetica", "Arial", sans-serif;
        font-size: 2.25rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 24px;
        margin-top: 16px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }

    .nav-cta-buttons {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-badges,
    .hero-cta {
        justify-content: center;
    }

    .top-bar {
        font-size: 0.85rem;
        text-align: center;
    }

    .top-contacts,
    .top-social {
        justify-content: center;
        margin: 8px 0;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-cta .btn {
        flex: 1;
        min-width: 200px;
    }

    /* Slider responsive styles */
    .hero-slider-container {
        height: 400px;
    }

    .hero-slider-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-slider-arrow-prev {
        left: 10px;
    }

    .hero-slider-arrow-next {
        right: 10px;
    }

    .hero-slider-arrow i {
        font-size: 1rem;
    }

    .hero-slider-dots {
        bottom: 15px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .hero-dot.active {
        width: 24px;
    }
}


/* Print Styles */
@media print {

    .navbar,
    .footer,
    .floating-action-btn,
    .cookie-consent,
    .top-bar {
        display: none;
    }

    .modal-body {
        padding: 24px;
    }
}

/* Accessibility */
.btn:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}