
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}
/* Underline hover effect for main nav links */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover::after {
    background-color: currentColor; /* Matches text color */
    width: 100%;
}

/* Ensure "Services" aligns properly with other menu items */
.group {
    display: flex;
    align-items: center; /* Keeps it vertically centered */
    position: relative;
}

/* Adjust the "Services" text */
.group > a {
    display: flex;
    align-items: center;
    padding: 8px 0; /* Match padding with other nav items */
    height: 100%; /* Ensure it takes full height like other links */
}

/* Keep dropdown open while hovering */
.group:hover > ul,
.group:focus-within > ul {
    display: block;
}

/* Dropdown menu fix */
.group ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: white;
    color: black;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10;
    min-width: 150px;
    pointer-events: none; /* Prevent flickering */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Keep dropdown visible for a short time after hover */
.group:hover ul,
.group:focus-within ul {
    display: block;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Extend hover area below the dropdown */
.group ul::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* Underline effect for dropdown items */
.dropdown-link {
    position: relative;
    display: inline-block; /* Allows underline effect */
    padding-bottom: 4px;
}

.dropdown-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: transparent;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.dropdown-link:hover::after {
    background-color: currentColor; /* Matches text color */
    width: 100%;
}

/* Footer CTA section */
.cta-section {
    background-color: #121212;
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 20px; /* Circular corners */
    max-width: 90%; /* Narrow the width */
    margin: 0 auto;
}

.cta-section::before, .cta-section::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 87, 34, 0.4), rgba(255, 0, 0, 0.4)); /* Orange-red gradient */
    animation: move-gradient 4s infinite alternate;
}

.cta-section::before {
    top: -50%;
    left: -30%;
}

.cta-section::after {
    bottom: -50%;
    right: -30%;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.cta-text {
    max-width: 50%;
    text-align: left;
}

.cta-headline {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.cta-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.cta-btn-primary {
    background: linear-gradient(45deg, #FF5722, #FF0000); /* Orange-red gradient */
    color: #fff;
    border: none;
}

.cta-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes move-gradient {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100%, 100%);
    }
}

/* Mobile responsiveness for CTA section */
@media (max-width: 640px) {
    .cta-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-text {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .cta-buttons {
        align-items: center;
    }
}


/* Keyframes for continuous logo cloud movement */
@keyframes logoCloud {
    0% {
        transform: translateX(0); /* Start from the initial position */
    }
    100% {
        transform: translateX(-100%); /* Move to the left after the full width */
    }
}

/* Logo cloud container */
.logo-cloud {
    display: flex;
    animation: logoCloud 30s linear infinite; /* 20s for smooth continuous animation */
    /* This makes sure the logos repeat seamlessly */
}

/* Individual logo container */
.logo-container {
    flex-shrink: 0;
    width: 150px; /* Control the width of each logo container */
    padding: 1rem;
    text-align: center;
    color: black; /* Make the icons black */
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Hover effects for icons */
.logo-container:hover {
    transform: translateY(-10px); /* Lift the icon */
    color: maroon; /* Change the color on hover */
}

.logo-container i {
    font-size: 3rem; /* Adjust icon size */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transitions */
}

.logo-container:hover i {
    transform: scale(1.2); /* Scale the icon slightly on hover */
}

/* Wrapper to contain all logos */
.logo-wrapper {
    display: flex;
    gap: 50px; /* Adjust for spacing between logos */
    padding: 10px;
}

/* Overflow hidden to ensure logos don’t show outside the container */
.overflow-container {
    overflow: hidden;
    position: relative; /* Ensures it only shows the visible part of the logo cloud */
    width: 100%; /* Ensures the container takes the full width of the parent */
}

/* Responsive Design - Mobile Adjustments */

/* For small screens, increase size of logos and adjust spacing */
@media (max-width: 767px) {
    .logo-container {
        width: 150px; /* Keep the logo container size the same on mobile */
        padding: 1rem; /* Keep padding consistent */
    }

    .logo-container i {
        font-size: 2.5rem; /* Make icons a bit smaller for better fit */
    }

    .logo-wrapper {
        gap: 40px; /* Adjust gap for better spacing */
    }

    .logo-cloud {
        animation: logoCloud 25s linear infinite; /* Slightly slower animation on mobile */
    }
}

/* For extra small screens (portrait mode on mobile) */
@media (max-width: 480px) {
    .logo-container {
        width: 120px; /* Reduce logo container size slightly */
        padding: 0.5rem; /* Adjust padding for better mobile layout */
    }

    .logo-container i {
        font-size: 2rem; /* Further reduce icon size on very small screens */
    }

    .logo-wrapper {
        gap: 30px; /* Tighten the gap between logos */
    }

    .logo-cloud {
        animation: logoCloud 30s linear infinite; /* Slower animation for smaller screens */
    }
}

/* Custom styles for sticky masonry */
.sticky-masonry {
    position: sticky;
    top: 20px; /* Adjust the top value for how much it stays in place when scrolling */
}

/* Custom CSS for the overlap effect */
.form-container {
    margin-top: -5%; /* Moves the form up 5% to overlap the header */
    position: relative;
    z-index: 10;
}

@media (max-width: 1023px) {
    /* Shrink logo on smaller screens */
    #logo {
      width: 180px;
    }

    /* Reduce header height on mobile */
    #site-header {
      height: 80px;
    }

    /* Center logo and hamburger in mobile view */
    #site-header .flex {
      justify-content: space-between;
    }

    /* Slight padding tweak for better spacing */
    #mobile-menu-toggle {
      padding: 0.5rem;
    }

    /* Increase mobile menu link spacing */
    #mobile-menu ul li a {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
  }

    /* Default Desktop Styles for SVG Background (Restored) */
    .svg-bg {
        transform: translateX(60%) /* Desktop scaling */
    }

    /* Mobile Adjustments (Kept from earlier) */
    @media (max-width: 640px) {
        .svg-bg {
            transform: translateX(60%) scale(1); /* Reset scale for mobile */
            top: 0; /* Proper alignment */
            left: 50%;
            position: absolute; /* Mobile-specific position */
        }
    }


/* Geometric Accent Design */
.geometric-heading {
    position: relative;
    display: inline-block;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    text-align: center;
    margin: 0 auto;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
}

.geometric-heading::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: clamp(12px, 2.5vw, 20px);
    height: clamp(12px, 2.5vw, 20px);
    border-top: 2px solid #1a1a1a;
    border-left: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

.geometric-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: clamp(12px, 2.5vw, 20px);
    height: clamp(12px, 2.5vw, 20px);
    border-bottom: 2px solid #1a1a1a;
    border-right: 2px solid #1a1a1a;
    transition: all 0.3s ease;
}

.geometric-heading:hover::before,
.geometric-heading:hover::after {
    width: clamp(15px, 3vw, 30px);
    height: clamp(15px, 3vw, 30px);
}

/* Container for centered geometric headings */
.geometric-heading-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    padding: 0 0.5rem;
    box-sizing: border-box;
}

/* Responsive adjustments for geometric headings */
@media (max-width: 768px) {
    .geometric-heading {
        font-size: clamp(1.25rem, 2.5vw, 2rem);
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .geometric-heading {
        font-size: 1.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .geometric-heading::before,
    .geometric-heading::after {
        border-width: 1px;
        width: clamp(8px, 2vw, 15px);
        height: clamp(8px, 2vw, 15px);
    }
    
    .geometric-heading:hover::before,
    .geometric-heading:hover::after {
        width: clamp(10px, 2.5vw, 20px);
        height: clamp(10px, 2.5vw, 20px);
    }
}

/* Wave Underline Effect */
.wave-underline {
    position: relative;
    display: inline-block;
}

.wave-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 2c5 0 5-2 10-2s5 2 10 2 5-2 10-2 5 2 10 2' fill='none' stroke='%233b82f6' stroke-width='4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 30px 6px;
    animation: wave 1s linear infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .wave-underline::after {
        height: 10px;
        bottom: -6px;
        background-size: 25px 5px;
    }
}

@media (max-width: 480px) {
    .wave-underline::after {
        height: 8px;
        bottom: -5px;
        background-size: 20px 4px;
    }
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 20px;
    }
}