/* Global Styles */
:root {
    --primary-color: #0066ff;
    --secondary-color: #00c2ff;
    --dark-blue: #001a33;
    --medium-blue: #003366;
    --light-blue: #e6f2ff;
    --accent-color: #00ffcc;
    --text-color: #f0f0f0;
    --text-dark: #333333;
    --background-color: #050c17;
    --card-bg: rgba(5, 20, 40, 0.7);
    --card-border: rgba(0, 102, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --header-bg: rgba(5, 12, 23, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subheading {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particles-js {
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0; 
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    margin: 0;
    overflow-x: visible;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -9999px;
    right: -9999px;
    bottom: 0;
    background: var(--header-bg);
    z-index: -1;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
    display: block;
    margin-right: 10px;
    max-width: 100%;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1), transparent 50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 12, 23, 0.8);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

.main-heading {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-heading span {
    color: var(--primary-color);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature i {
    color: var(--accent-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services Section */
.services {
    padding: 50px 0;
    background-color: rgba(0, 10, 25, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease,
                border-color 0.5s ease;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.service-card:hover .service-icon {
    margin: 0;
    position: absolute;
    left: 30px;
    top: 30px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.6s ease;
}

.service-card:hover .service-icon i {
    transform: scale(0.9);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    transform-origin: center;
}

.service-card:hover h3 {
    position: absolute;
    left: 130px;
    top: 55px;
    text-align: left;
    width: calc(100% - 160px);
    margin: 0;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    padding: 0 30px;
    text-align: center;
}

.service-card:hover p {
    opacity: 0.8;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.service-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(0, 102, 255, 0),
        rgba(0, 102, 255, 0.3),
        rgba(0, 102, 255, 0)
    );
    animation: shimmer 3s infinite;
    transform: rotate(30deg);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: rgba(0, 10, 25, 0.8);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Portfolio Slider */
.portfolio-slider {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}

.portfolio-slider-container {
    width: 100%;
    overflow: hidden;
}

.portfolio-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.portfolio-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
    transition: all 0.3s ease;
}

.portfolio-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.6);
}

.portfolio-nav-btn.prev-portfolio {
    left: 10px;
}

.portfolio-nav-btn.next-portfolio {
    right: 10px;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
    min-width: 300px;
    margin: 0 15px;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-slider .portfolio-item {
    flex: 0 0 calc(33.333% - 30px);
}

.portfolio-image {
    height: 100%;
}

.portfolio-image .placeholder-image {
    height: 100%;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@media screen and (max-width: 992px) {
    .portfolio-slider .portfolio-item {
        flex: 0 0 calc(50% - 30px);
    }
}

@media screen and (max-width: 576px) {
    .portfolio-slider .portfolio-item {
        flex: 0 0 calc(100% - 30px);
    }
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(5, 12, 23, 0.95), rgba(5, 20, 40, 0.95));
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.partners-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 40px 0 20px;
    overflow: hidden;
}

.partners-carousel-container {
    width: 90%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.partners-carousel-track {
    display: flex;
    animation: infiniteScroll 40s linear infinite;
    will-change: transform;
}

/* Make duplicate items for a seamless loop */
.partner-item {
    flex: 0 0 calc(20% - 40px);
    min-width: calc(20% - 40px);
    margin: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 102, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.partner-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
    border-radius: 5px;
}

.partner-logo-container img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(2);
}

.partner-logo-container:hover img {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}

/* Define infinite scroll animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-20% * 5 - 40px * 5)); /* Move by exactly one set of 5 items, including margins */
    }
}

/* Pause animation on hover */
.partners-carousel-container:hover .partners-carousel-track {
    animation-play-state: paused;
}

/* Responsive styles for partners section */
@media screen and (max-width: 1200px) {
    .partner-item {
        flex: 0 0 calc(25% - 30px);
        min-width: calc(25% - 30px);
        margin: 0 15px;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-25% * 5 - 30px * 5)); /* Move by one set */
        }
    }
}

@media screen and (max-width: 992px) {
    .partner-item {
        flex: 0 0 calc(33.33% - 30px);
        min-width: calc(33.33% - 30px);
        margin: 0 15px;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-33.33% * 5 - 30px * 5)); /* Move by one set */
        }
    }
    
    .partner-logo-container {
        height: 100px;
    }
}

@media screen and (max-width: 768px) {
    .partner-item {
        flex: 0 0 calc(50% - 20px);
        min-width: calc(50% - 20px);
        margin: 0 10px;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% * 5 - 20px * 5)); /* Move by one set */
        }
    }
    
    .partner-logo-container {
        padding: 20px;
        height: 90px;
    }
}

@media screen and (max-width: 576px) {
    .partners {
        padding: 60px 0;
    }
    
    .partner-item {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
        margin: 0 10px;
    }
    
    .partners-carousel-container {
        width: 80%;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100% * 5 - 20px * 5)); /* Move by one set */
        }
    }
    
    .partner-logo-container {
        height: 80px;
        padding: 15px;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image .placeholder-image {
    height: 100%;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    padding: 65px 0;
    background-color: rgba(0, 10, 25, 0.8);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

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

.info-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-dark);
    color: var(--text-color);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--gradient-primary);
}

.contact-form {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background: var(--dark-blue);
    padding: 70px 0 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: var(--transition);
    white-space: normal;
    word-break: break-word;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
        width: 100%;
    }
    
    nav {
        width: 95%;
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        right: 0;
        background: var(--background-color);
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid var(--primary-color-dark);
    }

    .nav-links.active {
        display: flex;
    }

    .header-logo {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 0 20px;
    }
    
    .main-heading {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature {
        width: 100%;
        justify-content: center;
        padding: 8px 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 0;
        width: 100%;
    }
    
    nav {
        width: 100%;
        padding: 0 15px;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    
    .main-heading {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .tagline {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        margin-bottom: 2rem;
        max-width: 250px;
    }
    
    .feature {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Extra styles for very small screens */
@media (max-width: 374px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .hero-features {
        max-width: 220px;
    }
    
    .feature {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .cta-buttons .btn {
        min-width: 180px;
        padding: 10px 15px;
    }
}

/* Process Section - Modern Timeline */
.process-section {
    position: relative;
    padding: 100px 0 150px; /* Increased bottom padding from default */
    overflow: hidden;
    background: #06080cb8; /* Semi-transparent background - restored */
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box; /* Include padding in width calculation */
    background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 194, 255, 0.05) 0%, transparent 50%);
}

.process-section * {
    box-sizing: border-box; /* Apply box-sizing to all children */
}

.process-section .container {
    max-width: 1400px; /* Wider container */
    width: 90%;
    position: relative;
    overflow: visible; /* Allow content to flow outside container */
    margin: 0 auto; /* Center the container */
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, rgba(0, 102, 255, 0.15), transparent),
        radial-gradient(1px 1px at 75px 75px, rgba(0, 194, 255, 0.1), transparent);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease forwards;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1200px; /* Wider timeline */
    margin: 0 auto;
    z-index: 2;
    min-height: 1500px; /* Ensure enough height for the timeline */
    padding-bottom: 150px; /* Add extra padding at bottom */
    overflow: visible; /* Prevent scrollbars */
    width: 100%; /* Ensure full width */
}

/* Vertical Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 10%,
        var(--primary-color) 50%,
        var(--accent-color) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    opacity: 1;
    height: 0; /* Start with no height */
    transition: height 0.3s ease; /* Faster transition - reduced from 0.8s */
    will-change: height;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
    opacity: 1;
    animation: pulseStart 1s infinite; /* Faster animation - reduced from 2s */
}

/* Process Step */
.process-step {
    position: absolute;
    opacity: 0;
    visibility: hidden; /* Initially hidden */
    display: flex;
    align-items: center;
    width: 100%;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), /* Faster transition - reduced from 0.6s */
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s 0.4s;
    will-change: opacity, transform;
    overflow: visible; /* Allow content to overflow */
    box-sizing: border-box;
}

/* Step Number Circle - Positioned on the timeline */
.step-number {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(5, 12, 23, 0.8);
    border: 2px solid transparent;
    background-clip: padding-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0) rotate(-90deg);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Faster transition - reduced from 0.8s */
    background: linear-gradient(135deg, rgba(5, 12, 23, 0.9), rgba(10, 20, 40, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 2px 10px rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    will-change: transform, opacity;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transform: scale(1.1);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), /* Faster transition - reduced from 0.8s */
                opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-number::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    z-index: -2;
    opacity: 0;
    transform: scale(1.5);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), /* Faster transition - reduced from 1s */
                opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Left-aligned steps (01, 03, 05) */
.process-step.left {
    justify-content: flex-end;
    padding-right: 50%;
    padding-left: 0;
    transform: translateX(-50px);
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.process-step.left .connector-line {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0; /* Start with no width */
    height: 2px;
    background: linear-gradient(to left, var(--primary-color), transparent);
    transform: translateY(-50%);
    transition: width 0.4s cubic-bezier(0.76, 0, 0.24, 1); /* Faster transition - reduced from 0.8s */
    z-index: 3;
    will-change: width;
}

.process-step.left .step-content {
    max-width: 500px;
    width: 100%;
    opacity: 0;
    transform: translateX(-50px) translateY(30px);
    margin-right: 100px;
    will-change: transform, opacity;
    box-sizing: border-box;
}

/* Right-aligned steps (02, 04, 06) */
.process-step.right {
    justify-content: flex-start;
    padding-left: 50%;
    padding-right: 0;
    transform: translateX(50px);
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

.process-step.right .connector-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0; /* Start with no width */
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    transform: translateY(-50%);
    transition: width 0.4s cubic-bezier(0.76, 0, 0.24, 1); /* Faster transition - reduced from 0.8s */
    z-index: 3;
    will-change: width;
}

.process-step.right .step-content {
    max-width: 500px;
    width: 100%;
    text-align: right;
    opacity: 0;
    transform: translateX(50px) translateY(30px);
    margin-left: 100px;
    will-change: transform, opacity;
    box-sizing: border-box;
}

.process-step.animate {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s 0s;
}

.process-step.animate .step-number {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0deg);
    color: #ffffff;
    animation: pulse 1.5s ease-in-out infinite 0.3s; /* Faster animation with shorter delay */
}

.process-step.animate .step-number::before {
    opacity: 1;
    transform: scale(1);
}

.process-step.animate .step-number::after {
    opacity: 1;
    transform: scale(1);
}

.process-step.animate.left .connector-line,
.process-step.animate.right .connector-line {
    width: 100px;
}

/* Disappearing animation when scrolling up */
.process-step.disappear {
    opacity: 0;
    transform: translateX(-50px);
    visibility: hidden;
    transition: opacity 0.5s ease,
                transform 0.5s ease,
                visibility 0s 0.5s;
}

.process-step.disappear.right {
    transform: translateX(50px);
}

.process-step.disappear .connector-line {
    width: 0 !important;
    transition: width 0.4s ease;
}

.process-step.disappear .step-number {
    transform: translateX(-50%) scale(0) rotate(90deg);
    opacity: 0;
    transition: all 0.5s ease;
}

.process-step.disappear .step-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

/* Step Content */
.step-content {
    padding: 40px;
    background: rgba(5, 20, 40, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.15);
    backdrop-filter: blur(15px);
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Hide overflow within content boxes */
    z-index: 1;
}

.step-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 194, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent);
    transition: 0.5s;
}

.step-content:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.15);
}

.step-content:hover::before {
    opacity: 1;
}

.step-content:hover::after {
    left: 100%;
    transition: 0.8s ease;
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 16px;
    position: relative;
}

.step-content p {
    color: var(--text-color-light);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Animation Classes - Enhanced */
.process-step.animate .step-content {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

/* Shine effect for content */
.content-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 1.5s ease-in-out;
    z-index: 5;
    pointer-events: none;
}

/* Ripple effect for number */
.number-ripple {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0.8;
    animation: ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

/* Enhanced Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 102, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

@keyframes pulseStart {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
    }
    70% {
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mobile Responsiveness for Process Section - Improved to prevent overlapping */
@media (max-width: 992px) {
    .process-section {
        padding: 80px 20px 180px; /* Increased bottom padding */
    }
    
    .process-section .container {
        width: 95%;
        overflow: visible;
        padding: 0;
    }
    
    .timeline-container {
        overflow: visible;
        padding: 0;
        min-height: 1500px; /* Ensure enough height */
        padding-bottom: 200px; /* Extra padding at bottom */
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .step-number {
        left: 30px;
        transform: translateX(-50%) scale(0) rotate(-90deg);
    }
    
    .process-step.animate .step-number {
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
    
    /* Adjust vertical spacing between steps */
    .process-step:nth-child(1) { top: 0 !important; }
    .process-step:nth-child(2) { top: 230px !important; }
    .process-step:nth-child(3) { top: 460px !important; }
    .process-step:nth-child(4) { top: 690px !important; }
    .process-step:nth-child(5) { top: 920px !important; }
    .process-step:nth-child(6) { top: 1150px !important; }
    
    .process-step.left,
    .process-step.right {
        padding-left: 80px;
        padding-right: 20px;
        justify-content: flex-start;
        transform: translateX(0);
        margin-bottom: 0; /* Remove margin, using absolute positioning instead */
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }
    
    .process-step.left .connector-line,
    .process-step.right .connector-line {
        left: 30px;
        right: auto;
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
    
    .process-step.left .step-content,
    .process-step.right .step-content {
        text-align: left;
        margin-left: 30px;
        margin-right: 0;
        max-width: calc(100% - 110px);
        box-sizing: border-box;
        width: 100%;
    }
    
    .process-step.animate.left .connector-line,
    .process-step.animate.right .connector-line {
        width: 50px;
    }
    
    .process-step.disappear.left,
    .process-step.disappear.right {
        transform: translateX(-30px);
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 60px 15px 180px; /* Increased bottom padding */
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .timeline-container {
        min-height: 1700px; /* Increased height for more spacing */
        padding-bottom: 250px; /* More padding at the bottom */
    }
    
    /* Adjust vertical spacing between steps */
    .process-step:nth-child(1) { top: 0 !important; }
    .process-step:nth-child(2) { top: 270px !important; }
    .process-step:nth-child(3) { top: 540px !important; }
    .process-step:nth-child(4) { top: 810px !important; }
    .process-step:nth-child(5) { top: 1080px !important; }
    .process-step:nth-child(6) { top: 1350px !important; }
    
    .step-number {
        width: 70px; /* Smaller circles */
        height: 70px;
        font-size: 1.8rem;
        left: 25px;
    }
    
    .timeline-line {
        left: 25px;
    }
    
    .process-step.left,
    .process-step.right {
        padding-left: 60px;
        padding-right: 15px;
    }
    
    .process-step.left .connector-line,
    .process-step.right .connector-line {
        left: 25px;
    }
    
    .process-step.left .step-content,
    .process-step.right .step-content {
        padding: 25px;
        margin-left: 25px;
        max-width: calc(100% - 85px); /* Adjusted for smaller screen */
    }
    
    .step-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .step-number::after {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .process-section {
        padding: 50px 10px 200px; /* Increased bottom padding */
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .timeline-container {
        min-height: 1900px; /* Increased height for more spacing */
        padding-bottom: 300px; /* Even more padding at the bottom */
    }
    
    /* Adjust vertical spacing between steps */
    .process-step:nth-child(1) { top: 0 !important; }
    .process-step:nth-child(2) { top: 300px !important; }
    .process-step:nth-child(3) { top: 600px !important; }
    .process-step:nth-child(4) { top: 900px !important; }
    .process-step:nth-child(5) { top: 1200px !important; }
    .process-step:nth-child(6) { top: 1500px !important; }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        left: 20px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .process-step.left,
    .process-step.right {
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .process-step.left .connector-line,
    .process-step.right .connector-line {
        left: 20px;
    }
    
    .process-step.left .step-content,
    .process-step.right .step-content {
        padding: 20px;
        margin-left: 20px;
        max-width: calc(100% - 70px);
    }
    
    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .step-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .process-step.animate.left .connector-line,
    .process-step.animate.right .connector-line {
        width: 30px;
    }
    
    .step-number::after {
        width: 70px;
        height: 70px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .process-section {
        padding: 40px 5px 220px; /* Further increased bottom padding */
    }
    
    .timeline-container {
        min-height: 2100px; /* Further increased height for small screens */
        padding-bottom: 350px; /* Maximum padding for smallest screens */
    }
    
    /* Adjust vertical spacing between steps */
    .process-step:nth-child(1) { top: 0 !important; }
    .process-step:nth-child(2) { top: 330px !important; }
    .process-step:nth-child(3) { top: 660px !important; }
    .process-step:nth-child(4) { top: 990px !important; }
    .process-step:nth-child(5) { top: 1320px !important; }
    .process-step:nth-child(6) { top: 1650px !important; }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        left: 15px;
    }
    
    .timeline-line {
        left: 15px;
    }
    
    .process-step.left,
    .process-step.right {
        padding-left: 40px;
        padding-right: 5px;
    }
    
    .process-step.left .connector-line,
    .process-step.right .connector-line {
        left: 15px;
    }
    
    .process-step.left .step-content,
    .process-step.right .step-content {
        padding: 15px;
        margin-left: 15px;
        max-width: calc(100% - 55px);
    }
    
    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .step-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .process-step.animate.left .connector-line,
    .process-step.animate.right .connector-line {
        width: 25px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .process-section {
        padding: 40px 15px 180px; /* Increased bottom padding */
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .timeline-container {
        min-height: 1550px; /* Adjusted for landscape with more space */
        padding-bottom: 250px; /* Adequate padding for landscape */
    }
    
    /* Adjust vertical spacing between steps */
    .process-step:nth-child(1) { top: 0 !important; }
    .process-step:nth-child(2) { top: 230px !important; }
    .process-step:nth-child(3) { top: 460px !important; }
    .process-step:nth-child(4) { top: 690px !important; }
    .process-step:nth-child(5) { top: 920px !important; }
    .process-step:nth-child(6) { top: 1150px !important; }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-content {
        padding: 15px;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .step-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden; /* Keep this to prevent horizontal scrollbar */
}

.team-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0 20px;
    width: 100%;
    overflow: visible; /* Allow buttons to be visible outside container */
}

.team-carousel-container {
    width: 100%;
    overflow: hidden; /* This prevents the horizontal scrolling */
    padding: 10px 0;
    position: relative;
    max-width: calc(100% - 140px); /* Account for nav buttons */
}

.team-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 auto;
    justify-content: flex-start;
    width: 100%;
    overflow: visible; /* Allow for hover effects to be visible */
}

.team-member {
    min-width: calc(33.333% - 40px);
    margin: 0 20px;
    text-align: center;
    transition: transform 0.3s ease;
    padding-top: 10px;
    overflow: visible; /* Ensures hover effects are visible */
    flex: 0 0 calc(33.333% - 40px); /* Fixed width for consistent slides */
    /* Fix height to prevent inconsistent vertical sizing */
    height: auto;
    box-sizing: border-box;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden; /* Keep overflow hidden for the circle shape */
    border: 5px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.member-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 102, 255, 0.9), rgba(0, 194, 255, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    overflow: hidden; /* Ensure content doesn't spill out */
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.team-member:hover .member-image-circle {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.member-social {
    display: flex;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.member-social a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.member-info {
    padding: 10px;
    margin-bottom: 10px; /* Add bottom margin */
    height: auto; /* Allow height to adjust to content */
    overflow: visible; /* Allow for the ::after element to be visible */
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.member-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 10px;
}

.team-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0.8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-carousel-button-left {
    left: 10px;
}

.team-carousel-button-right {
    right: 10px;
}

.team-nav-btn:hover {
    opacity: 1;
    background-color: var(--accent-color);
}

.team-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ensure no vertical overflow in the team section */
#team {
    overflow: hidden;
}

@media screen and (max-width: 992px) {
    .team-member {
        min-width: calc(50% - 40px);
        flex: 0 0 calc(50% - 40px);
    }
    
    .member-image-circle {
        width: 160px;
        height: 160px;
    }
    
    .team-carousel-container {
        max-width: calc(100% - 120px);
    }
}

@media screen and (max-width: 768px) {
    .team-member {
        min-width: calc(100% - 40px);
        flex: 0 0 calc(100% - 40px);
    }
    
    .member-image-circle {
        width: 140px;
        height: 140px;
    }
    
    .team-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .team-carousel-container {
        max-width: calc(100% - 100px);
    }
}

/* ————— 1. Universal media-query helpers ————— */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ————— 2. Fully fluid section containers ————— */
.container,
.section-wrapper {
    width: 100%;
    max-width: 1200px;   /* keeps content from stretching on 4K */
    margin-inline: auto;
    padding-inline: 1rem;
}

/* ————— 3. Grid that auto-adjusts column count ————— */
.process-container,
.team-wrapper,
.cards-grid {
    display: grid;
    gap: 2rem;
    /* 250 px is the min card width before wrapping */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ————— 4. Mobile-first navigation ————— */
.nav-toggle {
    display: none;           /* hidden on desktop */
    cursor: pointer;
    width: 2rem;
    aspect-ratio: 1/1;
}

/* Desktop nav (>= 768 px) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

/* Mobile nav (< 768 px) */
@media (max-width: 767px) {
    .nav-links {
        position: absolute;
        inset: 100% 0 auto 0;          /* drops below header */
        background: var(--background-color);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        display: none;                /* hidden until toggled */
        box-shadow: var(--box-shadow);
    }
    .nav-links.open { display: flex; } /* JS will add .open */
    .nav-toggle { display: block; }
}

/* ————— 5. Optional utility classes ————— */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* Specific grid layout for the process section on desktop */
@media (min-width: 992px) {
    .process-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Additional fix for the footer at smaller screens */
@media (max-width: 535px) {
    /* Ensure no horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }
    
    /* Fix the footer container */
    footer .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Make footer full width with no overflow */
    footer {
        width: 100vw;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding: 50px 0 0;
    }
    
    /* Ensure footer content doesn't overflow */
    .footer-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    
    /* Make footer links stack vertically */
    .footer-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-column {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* Improve footer responsiveness at smaller screens */
@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 25px;
    }
    
    .footer-column ul li {
        display: inline-block;
        margin: 0 10px 10px 0;
    }
    
    .footer-column ul li a {
        padding: 5px 10px;
        border-radius: 4px;
        background: rgba(0, 102, 255, 0.1);
        display: block;
    }
    
    .footer-column ul li a:hover {
        background: rgba(0, 102, 255, 0.2);
        padding-left: 10px;
    }
}

/* Fix contact section responsiveness at small screens */
@media (max-width: 540px) {
    /* Ensure contact section doesn't overflow */
    .contact {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 50px 0;
    }
    
    .contact .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* Fix contact container layout */
    .contact-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }
    
    .contact-info {
        width: 100%;
        padding-right: 0;
    }
    
    /* Make form more mobile-friendly */
    .contact-form {
        width: 100%;
        padding: 25px 15px;
        box-sizing: border-box;
        border-radius: 10px;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Make social links centered */
    .social-links {
        justify-content: center;
        margin-top: 30px;
    }
    
    /* Adjust info items for mobile */
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center;
    }
    
    .info-item i {
        margin-bottom: 5px;
    }
}

/* Add one more media query specifically for problematic sizes */
@media (min-width: 481px) and (max-width: 600px) {
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group input, 
    .form-group textarea {
        font-size: 14px;
    }
}

/* Fix for all form inputs to ensure they don't exceed container width */
.form-group input, 
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Add specific style to fix scrollbar issue on all sections */
section {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: visible; /* Allow vertical content to be visible */
}

.team-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    height: 20px; /* Fixed height */
    overflow: hidden; /* Prevent any potential overflow */
}

.team-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.team-dot.active {
    background: var(--primary-color);
}

/* Ensure no vertical overflow in the team section */
#team {
    overflow: hidden;
}