/* AutoShine Pro - Professional Car Wash Website Styles */

:root {
    /* Core 3-Color Palette */
    --primary: #0066cc;
    --accent: #ffc107;
    --dark: #212529;
    
    /* Bootstrap overrides */
    --bs-primary: #0066cc;
    --bs-primary-rgb: 0, 102, 204;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background-color: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgb(33, 37, 41);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Compact navigation spacing */
.compact-nav .nav-link {
    margin: 0 0.35rem;
    font-size: 0.95rem;
}

@media (min-width: 992px) and (max-width: 1399px) {
    .compact-nav .nav-link {
        margin: 0 0.25rem;
        font-size: 0.9rem;
    }
}

.nav-link:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

@media (max-height: 700px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.scroll-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator.show {
    opacity: 0.8;
    transform: translateY(0);
    animation: bounce 2s infinite;
    animation-delay: 0.3s;
}

.scroll-indicator.show:hover {
    transform: scale(1.2);
    opacity: 1;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

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

.hero-image {
    position: relative;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1565689221354-d87f85d4aee2?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
    color: var(--primary);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2) !important;
}

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

.service-price {
    transition: transform 0.3s ease;
}

.service-card .card-header {
    border-radius: 0 !important;
}

.service-price {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.service-card ul li {
    padding: 0.5rem 0;
}

.popular-badge {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* About Section */
.about-image {
    height: 500px;
    background: linear-gradient(rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.1)), url('https://images.unsplash.com/photo-1565689221356-87158de4a8d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #004c99 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004c99;
    border-color: #004c99;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    color: var(--dark) !important;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 1px;
}

/* Form Inputs */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-control,
.form-select {
    transition: all 0.3s ease;
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-avatar {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .client-avatar {
    transform: rotate(360deg) scale(1.1);
}

/* Footer */
footer .text-muted {
    color: #adb5bd !important;
}

footer a.hover-primary:hover {
    color: var(--accent) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent) !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px) rotate(5deg);
}

.social-icon:hover i {
    color: #666 !important;
}

/* Package Cards */
.package-card {
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.package-card:hover {
    transform: translateY(-15px) rotateY(8deg) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-image {
        height: 300px;
        margin-bottom: 2rem;
    }
}

/* Stats Cards */
.stat-card {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    min-width: 120px;
}

@media (max-width: 400px) {
    .stat-card {
        padding: 0.5rem 0.75rem;
        min-width: 100px;
    }
    
    .stat-card h4 {
        font-size: 1.1rem;
    }
    
    .stat-card small {
        font-size: 0.7rem;
    }
    
    .stat-card .stat-icon {
        font-size: 1.5rem !important;
    }
}

@media (max-height: 700px) {
    .stat-card {
        padding: 0.5rem 0.75rem;
    }
    
    .stat-card h4 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .stat-card small {
        font-size: 0.65rem;
    }
    
    .stat-card .stat-icon {
        font-size: 1.3rem !important;
        margin-bottom: 0.25rem !important;
    }
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-card:hover .stat-icon {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #004c99;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive positioning to avoid newsletter button collision */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 100px; /* Move higher on mobile to avoid footer button overlap */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 120px; /* Even higher on very small screens */
        right: 15px;
    }
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.7) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
    animation: checkBounce 0.6s ease-out 0.2s both;
}

.modal-content h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-content p {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--dark);
    transform: rotate(90deg);
}

@keyframes checkBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form validation styles */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004c99;
}

/* About Section Hover Effects */
.about-image-container.hover-effect {
    transition: transform 0.3s ease;
}

.about-image-container.hover-effect:hover {
    transform: translateY(-5px);
}

.about-image {
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.feature-item {
    transition: transform 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
}

.feature-item:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 102, 204, 0.05);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* About Section Buttons Hover Effects */
.about-content .btn {
    transition: all 0.3s ease;
}

.about-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.about-content .btn-outline-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

/* Professional Scroll Animations */
.feature-card,
.service-card,
.package-card,
.testimonial-card,
.about-feature-card,
.why-choose-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--animation-delay, 0ms);
}

.feature-card.animate-in,
.service-card.animate-in,
.package-card.animate-in,
.testimonial-card.animate-in,
.about-feature-card.animate-in,
.why-choose-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Process Steps - slide in from left with rotation */
.process-step.process-animation {
    opacity: 0;
    transform: translateX(-30px) rotateY(-10deg);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--animation-delay, 0ms);
}

.process-step.process-animation.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
}

/* Gallery Items - scale and fade */
.gallery-item.gallery-animation {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: var(--animation-delay, 0ms);
}

.gallery-item.gallery-animation.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stat Cards - bounce in effect */
.stat-card.stat-animation {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition-delay: var(--animation-delay, 0ms);
}

.stat-card.stat-animation.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Section titles animation */
.section-title {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease-out;
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Subtitle animation */
.section-subtitle {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out 0.1s;
}

.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Badge animation */
.section-badge {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s ease-out;
}

.section-badge.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Subtle fade-up animation for professional look */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for cards */
.feature-card:hover,
.service-card:hover,
.package-card:hover,
.testimonial-card:hover,
.about-feature-card:hover,
.why-choose-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card base styles for smooth transitions */
.feature-card,
.service-card,
.package-card,
.testimonial-card,
.about-feature-card,
.why-choose-card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* About section specific animations */
.about-content {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.about-content.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.about-image-container {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease-out 0.1s;
}

.about-image-container.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Improvements */
footer {
    background: linear-gradient(135deg, #212529 0%, #1a1d21 100%) !important;
    position: relative;
    margin-top: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

/* Add spacing before footer */
.cta-section {
    margin-bottom: 0;
    padding-bottom: 5rem !important;
}

/* Car Background Transition Section */
.car-background-section {
    height: 200px;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4), 
        rgba(33, 37, 41, 0.8)
    ), url('images/new-luxury-car-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.car-background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(33, 37, 41, 0.1) 0%,
        rgba(33, 37, 41, 0.6) 50%,
        rgba(33, 37, 41, 0.9) 100%
    );
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .car-background-section {
        background-attachment: scroll;
        height: 150px;
    }
}

/* Profile Images Styling */
.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

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

.client-avatar {
    position: relative;
}

.client-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    transition: box-shadow 0.3s ease;
}

.client-avatar:hover::after {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* Profile Images Styling */
.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

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

.client-avatar {
    position: relative;
}

.client-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    transition: box-shadow 0.3s ease;
}

.client-avatar:hover::after {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* Why Choose Us Section */
.why-choose-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.why-choose-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
}

.why-choose-card:hover .icon-wrapper i {
    color: white !important;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-number {
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Process Section */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.step-number-wrapper {
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step:last-child::before {
    display: none;
}

@media (max-width: 991px) {
    .process-step::before {
        display: none;
    }
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

.gallery-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

/* Ripple Effect for Background Buttons */
.btn-primary,
.btn-warning,
.btn-dark {
    position: relative;
    overflow: hidden;
}

.btn-primary:not(.btn-outline-primary),
.btn-warning:not(.btn-outline-warning),
.btn-dark:not(.btn-outline-dark) {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* New Section Animations */
.why-choose-card,
.process-step,
.gallery-item {
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--animation-delay, 0ms);
}

.why-choose-card.animate-in,
.process-step.animate-in,
.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Statistics animation styles */
.stat-item {
    opacity: 0;
    transform: translateY(18px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--stat-delay, 0ms);
}

.stats-animated .stat-item {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}
