/* Custom Styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Particle Animation */
#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0.5;
    }

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

/* Header Enhancements */
#main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#main-header.header-scrolled .nav-link {
    color: #4B5563;
    /* gray-600 */
}

#main-header.header-scrolled .nav-link:hover {
    color: #4F46E5;
    /* indigo-600 */
}

#main-header.header-scrolled .text-3xl a {
    color: #1F2937;
    /* gray-800 */
}

#main-header.header-scrolled #mobile-menu-button {
    color: #1F2937;
    /* gray-800 */
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4F46E5;
    /* Indigo 600 */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Services Dropdown */
#services-dropdown {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transform-origin: top center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dropdown-hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    visibility: hidden;
}

.dropdown-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}

#services-dropdown .group:hover h4 {
    color: #4F46E5;
    /* indigo-600 */
}

.service-category .sub-points li {
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-category:hover .sub-points li {
    transform: translateX(5px);
    color: #4F46E5;
    /* indigo-600 */
}

/* TECSPECS Dropdown */
#techspecs-dropdown {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transform-origin: top center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#techspecs-dropdown .container {
    width: 600px;
    /* Adjust width as needed */
}

#techspecs-dropdown .grid {
    grid-template-columns: 1fr 1fr;
    /* Two columns for lists and icons */
}

#techspecs-dropdown .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#techspecs-dropdown .text-5xl {
    font-size: 3rem;
    /* Adjust icon size */
}

#techspecs-dropdown .text-xl {
    font-size: 1.25rem;
}

#techspecs-dropdown .font-bold {
    font-weight: 700;
}

#techspecs-dropdown .text-gray-800 {
    color: #1F2937;
}

#techspecs-dropdown .text-gray-600 {
    color: #4B5563;
}

#techspecs-dropdown .hover:text-indigo-600:hover {
    color: #4F46E5;
}

#techspecs-dropdown .space-y-2>li+li {
    margin-top: 0.5rem;
}

#techspecs-dropdown .mb-4 {
    margin-bottom: 1rem;
}

#techspecs-dropdown .mb-6 {
    margin-bottom: 1.5rem;
}

#techspecs-dropdown .gap-8 {
    gap: 2rem;
}

#techspecs-dropdown .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#techspecs-dropdown .py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#techspecs-dropdown .rounded-xl {
    border-radius: 0.75rem;
}

#techspecs-dropdown .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#techspecs-dropdown .bg-white {
    background-color: #ffffff;
}

#techspecs-dropdown .w-max {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
}

#techspecs-dropdown .mt-5 {
    margin-top: 1.25rem;
}

#techspecs-dropdown .absolute {
    position: absolute;
}

#techspecs-dropdown {
    left: 50%;
}

#techspecs-dropdown {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

#techspecs-dropdown-container:hover #techspecs-dropdown {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}

#techspecs-dropdown-container #techspecs-dropdown {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    visibility: hidden;
}



/* All Services Section */
.service-card-new {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    /* Ensure consistent card height */
}

.services-carousel .swiper-button-next,
.services-carousel .swiper-button-prev {
    color: #fff;
    background-color: #ef4444;
    /* Red-500 */
    width: 40px;
    height: 40px;
    border-radius: 8px;
    /* Square button style */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.services-carousel .swiper-button-next:hover,
.services-carousel .swiper-button-prev:hover {
    background-color: #dc2626;
    /* Red-600 */
}

.services-carousel-pagination.swiper-pagination-bullets {
    bottom: revert-layer;
}

.services-carousel-pagination .swiper-pagination-bullet {
    background-color: #ef4444;
    /* Red-500 */
    opacity: 0.6;
}

.services-carousel-pagination .swiper-pagination-bullet-active {
    background-color: #dc2626;
    /* Red-600 */
    opacity: 1;
}

.services-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

/* Scope navigation to Portfolio Slider */
.portfolio-slider {
    position: relative;
    padding: 40px 0;
}

.portfolio-slider .swiper-button-next,
.portfolio-slider .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.portfolio-slider .swiper-button-prev {
    left: -50px;
}

.portfolio-slider .swiper-button-next {
    right: -50px;
}

.portfolio-slider .swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    padding: 40px 0;
}

.testimonials-slider .swiper-button-next,
.testimonials-slider .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.testimonials-slider .swiper-button-prev {
    left: -50px;
}

.testimonials-slider .swiper-button-next {
    right: -50px;
}

.testimonials-slider .swiper-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

/* Technologies Showcase */
.tech-tab.active {
    background-color: #4F46E5;
    /* indigo-600 */
    color: #ffffff;
}

.tech-tab-content {
    animation: fadeIn 0.5s ease-out;
}

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

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

.tech-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Project Showcase Section */
#project-showcase {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    overflow: hidden;
}

.showcase-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4rem;
}

.scrolling-row {
    width: 100%;
    display: flex;
    overflow: hidden;
    margin-bottom: 2rem;
}

.scrolling-wrapper {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
}

.scrolling-row-left .scrolling-wrapper {
    animation: scroll-left 15s linear infinite;
}

.scrolling-row-right .scrolling-wrapper {
    animation: scroll-right 15s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0%);
    }
}

.project-tile {
    flex: 0 0 auto;
    width: 300px;
    height: 220px;
    margin: 0 1rem;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

.project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-tile:hover .project-overlay {
    opacity: 1;
}

/* Accent Colors */
.project-tile.accent-red {
    border: 4px solid #ef4444;
}

.project-tile.accent-pink {
    border: 4px solid #ec4899;
}

.project-tile.accent-green {
    border: 4px solid #22c55e;
}

.project-tile.accent-beige {
    border: 4px solid #f5f5dc;
}