/* Professional Landing Page CSS for ACCPO */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding-top: 0; /* Reset any default padding - hero section will handle its own spacing */
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Professional Color Palette */
:root {
    --primary-blue: #2c5aa0;
    --primary-blue-light: #3d73cc;
    --primary-blue-dark: #1e3d6f;
    --secondary-gray: #5a6b7d;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f8f9fb;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --success-green: #28a745;
    --text-dark: #2c3e50;
    --text-light: #000000;
    --shadow-light: 0 2px 10px rgba(44, 90, 160, 0.1);
    --shadow-medium: 0 5px 20px rgba(44, 90, 160, 0.15);
    --shadow-strong: 0 10px 30px rgba(44, 90, 160, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.highlight {
    color: var(--text-light);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999; /* Maximum z-index to ensure it stays above all content */
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
    box-shadow: var(--shadow-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    z-index: 1000;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
    border-radius: 2px;
}

/* Animated hamburger to X */
.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 90vh; /* Reduced from 100vh */
    display: flex;
    align-items: center;
    padding: 40px 0 40px; /* Reduced padding significantly */
    margin-top: 70px; /* Reduced margin */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    position: relative;
    z-index: 1;
    overflow: hidden; /* For wave animation */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Above wave animation */
}

.hero-content {
    padding-right: 20px;
}

/* Professional hero content styling */
.hero-content h1,
.hero-content p {
    color: var(--white); /* White text on blue background */
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Update badge for new design */
.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Update stats for visibility */
.hero-stats .stat-number {
    color: var(--accent-gold);
}

.hero-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-blue-light);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Additional mobile hero optimizations */
@media (max-width: 768px) {
    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-certifications {
        margin-top: 30px;
    }

    .cert-logos {
        justify-content: center;
        gap: 15px;
    }

    .cert-item {
        font-size: 13px;
        padding: 6px 12px;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.hero-certifications {
    margin-top: 40px;
}

.cert-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: block;
}

.cert-logos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cert-item {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--medium-gray);
}

/* Hero Visual - Simple Image */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Wave Animation Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: wave 6s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,160L48,176C96,192,192,224,288,240C384,256,480,256,576,234.7C672,213,768,171,864,165.3C960,160,1056,192,1152,202.7C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: wave 8s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(10px) translateY(-5px);
    }
}

/* JavaScript Wave Animation Elements */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 100px;
    z-index: 1;
}

.wave-1 {
    animation: wave-move 10s ease-in-out infinite;
    opacity: 0.1;
}

.wave-2 {
    animation: wave-move 8s ease-in-out infinite reverse;
    opacity: 0.05;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,160L48,176C96,192,192,224,288,240C384,256,480,256,576,234.7C672,213,768,171,864,165.3C960,160,1056,192,1152,202.7C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
}

@keyframes wave-move {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    50% {
        transform: translateX(-25px) translateY(-10px) scale(1.02);
    }
}

/* Sections */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-card.featured {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-light);
}

.service-features i {
    color: var(--success-green);
    font-size: 12px;
}

.service-price {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature i {
    color: var(--primary-blue);
    font-size: 24px;
    margin-top: 5px;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    font-size: 14px;
}

.about-stats {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-medium);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 20px;
}

.stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.partner-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.partner-logo span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.team-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-avatar {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.team-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.team-role {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.team-skills span {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.testimonials-carousel {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    max-width: 100%;
    contain: layout style paint;
}

.testimonials-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
    -webkit-overflow-scrolling: touch;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 600%; /* 6 slides total */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
}

.testimonial-slide {
    min-width: 16.666%; /* 100% / 6 slides = 16.666% */
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--medium-gray);
    position: relative;
    transition: var(--transition);
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.quote-mark {
    font-size: 50px;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 25px;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-top: 25px;
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
    text-align: center;
}

.testimonial-rating {
    margin-bottom: 20px;
    text-align: center;
}

.stars {
    color: var(--accent-gold);
    font-size: 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
    margin-top: auto;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-bottom: 1px;
}

.author-info small {
    font-size: 11px;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Why Choose ACCPO */
.why-choose {
    padding: 100px 0;
    background-color: var(--white);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.feature-item i {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-content span {
    color: var(--text-light);
    font-size: 14px;
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.stat-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.accreditations {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
}

.accreditations h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.accreditation-list {
    display: grid;
    gap: 15px;
}

.accreditation-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accreditation-item i {
    color: var(--success-green);
    font-size: 16px;
}

.accreditation-item span {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive Design for Testimonials */
@media (max-width: 480px) {
    .testimonials-track {
        width: 600%; /* Mobile: 1 slide visible, 6 total slides */
    }
    
    .testimonial-slide {
        min-width: 16.666%; /* 100% / 6 = 16.666% */
    }
    
    .testimonial-card {
        height: 250px;
        padding: 25px 20px;
    }
    
    .quote-mark {
        font-size: 35px;
        top: 10px;
        left: 20px;
    }
    
    .testimonial-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .author-info strong {
        font-size: 14px;
    }
    
    .author-info span {
        font-size: 12px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .testimonials-track {
        width: 300%; /* Tablet: 2 slides visible, 6 total slides = 300% */
    }
    
    .testimonial-slide {
        min-width: 8.333%; /* 50% / 6 = 8.333% */
    }
    
    .testimonial-card {
        height: 260px;
        padding: 30px 22px;
    }
    
    .quote-mark {
        font-size: 40px;
        top: 12px;
        left: 22px;
    }
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: var(--shadow-light);
    font-size: 18px;
    opacity: 0.8;
}

.carousel-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
    opacity: 1;
}

.carousel-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    margin-left: -25px;
}

.next-btn {
    margin-right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.indicator.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
    opacity: 1;
}

.indicator:hover {
    background-color: var(--primary-blue-light);
    opacity: 0.8;
}

/* Slide Animation Effects */
.testimonial-slide {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.testimonials-carousel:hover .carousel-btn {
    opacity: 1;
}

/* Auto-slide pause indicator */
.testimonials-carousel.paused .carousel-indicators {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Performance optimizations */
* {
    will-change: auto;
}

.hero-card,
.service-card,
.btn {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 1; /* Content first on tablets */
        padding-right: 0;
    }

    .hero-visual {
        order: 2; /* Services preview second on tablets */
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjusted for better positioning */
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        border-radius: 0 0 20px 20px;
        z-index: 999; /* Below navbar but above content */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Testimonials Mobile Fixes */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        margin-left: -20px;
    }
    
    .next-btn {
        margin-right: -20px;
    }
}

.nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        margin-top: 60px; /* Account for mobile navbar */
        padding: 30px 0; /* Reduced padding for mobile */
        min-height: 80vh; /* Reduced height for mobile */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }

    .hero-content {
        order: 1;
        padding-right: 0;
    }

    .hero-visual {
        order: 2;
        margin-top: 2rem;
    }

    .hero-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-card {
        width: 180px;
        height: 130px;
        padding: 1rem;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .partner-logo {
        padding: 1rem;
    }

    .partner-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-content p {
        font-size: 1.2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item .stat-number {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

/* Mobile Styles for devices 480px and below */
@media (max-width: 480px) {
    .hero {
        margin-top: 50px;
        padding: 20px 0;
        min-height: 70vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .hero-content {
        order: 1;
        padding-right: 0;
    }

    .hero-visual {
        order: 2;
        margin-top: 1rem;
    }

    .hero-image {
        max-width: 280px;
    }

    .hero-card {
        width: 160px;
        height: 110px;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .floating-elements {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .testimonial-content p {
        font-size: 1.1rem;
    }

    .quote-mark {
        font-size: 3rem;
        top: 15px;
        left: 15px;
    }
}

/* Additional Responsive Design for New Sections */
@media (max-width: 1024px) {
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        margin-left: -20px;
    }
    
    .next-btn {
        margin-right: -20px;
    }
    
    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-content p {
        font-size: 1.2rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .author-info strong {
        font-size: 14px;
    }
    
    .author-info span {
        font-size: 12px;
    }
}

/* Responsive Navigation Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid var(--medium-gray);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-cta {
        margin-left: 20px;
    }

    /* Ensure the logo text doesn't overflow */
    .logo-title {
        font-size: 20px;
    }

    .logo-subtitle {
        display: none;
    }

    /* Adjust container padding */
    .container {
        padding: 0 15px;
    }

    /* Make navbar more compact on mobile */
    .navbar {
        padding: 10px 0;
    }

    /* Adjust logo size */
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

/* Smaller screens */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo-title {
        font-size: 18px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .nav-menu {
        top: 65px;
        padding: 15px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.contact-info {
    padding: 20px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item i {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.map-container {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo .logo-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.footer-logo .logo-full {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 15px;
}

.footer-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact .contact-item {
    margin-bottom: 20px;
}

.footer-contact .contact-item i {
    background-color: var(--primary-blue);
    width: 35px;
    height: 35px;
    font-size: 16px;
}

.footer-contact strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.footer-divider {
    height: 1px;
    background-color: var(--secondary-gray);
    margin: 40px 0 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--accent-gold);
}

.footer-tagline {
    font-style: italic;
    color: var(--accent-gold);
}

/* Floating Elements */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
}

.contact-float:hover {
    background-color: #218838;
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

/* Team Carousel Styles */
.team-carousel {
    position: relative;
    margin-top: 3rem;
}

.team-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.team-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.team-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 2rem 0;
}

.team-slide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-slide-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-slide-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Team Carousel Controls */
.team-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10;
}

.team-carousel-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    color: var(--white);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.team-carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.team-carousel-btn:hover::before {
    left: 100%;
}

.team-carousel-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.team-carousel-btn:active {
    transform: scale(0.95);
}

/* Team Carousel Indicators */
.team-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.team-indicator {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 1rem 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.team-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.team-indicator:hover::before {
    left: 0;
}

.team-indicator:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-indicator.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-indicator.active::before {
    left: 0;
}

.indicator-label {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Enhanced Team Avatar with Images */
.team-carousel .team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.team-carousel .team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-carousel .team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-carousel .team-card:hover .team-overlay {
    opacity: 0.9;
}

.team-carousel .team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.team-carousel .team-card:hover .team-image {
    transform: scale(1.1);
}

/* Enhanced Team Grid for Carousel */
.team-carousel .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-carousel .team-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.team-carousel .team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-carousel .team-card:hover::before {
    transform: scaleX(1);
}

.team-carousel .team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.team-carousel .team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.team-carousel .team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
}

.team-carousel .team-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-carousel .team-role {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-carousel .team-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.team-carousel .team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.team-carousel .team-skills span {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
}

.team-carousel .team-card:hover .team-skills span {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive Team Carousel */
@media (max-width: 768px) {
    .team-slide-header h3 {
        font-size: 1.5rem;
    }
    
    .team-slide-header p {
        font-size: 1rem;
    }
    
    .team-carousel .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .team-carousel .team-card {
        padding: 1.5rem;
    }
    
    .team-carousel-controls {
        padding: 0 0.5rem;
    }
    
    .team-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .team-carousel-indicators {
        gap: 0.5rem;
        margin-top: 2rem;
    }
    
    .team-indicator {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .indicator-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-carousel .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-slide {
        padding: 1rem 0;
    }
    
    .team-slide-header {
        margin-bottom: 2rem;
    }
    
    .team-slide-header h3 {
        font-size: 1.3rem;
    }
    
    .team-carousel .team-card {
        padding: 1.2rem;
    }
    
    .team-carousel .team-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .team-indicator {
        padding: 0.5rem 0.8rem;
        min-width: 100px;
    }
}

/* Fallback for missing team images */
.team-carousel .team-image:not([src]),
.team-carousel .team-image[src=""],
.team-carousel .team-image[src$="placeholder.jpg"] {
    display: none;
}

.team-carousel .team-avatar:has(.team-image:not([src])) .team-overlay,
.team-carousel .team-avatar:has(.team-image[src=""]) .team-overlay,
.team-carousel .team-avatar:has(.team-image[src$="placeholder.jpg"]) .team-overlay {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Alternative fallback using CSS */
.team-carousel .team-avatar:not(:has(img)) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-carousel .team-avatar:not(:has(img)) .team-overlay {
    position: static;
    background: none;
    opacity: 1;
    border-radius: 0;
}

/* Enhanced button animations */
@keyframes buttonPulse {
    0% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25); }
    100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
}

.team-carousel-btn:focus {
    outline: none;
    animation: buttonPulse 2s infinite;
}

/* Loading state for images */
.team-image {
    transition: opacity 0.3s ease;
}

.team-image:not([src]) {
    opacity: 0;
}

/* Enhanced responsive indicators */
@media (max-width: 768px) {
    .team-carousel-indicators {
        gap: 0.5rem;
        margin-top: 2rem;
    }
    
    .team-indicator {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .indicator-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-carousel-indicators {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .team-indicator {
        width: 200px;
        max-width: 90%;
    }
    
    .team-carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* End of CSS */
