/* Color Palette - New Scheme */
:root {
    --color-primary-dark: #1F2937;
    /* Dark Slate Gray (near black) */
    --color-primary-light: #374151;
    /* Medium Slate Gray */
    --color-accent: #3B82F6;
    /* Vibrant Electric Blue */
    --color-text-dark: #1F2937;
    /* Dark text for light backgrounds */
    --color-text-light: #F9FAFB;
    /* Light text for dark backgrounds */
    --color-bg-light: #F9FAFB;
    /* Very light gray background */
    --color-bg-medium: #F3F4F6;
    /* Light gray background */
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    /* Changed font to Roboto */
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg-medium);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Hero Carousel Styles */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Hide overflowing images */
}

.slider-container {
    position: relative;
    width: 100%;
    /* Ensure container takes full width */
    height: 100%;
    /* Ensure container takes full height */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Force image to full width of container */
    height: 100%;
    /* Force image to full height of container */
    object-fit: cover;
    /* Cover the area without distorting aspect ratio */
    opacity: 0;
    /* Start hidden */
    transition: opacity 1s ease-in-out;
    /* Smooth fade transition */
    z-index: 1;
    /* Default z-index for all slides */
}

.hero-slide.active {
    opacity: 1;
    /* Make active slide visible */
    z-index: 2;
    /* Bring active slide to front */
}

/* Header & Navigation Colors */
header {
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary-light));
    /* Dark Blue/Charcoal Gradient */
}

header nav a {
    color: var(--color-text-light);
}

header nav a:hover {
    color: var(--color-accent);
    /* Changed to new accent color */
}

/* Text Colors (Tailwind overrides - updated to new palette) */
.text-blue-800 {
    color: var(--color-primary-dark);
}

/* Used for headings on light bg */
.text-orange-500 {
    color: var(--color-accent);
}

/* Used for icons */
.text-orange-600 {
    color: var(--color-accent);
}

/* Used for highlighted text */
.text-blue-600 {
    color: var(--color-accent);
}

/* Used for links */

/* Button Styles - updated to new palette */
.bg-orange-500 {
    background-color: var(--color-accent);
}

.hover\:bg-orange-600:hover {
    background-color: #2F6FD8;
}

/* Slightly darker accent blue */
.bg-blue-800 {
    background-color: var(--color-primary-dark);
}

.hover\:bg-blue-700:hover {
    background-color: #2C3E50;
}

/* Existing hover for dark blue */

/* Hero Section Box Styling */
#home {
    border: 5px solid var(--color-accent);
    /* Add a border to the hero section */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Add a subtle shadow */
    margin: 20px auto;
    /* Center the box and add some margin */
    max-width: calc(100% - 40px);
    /* Ensure it doesn't overflow on small screens */
    border-radius: 15px;
    /* Slightly rounded corners for the box */
    overflow: hidden;
    /* Ensure content stays within the rounded corners */
}


/* Fancy Animations */

/* Fade In for Hero Section elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Bounce In for H1 (Hero) */
@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
        transform: scale3d(0.3, 0.3, 0.3);
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        -webkit-transform: scale3d(0.9, 0.9, 0.9);
        transform: scale3d(0.9, 0.9, 0.9);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        -webkit-transform: scale3d(0.97, 0.97, 0.97);
        transform: scale3d(0.97, 0.97, 0.97);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* Slide Up for Hero P */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

/* Pulse effect for CTA button - updated to new accent color */
@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    /* Using new accent blue */
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    /* Using new accent blue */
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }

    /* Using new accent blue */
}

.animate-pulse-effect {
    animation: pulseEffect 2s infinite;
    animation-delay: 1s;
}

/* Spin on Hover for Service Icons */
.service-card i {
    transition: transform 0.3s ease-in-out;
}

.service-card:hover i {
    transform: rotateY(180deg);
    /* Flip effect */
}

/* Scroll-triggered animations (using Intersection Observer in JS) */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay for sequential animations */
.service-card:nth-child(1).is-visible {
    transition-delay: 0s;
}

.service-card:nth-child(2).is-visible {
    transition-delay: 0.1s;
}

.service-card:nth-child(3).is-visible {
    transition-delay: 0.2s;
}

.service-card:nth-child(4).is-visible {
    transition-delay: 0.3s;
}

.why-us-card:nth-child(1).is-visible {
    transition-delay: 0s;
}

.why-us-card:nth-child(2).is-visible {
    transition-delay: 0.1s;
}

.why-us-card:nth-child(3).is-visible {
    transition-delay: 0.2s;
}

.why-us-card:nth-child(4).is-visible {
    transition-delay: 0.3s;
}

.contact-info-card:nth-child(1).is-visible {
    transition-delay: 0s;
}

.contact-info-card:nth-child(2).is-visible {
    transition-delay: 0.1s;
}

.contact-info-card:nth-child(3).is-visible {
    transition-delay: 0.2s;
}

#contact form.is-visible {
    transition-delay: 0.3s;
}

h2.is-visible {
    transition-delay: 0s;
}

/* Headings appear first */

/* About Blocks Animation Delays */
.about-block:nth-child(1).is-visible {
    transition-delay: 0s;
}

.about-block:nth-child(2).is-visible {
    transition-delay: 0.1s;
}

.about-block:nth-child(3).is-visible {
    transition-delay: 0.2s;
}

.about-block:nth-child(4).is-visible {
    transition-delay: 0.3s;
}

.about-block:nth-child(5).is-visible {
    transition-delay: 0.4s;
}