/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--background-color);
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Color Variables */
:root {
    --primary-color: #003366;
    --accent-color: #c0392b;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #4a90e2;
    --accent-color: #e74c3c;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --light-gray: #2d2d2d;
    --dark-gray: #b0b0b0;
    --border-color: #404040;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

/* Status Line */
.status-line {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-gray);
    z-index: 999;
}

.status-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-logo-text h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.nav-logo-text .slogan {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    color: var(--accent-color);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(26, 26, 26, 0.98);
    }
    
    /* Hide nav-actions on mobile to make room for toggle */
    .nav-actions {
        margin-right: 50px;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.dark-mode-toggle.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 50%, var(--accent-color) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

/* More specific selector to override hero section color inheritance */
.hero .btn-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.hero .btn-secondary:hover {
    background: #ffffff !important;
    color: #333333 !important;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.value-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-image {
    text-align: center;
}

.about-team-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    transition: var(--transition);
}

.about-team-image:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.service-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.service-image img:hover {
    transform: scale(1.05);
}

/* Capabilities Section */
.capabilities {
    padding: 100px 0;
    background: var(--light-gray);
}

/* Branding Showcase - Featured First */
.branding-showcase {
    margin-bottom: 4rem;
    background: var(--background-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: visible;
}

.branding-header {
    text-align: center;
    margin-bottom: 3rem;
}

.branding-header h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.branding-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark mode support for branding showcase */
[data-theme="dark"] .branding-showcase {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Branding Slideshow */
.branding-slideshow {
    position: relative;
    overflow: visible;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper mobile containment */
@media (max-width: 768px) {
    .branding-slideshow {
        overflow: hidden; /* Prevent horizontal overflow on mobile */
    }
}

.slideshow-container {
    position: relative;
    height: auto;
    min-height: 600px;
    margin-bottom: 2rem;
    overflow: visible;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease, transform 0.8s ease;
    display: flex;
    align-items: center;
    visibility: hidden;
    overflow: visible;
    min-height: 600px;
    transform: translateX(20px);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transform: translateX(0);
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: visible;
    min-height: 600px;
}

.slide-image {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ensure images are visible and properly sized */
.slide-image img:not([src]), 
.slide-image img[src=""], 
.slide-image img[src*="undefined"] {
    display: none;
}

.slide-image img:hover {
    transform: scale(1.05);
}

.slide-info h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.slide-info p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.slide-info ul {
    list-style: none;
    padding: 0;
}

.slide-info ul li {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.slide-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Dark mode text visibility improvements */
[data-theme="dark"] .slide-info h4 {
    color: var(--accent-color);
}

[data-theme="dark"] .slide-info p {
    color: var(--text-color);
}

[data-theme="dark"] .slide-info ul li {
    color: var(--accent-color);
}

/* Slideshow Navigation */
.slideshow-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative; /* Ensure proper positioning */
    z-index: 2; /* Ensure dots are above content */
}

.nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slide-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Hide navigation arrows on mobile */
@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
    
    .slideshow-nav {
        gap: 1rem;
        justify-content: center;
    }
    
    /* Add swipe hint for mobile users */
    .branding-slideshow::before {
        content: "💡 Swipe left/right to navigate";
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        z-index: 10;
        opacity: 0.8;
    }
    
    [data-theme="dark"] .branding-slideshow::before {
        background: rgba(255, 255, 255, 0.2);
        color: var(--text-color);
    }
}

/* Mobile Responsive for Branding Slideshow */
@media (max-width: 768px) {
    .branding-showcase {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .branding-header h3 {
        font-size: 1.8rem;
    }
    
    .branding-header p {
        font-size: 1rem;
        margin-bottom: 1rem; /* Further reduced space between header and slideshow */
    }
    
    .slideshow-container {
        height: auto;
        min-height: 350px;
        overflow: visible;
        position: relative; /* Ensure proper positioning context */
    }
    
    .slide {
        position: relative; /* Change from absolute to relative on mobile */
        min-height: auto; /* Remove fixed height constraint */
        height: auto;
        opacity: 1; /* Ensure all slides are visible on mobile */
        visibility: visible; /* Ensure all slides are visible on mobile */
        width: 100%;
        overflow: hidden; /* Prevent content from overflowing */
    }
    
    /* Show only active slide content on mobile */
    .slide:not(.active) {
        display: none;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 1rem; /* Further reduced gap between image and text */
        text-align: center;
        padding: 1rem;
        min-height: auto; /* Remove fixed height constraint */
        height: auto;
    }
    
    .slide-image {
        margin-bottom: 0.5rem; /* Reduced margin */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .slide-image img {
        max-height: 250px;
        width: auto;
        height: auto;
        object-fit: contain;
        max-width: 100%;
    }
    
    .slide-info h4 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem; /* Reduced margin */
    }
    
    .slide-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem; /* Reduced margin */
    }
    
    .slide-info ul {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .slideshow-nav {
        gap: 1rem;
        margin-top: 1rem; /* Reduced top margin */
        position: relative;
        z-index: 2;
        width: 100%;
        justify-content: center;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .branding-showcase {
        padding: 1.5rem 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .branding-header h3 {
        font-size: 1.5rem;
    }
    
    .branding-header p {
        margin-bottom: 1rem; /* Further reduced space for very small screens */
    }
    
    .slideshow-container {
        min-height: 300px;
    }
    
    .slide {
        position: relative; /* Ensure relative positioning on very small screens */
        opacity: 1; /* Ensure all slides are visible on very small screens */
        visibility: visible; /* Ensure all slides are visible on very small screens */
        width: 100%;
        overflow: hidden; /* Prevent content from overflowing */
    }
    
    /* Show only active slide content on very small screens */
    .slide:not(.active) {
        display: none;
    }
    
    .slide-content {
        padding: 0.5rem;
        gap: 0.75rem; /* Further reduced gap for very small screens */
    }
    
    .slide-image {
        margin-bottom: 0.25rem; /* Minimal margin for very small screens */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .slide-image img {
        max-height: 200px;
        width: auto;
        height: auto;
        object-fit: contain;
        max-width: 100%;
    }
    
    .slide-info h4 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem; /* Reduced margin for very small screens */
    }
    
    .slide-info p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem; /* Reduced margin for very small screens */
    }
    
    .slide-info ul li {
        font-size: 0.85rem;
    }
    
    .slide-info ul {
        max-width: 250px;
    }
    
    .slideshow-nav {
        margin-top: 0.75rem; /* Reduced top margin for very small screens */
        position: relative;
        z-index: 2;
        width: 100%;
        justify-content: center;
    }
    
    /* Optimize swipe hint for very small screens */
    .branding-slideshow::before {
        font-size: 0.7rem;
        padding: 3px 8px;
        top: 5px;
        right: 5px;
    }
}

/* Ensure slideshow works on all screen sizes */
@media (min-width: 1200px) {
    .branding-showcase {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .slide-content {
        gap: 4rem;
    }
    
    .slide-image img {
        max-height: 450px;
    }
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.capability-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.capability-icon {
    margin-bottom: 1rem;
}

.capability-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.capability-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.capability-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.capability-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.capability-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.capability-image img:hover {
    transform: scale(1.05);
}

/* Responsive Design for Services and Capabilities */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .service-item {
        padding: 2rem;
    }
    
    .capability-item {
        padding: 1.5rem;
    }
    
    .service-image img {
        height: 180px;
    }
    
    .capability-image img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .capabilities-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .service-card,
    .capability-item {
        padding: 1.5rem;
    }
}

/* Team Section */
.team {
    padding: 100px 0;
    background: var(--background-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent-color);
}

.member-photo i {
    font-size: 3rem;
    color: var(--accent-color);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-experience {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-qualification {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Clients Section - CLEAN AND SIMPLE */
.clients {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
}

.clients .section-header h2,
.clients .section-header p {
    color: white;
}

.clients-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
}

.clients-logos {
    width: 100%;
    text-align: center;
}

.clients-logos h3,
.testimonials h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.clients-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 100%;
    width: 100%;
    grid-auto-rows: 200px;
    justify-content: center;
    align-items: center;
    grid-template-rows: 200px 200px;
}

.client-logo {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    box-sizing: border-box;
}

/* Make the last logo in the second row span 2 columns to center the 3 logos */
.client-logo:nth-child(7) {
    grid-column: 3 / 5;
    justify-self: center;
    max-width: 280px;
    height: 200px;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* SIMPLE CLIENT LOGO STYLES - NO COMPLEX RULES */
.client-logo-img {
    width: 90px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
    display: block;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.client-logo:hover .client-logo-img {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Dark mode - simple override */
[data-theme="dark"] .client-logo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .client-logo-img {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .client-logo:hover .client-logo-img {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.client-logo i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.client-logo h4 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
    flex-shrink: 0;
    max-width: 100%;
    text-align: center;
}



/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .contact-item h4 {
    color: var(--accent-color);
}

.contact-item p {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

/* Dark mode styles for contact items to ensure visibility */
[data-theme="dark"] .contact-item p {
    color: #ffffff;
}

/* Ensure phone numbers are visible in dark mode on mobile */
@media (max-width: 768px) {
    [data-theme="dark"] .contact-item p {
        color: #ffffff !important;
    }
    
    [data-theme="dark"] .contact-item h4 {
        color: #ffffff !important;
    }
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-call {
    background: var(--primary-color);
    color: white;
}

.btn-call:hover {
    background: #002244;
}

.contact-form {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo-img:hover {
    filter: brightness(1) invert(0);
    transform: scale(1.05);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section .slogan {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: #a93226;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Rating Section Styles */
.rating {
    padding: 80px 0;
    background: var(--light-gray);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.rating-content {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Average Rating Display */
.average-rating {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 50%, var(--accent-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.rating-summary {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-stars {
    margin-bottom: 1rem;
}

.rating-stars i {
    font-size: 2.5rem;
    color: #ffd700;
    margin: 0 0.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.rating-stars i:hover {
    transform: scale(1.1);
}

.rating-stars .fa-star-half-alt {
    color: #ffd700;
}

.rating-stars .fa-star-half-alt:before {
    content: "\f089";
}

.rating-count {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Loading state for average rating */
.rating-number .fa-spinner,
.rating-stars .fa-spinner {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.rating-count .fa-spinner {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Rating Form */
.rating-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark mode for rating form container */
[data-theme="dark"] .rating-form-container {
    background: #0a0a0a;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.rating-form .form-group {
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.rating-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

/* Dark mode for form labels */
[data-theme="dark"] .rating-form label {
    color: var(--text-color);
}

.rating-form select,
.rating-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
    box-sizing: border-box;
}

/* Dark mode for form inputs and textarea */
[data-theme="dark"] .rating-form select,
[data-theme="dark"] .rating-form textarea {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #444;
}

/* Dark mode for text input field */
[data-theme="dark"] .rating-form input[type="text"] {
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #444;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .rating-form input[type="text"]:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

/* Dark mode placeholder styling */
[data-theme="dark"] .rating-form input[type="text"]::placeholder,
[data-theme="dark"] .rating-form textarea::placeholder {
    color: #888;
    opacity: 0.8;
}

/* Dark mode for select dropdown options */
[data-theme="dark"] .rating-form select option {
    background: #1a1a1a;
    color: #ffffff;
}

.rating-form select:focus,
.rating-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(196, 57, 43, 0.1);
}

/* Dark mode focus styles */
[data-theme="dark"] .rating-form select:focus,
[data-theme="dark"] .rating-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

/* Star Rating System */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-label {
    cursor: pointer;
    font-size: 2.5rem;
    color: #ddd;
    transition: var(--transition);
    display: inline-block;
    padding: 0.2rem;
}

/* Dark mode for star labels */
[data-theme="dark"] .star-label {
    color: #444;
}

.star-label:hover,
.star-label:hover ~ .star-label,
.star-rating input[type="radio"]:checked ~ .star-label {
    color: #ffd700;
    transform: scale(1.1);
}

.star-rating input[type="radio"]:checked ~ .star-label {
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Session Message */
.session-message {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Dark mode for session message */
[data-theme="dark"] .session-message {
    background: rgba(33, 150, 243, 0.15);
    border-color: #1976d2;
    color: #64b5f6;
}

.session-message i {
    color: #2196f3;
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Dark mode for session message icon */
[data-theme="dark"] .session-message i {
    color: #64b5f6;
}

/* Rating Form Button States */
.rating-form .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Dark mode for rating form button */
[data-theme="dark"] .rating-form .btn {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}

.rating-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Dark mode for disabled button */
[data-theme="dark"] .rating-form .btn:disabled {
    opacity: 0.4;
    background: #333;
    border-color: #555;
}

.rating-form .btn.submitting {
    background: var(--accent-color) !important;
    cursor: wait;
}

.rating-form .btn.success {
    background: #28a745 !important;
    border-color: #28a745 !important;
    animation: successPulse 0.5s ease;
}

/* Dark mode for success button */
[data-theme="dark"] .rating-form .btn.success {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Recent Reviews */
.recent-reviews {
    max-width: 800px;
    margin: 0 auto;
}

.recent-reviews h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.reviews-container {
    display: grid;
    gap: 1.5rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-stars {
    color: #ffd700;
    font-size: 1.1rem;
}

.review-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-service {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Client Feedback Carousel */
.client-feedback {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.client-feedback h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.feedback-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

/* Dark mode for feedback carousel */
[data-theme="dark"] .feedback-carousel {
    background: #0a0a0a;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.feedback-container {
    display: flex;
    transition: transform 1.2s ease;
    min-height: 200px;
}

.feedback-item {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.feedback-item .feedback-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feedback-item .feedback-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-style: italic;
    transition: var(--transition);
}

.feedback-item .feedback-author {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.feedback-item .feedback-service {
    color: var(--dark-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Dark mode for feedback item text */
[data-theme="dark"] .feedback-item .feedback-text {
    color: #ffffff;
}

[data-theme="dark"] .feedback-item .feedback-author {
    color: #e74c3c;
}

[data-theme="dark"] .feedback-item .feedback-service {
    color: #b0b0b0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Dark mode for carousel buttons */
[data-theme="dark"] .carousel-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

/* Dark mode for carousel button hover */
[data-theme="dark"] .carousel-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dark mode for disabled carousel button */
[data-theme="dark"] .carousel-btn:disabled {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-logo {
        gap: 0.5rem;
    }
    
    .nav-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav-logo-text h2 {
        font-size: 1.2rem;
    }
    
    .nav-logo-text .slogan {
        font-size: 0.6rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .dark-mode-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        left: 20px;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0 60px 0;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .hero-content {
        padding-top: 20px;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .clients-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        justify-items: center;
        justify-content: space-evenly;
    }
    
    /* Reset the special positioning for mobile */
    .client-logo:nth-child(7) {
        grid-column: auto;
        justify-self: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    

    
    .rating {
        padding: 60px 0;
    }
    
    .rating-content {
        gap: 2rem;
    }
    
    .average-rating {
        padding: 2rem 1rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .rating-number {
        font-size: 3rem;
    }
    
    .rating-stars i {
        font-size: 1.5rem;
    }
    
    .rating-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .star-label {
        font-size: 2rem;
    }
    
    .recent-reviews {
        margin: 0 1rem;
    }
    
    /* Mobile responsive for client feedback */
    .client-feedback {
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .feedback-carousel {
        margin: 0 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .feedback-item {
        padding: 1.5rem;
    }
    
    .feedback-item .feedback-text {
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Ensure phone numbers are visible in dark mode on all mobile devices */
    [data-theme="dark"] .contact-item p {
        color: #ffffff !important;
    }
    
    [data-theme="dark"] .contact-item h4 {
        color: #ffffff !important;
    }
    
    /* Additional mobile improvements for rating section */
    .rating-content {
        margin-top: 2rem;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .average-rating .rating-summary {
        max-width: 100%;
        width: 100%;
    }
    
    .rating-form .form-group {
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .star-rating {
        gap: 0.3rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .star-label {
        font-size: 1.8rem;
        padding: 0.1rem;
    }
    
    /* Ensure form elements don't overflow */
    .rating-form input,
    .rating-form select,
    .rating-form textarea {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    
    /* Ensure containers fit mobile screen */
    .rating-form-container,
    .average-rating,
    .client-feedback,
    .feedback-carousel {
        min-width: 0;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        justify-content: space-evenly;
    }
    
    .client-logo {
        padding: 1.5rem;
        height: 180px;
        max-width: 250px;
    }
    
    .client-logo-img {
        width: 80px;
        height: 55px;
    }
    
    .client-logo h4 {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .team-member,
    .contact-form {
        padding: 1.5rem;
    }
    
    .rating {
        padding: 40px 0;
    }
    
    .rating-content {
        gap: 1rem;
    }
    
    .average-rating {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .rating-form-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .star-label {
        font-size: 1.6rem;
    }
    
    .star-rating {
        gap: 0.2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .review-item {
        padding: 1rem;
    }
    
    /* Small mobile responsive for client feedback */
    .client-feedback {
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .feedback-carousel {
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .feedback-item {
        padding: 1rem;
    }
    
    .feedback-item .feedback-text {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Ensure form elements don't overflow on small mobile */
    .rating-form input,
    .rating-form select,
    .rating-form textarea {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Ensure containers fit small mobile screen */
    .rating-form-container,
    .average-rating,
    .client-feedback,
    .feedback-carousel {
        min-width: 0;
        overflow: hidden;
    }
    
    /* Ensure phone numbers are visible in dark mode on small mobile devices */
    [data-theme="dark"] .contact-item p {
        color: #ffffff !important;
    }
    
    [data-theme="dark"] .contact-item h4 {
        color: #ffffff !important;
    }
}
