/* ============================================ */
/* Fixenix Design Tokens — Variables & Colors   */
/* ============================================ */

/* DARK THEME (Default) */
:root {
    /* Brand Colors */
    --primary-red: #e31b23;
    --primary-red-rgb: 227, 27, 35;
    --primary-red-dark: #b8121a;
    
    /* Background Colors - Dark Mode */
    --bg-body: #0a0a0a;
    --bg-card: #0f0f0f;
    --bg-card-hover: #1a1a1a;
    --bg-navbar: rgba(0, 0, 0, 0.85);
    --bg-sidebar: rgba(8, 8, 8, 0.98);
    --bg-modal: linear-gradient(145deg, #111111, #080808);
    --bg-footer: #0a0a0a;
    
    /* Input Variables - Dark Mode */
    --bg-input: rgba(255, 255, 255, 0.04);
    --border-input: rgba(255, 255, 255, 0.1);
    --text-input: #ffffff;
    --placeholder-input: rgba(255, 255, 255, 0.4);
    
    /* Border & Text Colors - Dark Mode */
    --border-subtle: rgba(227, 27, 35, 0.2);
    --border-card: #222;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #888888;
    --canvas-opacity: 0.4;
    
    /* Effects & Transitions */
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --glow-red: 0 0 20px rgba(227, 27, 35, 0.3);
    --glow-red-strong: 0 0 30px rgba(227, 27, 35, 0.5);
}

/* LIGHT THEME Overrides */
[data-theme="light"] {
    /* Background Colors - Light Mode */
    --bg-body: #fdfdfd;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(250, 248, 246, 0.95);
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-sidebar: rgba(255, 255, 255, 0.95);
    --bg-modal: linear-gradient(145deg, #ffffff, #f8f9fa);
    --bg-footer: #f8f9fa;
    
    /* Input Variables - Light Mode */
    --bg-input: #f0f2f5;
    --border-input: #cbd5e0;
    --text-input: #1a202c;
    --placeholder-input: #718096;
    
    /* Border & Text Colors - Light Mode */
    --border-subtle: rgba(227, 27, 35, 0.15);
    --border-card: rgba(0, 0, 0, 0.08);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --canvas-opacity: 0.08;
    
    /* Effects & Transitions - Light Mode Adjusted */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
    --glow-red: 0 0 20px rgba(227, 27, 35, 0.15);
    --glow-red-strong: 0 0 30px rgba(227, 27, 35, 0.25);
}

/* ============================================ */
/* Global Reset & Baseline Styling              */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling - Both Themes */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.3s ease;
    line-height: 1.6;
}

/* 3D Canvas Background - Both Themes */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: var(--canvas-opacity);
    transition: opacity 0.4s ease;
}

.main-content {
    position: relative;
    z-index: 10;
}

/* ============================================ */
/* Global Utilities & Animations                */
/* ============================================ */

/* Section Gradient Backgrounds - Both Themes */
.section-dark-gradient {
    background: radial-gradient(circle at 10% 20%, #0a0a0a, #000);
    transition: background 0.4s ease;
}
[data-theme="light"] .section-dark-gradient {
    background: linear-gradient(135deg, #f0ede8, #e8e5e0);
}

/* Fade-up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.fade-up.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title Styling - Both Themes */
.section-title {
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
}
.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================ */
/* Typography & Links - Both Themes             */
/* ============================================ */
a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition-standard);
}
a:hover {
    color: var(--primary-red-dark);
}

.text-primary {
    color: var(--primary-red) !important;
}
.bg-primary {
    background-color: var(--primary-red) !important;
}

/* ============================================ */
/* Button System - Both Themes                  */
/* ============================================ */

/* Primary Button */
.btn-primary {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    transition: var(--transition-standard);
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: var(--primary-red-dark) !important;
    border-color: var(--primary-red-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--glow-red);
}

/* Red Elite Button - Dark Theme */
.btn-red-elite {
    background: linear-gradient(135deg, #e31b23 0%, #8e0000 100%);
    border: none;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(227, 27, 35, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 700;
}
.btn-red-elite:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 15px 35px rgba(227, 27, 35, 0.5);
    color: white !important;
}
.btn-red-elite:active {
    transform: translateY(0) scale(0.98);
}
/* Light Theme Adjustments */
[data-theme="light"] .btn-red-elite {
    background: linear-gradient(135deg, #e31b23 0%, #c41e1e 100%);
    box-shadow: 0 8px 20px rgba(227, 27, 35, 0.2);
}

/* Standard Red Button */
.btn-red {
    background: var(--primary-red);
    border: none;
    padding: 12px 32px;
    font-weight: 700;
    border-radius: 40px;
    color: white;
    transition: var(--transition-standard);
    box-shadow: 0 4px 14px rgba(227, 27, 35, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-red:hover {
    background: #ff2a33;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 27, 35, 0.6);
    color: white;
}

/* Small Red Button */
.btn-red-sm {
    background: var(--primary-red);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition-standard);
    color: white;
}
.btn-red-sm:hover {
    background: #ff2a33;
    transform: translateY(-2px);
    color: white;
}

/* Outline Red Button */
.btn-outline-red {
    border: 1.5px solid var(--primary-red);
    background: transparent;
    color: var(--text-primary);
    border-radius: 40px;
    padding: 10px 24px;
    transition: var(--transition-standard);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}
.btn-outline-red:hover {
    background: var(--primary-red);
    color: white !important;
    box-shadow: 0 0 12px rgba(227, 27, 35, 0.5);
    transform: translateY(-2px);
}
/* Light Theme Override */
[data-theme="light"] .btn-outline-red {
    color: var(--primary-red);
}
[data-theme="light"] .btn-outline-red:hover {
    color: white !important;
}

/* ============================================ */
/* Navigation & Navbar - Both Themes            */
/* ============================================ */

/* Desktop Navigation */
.navbar-desktop {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding: 1.2rem 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.navbar-desktop.scrolled {
    background: var(--bg-navbar);
    backdrop-filter: blur(15px) saturate(1.8);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 2rem;
    box-shadow: var(--shadow-lg);
}
/* Light Theme Scrolled Navbar */
[data-theme="light"] .navbar-desktop.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Navigation Links */
.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-standard);
    opacity: 0.85;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
    opacity: 1;
}
/* Active Link Indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Mobile Top Bar */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-standard);
}
.mobile-topbar.scrolled {
    background: var(--bg-navbar);
    border-bottom-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

/* Logo Responsive */
.responsive-logo {
    height: 42px;
    width: auto;
    transition: all 0.3s ease;
}
@media (max-width: 991.98px) {
    .responsive-logo {
        height: 36px;
    }
}
@media (max-width: 576.98px) {
    .responsive-logo {
        height: 32px;
    }
}
@media (max-width: 320.98px) {
    .responsive-logo {
        height: 26px;
    }
}
/* Light Theme Logo Adjustment */
[data-theme="light"] .responsive-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ============================================ */
/* Mega Menu - Both Themes                      */
/* ============================================ */
@media (min-width: 992px) {
    .mega-dropdown:hover > .mega-menu-content {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        pointer-events: auto;
    }
}

.mega-menu-content {
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    width: 95vw;
    max-width: 1000px;
    left: 50% !important;
    transform: translate(-50%, 15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-xl);
    margin-top: 5px;
    padding: 0 !important;
    overflow: hidden;
    z-index: 1001;
}

.mega-category-box {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}
.mega-category-box:hover {
    transform: translateY(-5px);
}

.mega-title {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 8px;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-links li {
    margin-bottom: 0.6rem;
}
.mega-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-standard);
    display: block;
    opacity: 0.8;
}
.mega-links a:hover {
    color: var(--primary-red);
    transform: translateX(6px);
    opacity: 1;
}

/* Badge New */
.badge-new {
    background: var(--primary-red);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Mega Promo Card */
.mega-promo-card {
    background: linear-gradient(135deg, rgba(227, 27, 35, 0.1), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 1.8rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.mega-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 27, 35, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.mega-promo-card h5 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.icon-flash {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px var(--primary-red));
}

/* ============================================ */
/* Mobile Sidebar Navigation - Both Themes      */
/* ============================================ */
.mobile-sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border-right: 2px solid var(--primary-red);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1050;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}
.mobile-sidebar-nav.open {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(227, 27, 35, 0.4);
}

/* Close Sidebar Button */
.close-sidebar-btn {
    background: rgba(227, 27, 35, 0.2);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    transition: var(--transition-standard);
    cursor: pointer;
}
.close-sidebar-btn:hover {
    background: var(--primary-red);
    transform: rotate(90deg);
    color: white;
}

/* Mobile Navigation Links */
.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 40px;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-nav-link i {
    font-size: 1.4rem;
    width: 28px;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-red);
    color: white;
    transform: translateX(5px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar Customization - Both Themes */
.mobile-sidebar-nav::-webkit-scrollbar {
    width: 5px;
}
.mobile-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.mobile-sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

/* ============================================ */
/* Glass Dropdown - Both Themes                 */
/* ============================================ */
.glass-dropdown {
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.glass-dropdown .dropdown-item {
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    transition: var(--transition-standard);
    cursor: pointer;
}
.glass-dropdown .dropdown-item:hover {
    background: var(--primary-red);
    color: white;
    transform: translateX(5px);
}
.glass-dropdown .dropdown-item.active {
    background: var(--primary-red);
    color: white;
}

/* ============================================ */
/* Theme Toggle Button - Both Themes            */
/* ============================================ */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: rotate(45deg);
}
/* Light Theme Toggle Button */
[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

/* Mobile Menu Button */
.menu-toggle-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-red);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================ */
/* Hero Section - Both Themes                   */
/* ============================================ */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    scroll-margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: calc(2.2rem + 2vw);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--primary-red) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-standard);
}
/* Light Theme Hero Title */
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #111 20%, var(--primary-red) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.2rem;
    border-left: 4px solid var(--primary-red);
    padding-left: 1.5rem;
    margin-top: 2rem;
    transition: var(--transition-standard);
    max-width: 600px;
}
/* Light Theme Hero Subtitle */
[data-theme="light"] .hero-sub {
    color: #4a5568;
}

/* Hero Responsive */
@media (max-width: 991.98px) {
    .hero {
        text-align: center;
        justify-content: center;
        padding-top: 8rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-sub {
        border-left: none;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 576.98px) {
    .hero {
        min-height: auto;
        padding: 7rem 1.5rem 4rem;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    .hero-sub {
        font-size: 1rem;
        line-height: 1.6;
    }
}
@media (max-width: 350.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-sub {
        font-size: 0.85rem;
    }
    .hero {
        padding-top: 6rem;
    }
}

/* ============================================ */
/* Service Cards - Both Themes                  */
/* ============================================ */
.service-card-modern {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.service-card-modern:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 30px -15px rgba(227, 27, 35, 0.3);
}

.service-icon-lg {
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    display: block;
}

.service-img-container {
    width: 100%;
    height: 130px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1rem;
    position: relative;
}
.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card-modern:hover .service-card-img {
    transform: scale(1.1);
}

/* Rating Stars - Both Themes */
.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Pricing Styles */
.price-tag {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.3rem;
}
.price-nexus {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.price-final {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.3rem;
}
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Discount Badge */
.discount-badge-nexus {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.4);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Service List View */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.service-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    transition: var(--transition-standard);
}
.service-list-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}
.service-list-item h5 {
    font-size: 1rem;
    margin-bottom: 2px !important;
}
.service-list-img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* View Toggle Buttons */
.view-toggle .btn-toggle {
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 40px;
    transition: var(--transition-standard);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.view-toggle .btn-toggle.active {
    background: var(--primary-red);
    color: white;
}
[data-theme="light"] .view-toggle .btn-toggle {
    background: rgba(0, 0, 0, 0.04);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================ */
/* Testimonial Cards - Both Themes              */
/* ============================================ */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
}
/* Light Theme Testimonial Card */
[data-theme="light"] .testimonial-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .testimonial-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--primary-red);
}

/* Avatar */
.avatar {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-red), #ff4d4d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--glow-red);
}

/* ============================================ */
/* Why Choose Us Cards - Both Themes            */
/* ============================================ */
.why-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 1.8rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-red);
    transition: background 0.3s, transform 0.3s;
    height: 100%;
}
.why-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}
[data-theme="light"] .why-card {
    border-bottom-color: var(--primary-red);
}

/* ============================================ */
/* Certification Badges - Both Themes           */
/* ============================================ */
.cert-badge {
    background: var(--bg-card-hover);
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: var(--transition-standard);
    border: 1px solid var(--border-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.cert-badge:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(227, 27, 35, 0.15);
}
.cert-badge i {
    font-size: 2.5rem;
    color: var(--primary-red);
    transition: var(--transition-standard);
}

/* ============================================ */
/* Location Cards - Both Themes                 */
/* ============================================ */
.location-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1.5rem;
    transition: var(--transition-standard);
    border: 1px solid var(--border-card);
    height: 100%;
}
.location-card:hover {
    border-color: var(--primary-red);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ============================================ */
/* Brand Slider - Both Themes                   */
/* ============================================ */
.brand-slide {
    text-align: center;
    opacity: 0.7;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(0.6);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
}
.brand-slide:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}
.brand-slide i {
    font-size: 3.5rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s;
}
.brand-slide:hover i {
    color: var(--primary-red);
}
.brand-slide p {
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
/* Light Theme Brand Slide */
[data-theme="light"] .brand-slide i {
    color: #4a5568;
}
[data-theme="light"] .brand-slide p {
    color: #2d3748;
}

/* Swiper Pagination - Both Themes */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 6px;
    height: 6px;
    transition: var(--transition-standard);
}
.swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
    width: 24px !important;
    border-radius: 10px !important;
    box-shadow: var(--glow-red);
}
[data-theme="light"] .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
}

/* ============================================ */
/* Footer - Both Themes                         */
/* ============================================ */
.footer-modern {
    background: var(--bg-footer);
    transition: background 0.3s ease;
    border-top: 1px solid var(--border-subtle);
}
[data-theme="light"] .footer-modern {
    background: #f8f9fa;
    border-top-color: rgba(0, 0, 0, 0.05);
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .social-icon {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}
.social-icon:hover {
    background: var(--primary-red);
    color: #fff !important;
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

/* Footer Links */
.footer-link {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.footer-link:hover {
    color: var(--primary-red) !important;
    padding-left: 5px;
}

/* Footer Headings */
.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    font-weight: 700;
}
[data-theme="light"] .footer-heading {
    color: #111;
}

/* Footer Divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .footer-divider {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Footer Glow Effect */
.footer-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================ */
/* Form Controls - Both Themes                  */
/* ============================================ */

/* Global Form Reset */
.form-control,
.form-select,
.form-control-modern {
    box-shadow: none !important;
    outline: none !important;
}

/* Modern Input Styles */
.form-control-modern,
input.form-control-modern,
textarea.form-control-modern {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.form-control-modern:focus,
.form-control-modern:active,
.form-control-modern:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Input Wrapper Styles */
.form-group-modern {
    margin-bottom: 1.2rem;
}
.form-group-modern label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
    color: var(--text-secondary);
}
.form-control-modern {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: 28px;
    padding: 12px 20px;
    color: var(--text-input);
    width: 100%;
    transition: var(--transition-standard);
}
.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(227, 27, 35, 0.3);
}
select.form-control-modern {
    cursor: pointer;
}
/* Light Theme Input Enhancements */
[data-theme="light"] .form-control-modern {
    background-color: #f1f3f7 !important;
    border: 1.5px solid #d1d9e6 !important;
    color: #1a202c !important;
}
[data-theme="light"] .form-control-modern::placeholder {
    color: #718096 !important;
    opacity: 0.8;
}
[data-theme="light"] .form-control-modern:focus {
    border-color: #e31b23 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.12) !important;
}

/* ============================================ */
/* CAPTCHA Component - Both Themes              */
/* ============================================ */
.captcha-box-premium {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(227, 27, 35, 0.2);
    border-radius: 24px;
    padding: 1.8rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: inset 0 0 30px rgba(227, 27, 35, 0.05), var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1rem;
}
.captcha-box-premium:focus-within {
    border-color: #ff3b30;
    background: rgba(227, 27, 35, 0.04);
    box-shadow: 0 0 30px rgba(227, 27, 35, 0.15), inset 0 0 15px rgba(255, 59, 48, 0.1);
    transform: translateY(-2px);
}
/* Light Theme CAPTCHA */
[data-theme="light"] .captcha-box-premium {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(227, 27, 35, 0.3);
    box-shadow: var(--shadow-sm);
}
[data-theme="light"] .captcha-box-premium:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-red);
}

.captcha-image {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.08);
    min-width: 180px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.captcha-image:hover {
    transform: scale(1.04) rotate(-1deg);
}
.captcha-image img.captcha {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
/* Light Theme CAPTCHA Image */
[data-theme="light"] .captcha-image {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
}
[data-theme="light"] .captcha-image img.captcha {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.captcha-box-premium input[type="text"] {
    background: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #ff3b30 !important;
    padding: 16px 20px !important;
    flex-grow: 1;
    min-width: 160px;
    text-align: center;
    font-weight: 950;
    font-size: 1.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.9);
    outline: none !important;
    transition: all 0.3s;
}
.captcha-box-premium input[type="text"]:focus {
    border-color: #ff3b30 !important;
    background: #050505 !important;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2), inset 0 2px 15px rgba(227, 27, 35, 0.4);
}
/* Light Theme CAPTCHA Input */
[data-theme="light"] .captcha-box-premium input[type="text"] {
    background: #ffffff !important;
    border: 2px solid #cbd5e0 !important;
    color: #e31b23 !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .captcha-box-premium input[type="text"]:focus {
    border-color: #e31b23 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.1);
}

/* CAPTCHA Responsive */
@media (max-width: 768px) {
    .captcha-box-premium {
        flex-direction: column;
        padding: 1.5rem;
        gap: 25px;
    }
    .captcha-image {
        width: 100%;
        min-height: 100px;
    }
    .captcha-box-premium input[type="text"] {
        width: 100%;
        min-width: 100%;
        font-size: 1.3rem;
        letter-spacing: 4px;
    }
}

/* ============================================ */
/* Modal & Quote Form - Both Themes             */
/* ============================================ */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.quote-modal.show {
    display: flex;
    opacity: 1;
}

.quote-modal-content {
    background: var(--bg-modal);
    border-radius: 48px;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    border: 1px solid rgba(227, 27, 35, 0.5);
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.quote-modal.show .quote-modal-content {
    transform: scale(1);
}
/* Light Theme Modal */
[data-theme="light"] .quote-modal-content {
    background: #ffffff;
    border: 1px solid rgba(227, 27, 35, 0.3);
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(227, 27, 35, 0.3);
    padding-bottom: 1rem;
}
.modal-header-custom h3 {
    margin: 0;
    font-weight: 800;
    color: var(--text-primary);
}

.close-modal {
    background: var(--bg-card-hover);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-standard);
    cursor: pointer;
}
.close-modal:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg);
}

.quote-price-preview {
    background: rgba(227, 27, 35, 0.15);
    border-radius: 28px;
    padding: 12px 16px;
    text-align: center;
    margin: 1rem 0;
    border: 1px dashed var(--primary-red);
}

/* ============================================ */
/* Floating Action Button (FAB) - Both Themes   */
/* ============================================ */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(227, 27, 35, 0.4);
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    z-index: 2;
}
.fab-main:hover {
    transform: scale(1.1) rotate(10deg);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    transform: translateY(20px);
}
.fab-container.active .fab-options,
.fab-container:hover .fab-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.fab-option:hover {
    transform: scale(1.2);
}
.fab-option span {
    position: absolute;
    right: 65px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    backdrop-filter: blur(5px);
}
.fab-option:hover span {
    opacity: 1;
}
/* Light Theme FAB Tooltip */
[data-theme="light"] .fab-option span {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: var(--shadow-sm);
}

/* FAB Option Colors */
.fab-whatsapp {
    background: #25D366;
}
.fab-phone {
    background: #34b7f1;
}
.fab-location {
    background: #EA4335;
}
.fab-quote {
    background: #FBBC05;
}

/* Desktop Sidebar Contact */
.contact-sidebar {
    position: fixed;
    left: 0;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0.8rem;
    border-radius: 0 30px 30px 0;
    border-right: 3px solid var(--primary-red);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
/* Light Theme Contact Sidebar */
[data-theme="light"] .contact-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-right: 3px solid var(--primary-red);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    .contact-sidebar {
        display: none;
    }
    .fab-main {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* ============================================ */
/* Glass Card Modern - Both Themes              */
/* ============================================ */
.glass-card-modern {
    background: var(--bg-card);
    backdrop-filter: blur(25px) saturate(1.8);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
}
[data-theme="light"] .glass-card-modern {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

/* ============================================ */
/* Utility Classes - Both Themes               */
/* ============================================ */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(227, 27, 35, 0.2);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}
.object-fit-cover {
    object-fit: cover;
}

.bg-danger-glass {
    background: rgba(227, 27, 35, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(227, 27, 35, 0.2);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #e31b23 0%, #8e0000 100%) !important;
}

.animate-glow {
    animation: nexus-card-glow 4s infinite alternate;
}
@keyframes nexus-card-glow {
    0% {
        box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    }
    100% {
        box-shadow: 0 40px 100px -20px rgba(227, 27, 35, 0.15);
    }
}

.fw-black {
    font-weight: 900 !important;
}
.letter-spacing-1 {
    letter-spacing: 1px !important;
}

/* ============================================ */
/* Success Animation - Both Themes              */
/* ============================================ */
.success-icon-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-success 2s infinite;
}
.tiny-text {
    font-size: 0.7rem;
}
@keyframes pulse-success {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ============================================ */
/* Service Container Overrides - Both Themes    */
/* ============================================ */
#servicesContainer .card,
#servicesContainer .service-card,
#servicesContainer .service-card-modern,
#servicesContainer .service-list-item {
    background: var(--bg-card) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary) !important;
}
#servicesContainer h4,
#servicesContainer h5,
#servicesContainer .price-tag,
#servicesContainer .price-final {
    color: var(--text-primary) !important;
}
#servicesContainer .text-secondary,
#servicesContainer .text-muted,
#servicesContainer small {
    color: var(--text-muted) !important;
}

/* ============================================ */
/* Responsive Adjustments - Both Themes         */
/* ============================================ */
@media (max-width: 767.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .location-card {
        text-align: center;
    }
    .service-icon-lg {
        font-size: 1.8rem;
    }
    .service-img-container {
        height: 100px;
    }
    .service-card-modern h4 {
        font-size: 0.95rem;
    }
    .rating-stars {
        font-size: 0.75rem;
    }
    .price-tag {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .services-grid {
        gap: 0.5rem;
    }
    .service-card-modern {
        padding: 0.6rem;
    }
    .service-img-container {
        height: 80px;
    }
    .service-card-modern h4 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .btn-red {
        padding: 8px 14px;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
        font-weight: 600;
    }
    .btn-outline-red {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    .service-list-item {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    .service-list-img {
        width: 80px;
        height: 55px;
    }
}

/* ============================================ */
/* Autofill Fix for Chrome - Both Themes        */
/* ============================================ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}