/* ============================================
   PCX (Nafco Company) - Additional Components
   WhatsApp Float, Hero, Footer, Section Headers
   ============================================ */

/* ========== WhatsApp Float Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    animation: gentlePulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Gentle pulse animation for WhatsApp button */
@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--space-16);
    /* Fallback gradient */
    background: linear-gradient(135deg, rgba(0, 116, 190, 0.9) 0%, rgba(0, 90, 148, 0.85) 100%), url('../images/RCX_Image1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    overflow: hidden;
}

/* Dark mode override for Hero */
body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%), url('../images/RCX_Image1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    /* Overlay for texture */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="4" height="4" viewBox="0 0 4 4" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 5rem;
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ========== Why Us Section (Parallax) ========== */
#why-us {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%), url('../images/RCX_Image2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--space-20) 0;
}

body.dark-mode #why-us {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%), url('../images/RCX_Image2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Glass Cards for Why Us */
#why-us .feature-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode #why-us .feature-item {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

#why-us .feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode #why-us .feature-item:hover {
    background: rgba(30, 41, 59, 0.9);
}

/* ========== Contact Section ========== */
.contact-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%), url('../images/RCX_Image3.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll;
    /* Mobile friendly */
    color: white;
    padding: var(--space-20) 0;
}

.contact-section .section-title,
.contact-section .section-header h2,
.contact-section .section-header p {
    color: white !important;
}

/* Glass effect for contact info and form */
.contact-info,
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1) !important;
    /* Glass override */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

body.dark-mode .contact-form-wrapper,
body.dark-mode .contact-info {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(10px);
}

.contact-method h4,
.contact-method p {
    color: white !important;
}

/* Form Styles for Glass Contact */
.contact-form .form-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-form .form-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.contact-form .form-input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--color-primary-light) !important;
}

.contact-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========== Vibrancy & Decorations ========== */

/* Animated Blobs */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(143, 227, 160, 0.3);
    /* Green */
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: rgba(0, 116, 190, 0.2);
    /* Blue */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.2);
    /* Purple */
    animation-delay: -10s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Dark mode blobs */
body.dark-mode .blob-1 {
    background: rgba(143, 227, 160, 0.15);
}

body.dark-mode .blob-2 {
    background: rgba(0, 116, 190, 0.15);
}

body.dark-mode .blob-3 {
    background: rgba(139, 92, 246, 0.15);
}

/* SVG Wave Divider */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave-fill {
    fill: var(--color-white);
}

body.dark-mode .wave-fill {
    fill: #0f172a;
}

/* Adjust section padding for dividers */
.section-with-divider {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
    .hero-stat .number {
        font-size: var(--text-4xl);
    }
}

.hero-stat .label {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

body.dark-mode .hero-stat .number {
    color: var(--color-white);
}

body.dark-mode .hero-stat .label {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-alpha);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: var(--text-4xl);
    }
}

@media (min-width: 1024px) {
    .section-header h2 {
        font-size: var(--text-5xl);
    }
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-gray-500);
    line-height: var(--leading-relaxed);
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, var(--color-gray-900), var(--color-gray-800));
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-6);
}

.footer .logo img {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-4);
}

.footer-about p {
    color: var(--color-gray-400);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

/* ========== Dark Mode Toggle Button ========== */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-gray-600);
    margin-inline-end: 0.5rem;
}

.dark-mode-toggle:hover {
    background: var(--color-gray-100);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover svg {
    transform: rotate(15deg);
}

/* Sun icon (show in dark mode) */
.dark-mode-toggle .icon-sun {
    display: none;
}

/* Moon icon (show in light mode) */
.dark-mode-toggle .icon-moon {
    display: block;
}

/* Dark mode active state */
body.dark-mode .dark-mode-toggle .icon-sun {
    display: block;
}

body.dark-mode .dark-mode-toggle .icon-moon {
    display: none;
}

body.dark-mode .dark-mode-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-gray-300);
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

/* ========== Dark Mode Element Overrides ========== */

/* Body background */
body.dark-mode {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Navbar in dark mode */
body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========== Universal Navbar Layout (Locked Physical Positions) ========== */
/* The user requires Logo on the physical RIGHT and Menu on the physical LEFT in BOTH languages. */
.navbar .container {
    display: flex;
    direction: ltr !important;
    /* Forces physical Left-to-Right layout in all languages */
    justify-content: flex-start !important;
    gap: 1.5rem;
}

/* Force Menu & buttons to the physical LEFT */
.navbar .nav-links {
    order: 1;
}

.navbar .nav-cta {
    order: 2;
}

.navbar .mobile-menu-toggle {
    order: 3;
}

/* Force Logo to the physical RIGHT */
.navbar .logo {
    order: 4 !important;
    margin-left: auto !important;
    /* Push logo all the way to the right */
    margin-right: 0 !important;
}

body.dark-mode .nav-links a {
    color: #cbd5e1;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #fff;
}

/* Sections */
body.dark-mode .section,
body.dark-mode .bg-white {
    background-color: #0f172a;
}

body.dark-mode .bg-gray-50 {
    background-color: #1e293b;
}

/* Section badges */
body.dark-mode .section-badge {
    background: rgba(0, 116, 190, 0.2);
    color: #60a5fa;
}

/* Section header text */
body.dark-mode .section-header h2 {
    color: #f1f5f9;
}

body.dark-mode .section-header p {
    color: #94a3b8;
}

/* Service cards */
body.dark-mode .service-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card:hover {
    background: #334155;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .service-card h3 {
    color: #f1f5f9;
}

body.dark-mode .service-card p {
    color: #94a3b8;
}

/* Feature items */
body.dark-mode .feature-item {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-content h4 {
    color: #f1f5f9;
}

body.dark-mode .feature-content p {
    color: #94a3b8;
}

/* Testimonials */
body.dark-mode .testimonial-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .testimonial-content {
    color: #cbd5e1;
}

body.dark-mode .testimonial-name {
    color: #f1f5f9;
}

body.dark-mode .testimonial-role {
    color: #94a3b8;
}

/* Certification cards */
body.dark-mode .cert-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .cert-card h4 {
    color: #f1f5f9;
}

body.dark-mode .cert-card p {
    color: #94a3b8;
}

/* Contact section */
body.dark-mode .contact-section {
    background: #1e293b;
}

body.dark-mode .contact-form-wrapper {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-form h3 {
    color: #f1f5f9;
}

body.dark-mode .contact-form .form-label {
    color: #cbd5e1;
}

body.dark-mode .contact-form .form-input {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

body.dark-mode .contact-form .form-input:focus {
    border-color: var(--color-primary);
    background: #334155;
}

body.dark-mode .contact-form .form-input::placeholder {
    color: #64748b;
}

body.dark-mode .contact-method {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-method h4 {
    color: #f1f5f9;
}

body.dark-mode .contact-method p {
    color: #94a3b8;
}

/* Mobile menu dark mode */
body.dark-mode .mobile-menu {
    background: #0f172a;
}

body.dark-mode .mobile-menu a {
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* FAQ items for support page */
body.dark-mode .faq-item {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .faq-question {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .faq-question:hover {
    background: #334155;
}

body.dark-mode .faq-answer-content {
    color: #94a3b8;
}

body.dark-mode .faq-section-title {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}

/* Support cards */
body.dark-mode .support-card {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .support-card h3 {
    color: #f1f5f9;
}

body.dark-mode .support-card p {
    color: #94a3b8;
}

body.dark-mode .support-contact {
    background: #0f172a;
}

/* Feedback form */
body.dark-mode .feedback-form-card {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .feedback-form-card h2 {
    color: #f1f5f9;
}

/* Products page */
body.dark-mode .filters-sidebar {
    background: #1e293b;
}

body.dark-mode .filter-section h4 {
    color: #f1f5f9;
}

body.dark-mode .filter-option span {
    color: #cbd5e1;
}

body.dark-mode .search-input {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

body.dark-mode .product-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Buttons outline */
body.dark-mode .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

body.dark-mode .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Explicit Fixes for Dark Mode Visibility */

/* 1. Hero Title Fix */
body.dark-mode .hero h1,
body.dark-mode .feedback-hero h1,
body.dark-mode .products-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hero-subtitle,
body.dark-mode .feedback-hero p,
body.dark-mode .products-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 2. Footer Fix (Prevent Brightness) */
body.dark-mode .footer {
    background: linear-gradient(135deg, #020617, #0f172a) !important;
}

body.dark-mode .footer-links-col h4 {
    color: #ffffff;
}

body.dark-mode .footer-links a,
body.dark-mode .footer-contact li {
    color: #94a3b8;
}

body.dark-mode .footer-links a:hover {
    color: var(--color-primary-light);
}

body.dark-mode .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
}

/* 3. Feedback Page Design Errors */
body.dark-mode .feedback-form-card label {
    color: #cbd5e1;
}

body.dark-mode .star-rating label {
    color: #334155;
}

body.dark-mode .star-rating input:checked~label,
body.dark-mode .star-rating label:hover,
body.dark-mode .star-rating label:hover~label {
    color: #fbbf24;
}

body.dark-mode .success-icon {
    background: rgba(16, 185, 129, 0.2);
}

body.dark-mode .success-message p {
    color: #94a3b8;
}

/* 4. Products Page Fixes */
body.dark-mode .filter-section {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .price-range input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* ========== Success Partners Section ========== */
.partners-section {
    background-color: var(--color-gray-50);
    overflow: hidden;
    padding-bottom: var(--space-12);
    /* Reduced from space-24 */
    padding-top: var(--space-12);
    /* Explicitly set compact top padding */
}

body.dark-mode .partners-section {
    background-color: #0f172a;
}

.partners-slider-wrapper {
    position: relative;
    padding: var(--space-4) 0;
    /* Reduced from space-8 */
    margin-top: var(--space-6);
    /* Reduced from space-8 */
}

/* Gradient Masks for fading edges */
.partners-slider-wrapper::before,
.partners-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-gray-50), transparent);
}

.partners-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-gray-50), transparent);
}

body.dark-mode .partners-slider-wrapper::before {
    background: linear-gradient(to right, #0f172a, transparent);
}

body.dark-mode .partners-slider-wrapper::after {
    background: linear-gradient(to left, #0f172a, transparent);
}

.partners-slider {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: auto;
    /* We control scroll in JS */
}

.partners-slider::-webkit-scrollbar {
    display: none;
}

.partners-slider:active {
    cursor: grabbing;
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0 50vw;
    /* Padding to allow first/last items to center */
}

.partner-item {
    flex: 0 0 auto;
    width: 200px;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
}

.partner-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

/* Center Highlight */
.partner-item.active .partner-logo-container {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .partner-item {
        width: 140px;
        padding: 0 var(--space-4);
    }

    .partner-logo-container {
        width: 80px;
        height: 80px;
    }
}

/* Explicit Fix for Dropdown/Select Contrast */
select.form-input option,
select option {
    color: var(--color-gray-900) !important;
    background-color: var(--color-white) !important;
}

body.dark-mode select.form-input option,
body.dark-mode select option {
    color: var(--color-white) !important;
    background-color: #1f2937 !important;
}