﻿/* ==========================================================================
   Signum Technology Website - Optimized CSS (Duplicates Removed)
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Consolidated Root Variables */
:root {
    /* Microland Colors */
    --primary-navy: #000129;
    --primary-white: #FFFFFF;
    --light-gray: #F0EFF2;
    --accent-red: #DB333D;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #FAFAFA;
    --overlay-dark: rgba(0, 1, 41, 0.9);
    /* Additional Colors */
    --medium-gray: #e0e0e0;
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 1, 41, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 1, 41, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 1, 41, 0.2);
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-white: #1a1a1a;
    --light-gray: #2a2a2a;
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --background-light: #1a1a1a;
}

/* Base HTML & Body */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--primary-white);
    overflow-x: hidden;
    margin: 0;
}

/* Container */
.container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: var(--primary-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    height: 60px;
    padding: 0;
    border-top: 4px solid #b2dfdb;
    width: 100%;
}

    .header.scrolled {
        box-shadow: var(--shadow-medium);
        background: rgba(255, 255, 255, 0.98);
    }

/* Navigation */
nav,
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    z-index: 1001;
}

    .logo-container a {
        display: flex;
        align-items: center;
    }

    .logo-container img {
        height: 60px;
        width: auto;
        display: block;
    }

.nav-right,
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu {
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-link,
.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

.nav-list .active-link {
    background: var(--light-gray);
    color: var(--text-dark);
}

.nav-link:hover,
.nav-menu li a:hover {
    color: var(--accent-red);
    background: var(--light-gray);
}

.nav-link i {
    font-size: 12px;
    transition: transform 0.15s;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

    .dropdown:hover .nav-link i {
        transform: rotate(180deg);
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-white);
    box-shadow: var(--shadow-heavy);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
    border: 1px solid var(--light-gray);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 14px;
}

    .dropdown-link:hover {
        background: var(--light-gray);
        color: var(--accent-red);
        transform: translateX(5px);
    }

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 20px;
}

    .search-container input[type="search"],
    .search-container input {
        padding: 8px 12px;
        border: 1px solid var(--medium-gray);
        border-right: none;
        border-radius: 4px 0 0 4px;
        font-size: 14px;
        background: var(--light-gray);
        transition: all 0.2s;
        height: 40px;
        width: 150px;
        outline: none;
    }

        .search-container input:focus {
            outline: none;
            border-color: var(--accent-red);
            box-shadow: 0 0 0 1px var(--accent-red);
            background: #fff;
        }

    .search-btn,
    .search-container button {
        background: var(--accent-red);
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: background 0.2s;
        height: 40px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

        .search-btn:hover,
        .search-container button:hover {
            background: #a31515;
        }

/* Search Box Alternative */
.search-box {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    transition: all var(--transition-fast);
}

    .search-box:focus-within {
        box-shadow: 0 0 0 2px var(--accent-red);
    }

.search-input {
    border: none;
    background: transparent;
    padding: var(--spacing-xs) var(--spacing-sm);
    outline: none;
    width: 200px;
    transition: width var(--transition-normal);
}

    .search-input:focus {
        width: 250px;
    }

/* Theme Toggle */
.theme-toggle {
    background: var(--light-gray);
    border: none;
    color: var(--text-dark);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    font-size: 18px;
    display: none;
}

    .theme-toggle:hover {
        background: var(--accent-red);
        color: var(--primary-white);
    }

/* Mobile Menu Toggle / Hamburger */

/*.mobile-menu-toggle,
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: 5px;
    z-index: 1001;
}

    .mobile-menu-toggle span,
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        margin: 3px 0;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
*/

/* Hamburger Menu */
/* ==================== HEADER & NAVIGATION (PROFESSIONAL UI) ==================== */

/* Header Base */
/* ==================== HEADER & NAVIGATION ==================== */

/* Header Base */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Nav Container - Perfect Flex Alignment */
nav,
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
}

/* Logo Container - Perfect Vertical Center */
.logo-container {
    flex-shrink: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    top: -3px;
}

    .logo-container a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .logo-img,
    .logo-container img {
        height: 55px;
        width: auto;
        display: block;
        object-fit: contain;
        vertical-align: middle;
        margin-top: -16px;
    }

/* Body padding update */
body {
    padding-top: 80px;
}

/* ==================== DESKTOP NAVIGATION ==================== */

.nav-right,
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-top: -18px;
}

/* Navigation Links - Perfect Center Alignment */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
    align-items: center;
}

    .nav-links li {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

        .nav-links li a {
            color: #1a1a1a;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            line-height: 1;
            transition: color 0.3s ease;
            white-space: nowrap;
            padding: 8px 0;
        }

            .nav-links li a:hover {
                color: #d32f2f;
            }

/* Search Container - Perfectly Aligned */
.search-container {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 4px;
    height: 40px;
}

.search-input,
#searchInput {
    padding: 0 12px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 150px;
    color: #333;
    height: 100%;
    line-height: 1;
}

    .search-input::placeholder,
    #searchInput::placeholder {
        color: #888;
    }

.search-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 38px;
    flex-shrink: 0;
}

    .search-btn:hover {
        background: #b71c1c;
    }

    .search-btn i {
        font-size: 14px;
    }

/* Theme Toggle - Perfect Circle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 21px;
    cursor: pointer;
    color: #1a1a1a;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

    .theme-toggle:hover {
        color: #d32f2f;
        background: rgba(211, 47, 47, 0.08);
    }

/* ==================== HAMBURGER MENU ==================== */

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    z-index: 1002;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s ease;
}

    .hamburger:hover {
        background: rgba(211, 47, 47, 0.08);
    }

    .hamburger span {
        width: 26px;
        height: 2.5px;
        background: #1a1a1a;
        border-radius: 3px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
    }

    /* Hamburger Active (Smooth X Animation) */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: #d32f2f;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: #d32f2f;
    }

/* ==================== MOBILE OVERLAY (ENHANCED) ==================== */

.mobileOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}

    .mobileOverlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ==================== MOBILE NAVIGATION MENU (PROFESSIONAL DESIGN) ==================== */

.nav-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 0;
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
}

    .nav-menu.active {
        right: 0;
    }

    /* Mobile Menu Header - Gradient Top */
    .nav-menu::before {
        content: '';
        display: block;
        height: 80px;
        background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* Mobile Menu Links Container */
    .nav-menu ul {
        list-style: none;
        padding: 25px 20px;
        margin: 0;
        background: #ffffff;
    }

        /* Mobile Menu Links - Modern Card Style */
        .nav-menu ul li {
            margin-bottom: 10px;
        }

            .nav-menu ul li a {
                color: #1a1a1a;
                text-decoration: none;
                font-size: 16px;
                font-weight: 500;
                display: flex;
                align-items: center;
                padding: 16px 20px;
                border-radius: 12px;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
                background: #f8f9fa;
                border: 1px solid transparent;
            }

                /* Hover & Active States */
                .nav-menu ul li a:hover {
                    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
                    color: #d32f2f;
                    border-color: #ffcdd2;
                    transform: translateX(6px);
                    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.12);
                }

                .nav-menu ul li a:active {
                    transform: translateX(6px) scale(0.98);
                }

                /* Add icon before each link */
                .nav-menu ul li a::before {
                    content: '';
                    width: 6px;
                    height: 6px;
                    background: #d32f2f;
                    border-radius: 50%;
                    margin-right: 12px;
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }

                .nav-menu ul li a:hover::before {
                    opacity: 1;
                }

                /* Add arrow after each link */
                .nav-menu ul li a::after {
                    content: '›';
                    margin-left: auto;
                    font-size: 24px;
                    font-weight: 300;
                    color: #d32f2f;
                    opacity: 0;
                    transform: translateX(-10px);
                    transition: all 0.3s ease;
                }

                .nav-menu ul li a:hover::after {
                    opacity: 1;
                    transform: translateX(0);
                }

/* Mobile Search Section */
.mobile-search {
    margin: 0 20px 25px 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.mobile-search-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-search-wrapper {
    display: flex;
    gap: 8px;
}

.mobile-search-input {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

    .mobile-search-input:focus {
        border-color: #d32f2f;
        box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    }

.mobile-search .search-btn {
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

    .mobile-search .search-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
    }

    .mobile-search .search-btn:active {
        transform: scale(0.95);
    }

/* Menu Footer (Optional) */
.nav-menu-footer {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

    .nav-menu-footer p {
        font-size: 12px;
        color: #888;
        margin: 0;
    }

/* Custom Scrollbar for Mobile Menu */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: #d32f2f;
    border-radius: 10px;
}

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: #b71c1c;
    }

/* ==================== ANIMATION ENHANCEMENTS ==================== */

/* Stagger animation for menu items */
.nav-menu.active ul li {
    animation: slideInMenuItem 0.4s ease forwards;
    opacity: 0;
}

    .nav-menu.active ul li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active ul li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-menu.active ul li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-menu.active ul li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-menu.active ul li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-menu.active ul li:nth-child(6) {
        animation-delay: 0.35s;
    }

@keyframes slideInMenuItem {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Search section animation */
.nav-menu.active .mobile-search {
    animation: fadeInUp 0.5s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==================== RESPONSIVE MEDIA QUERIES FOR ALL CLASSES ==================== */

/* Small Mobile */
@media (max-width: 480px) {
    .container, .nav-container, .header, .footer, .hero-content, .about-content {
        padding: 0 12px;
    }

    .logo-img, .logo-container img {
        height: 38px;
    }

    .nav-menu {
        width: 260px;
        right: -280px;
    }

    .hero-title, .section-title {
        font-size: 1.4rem;
    }

    .hero-subtitle, .section-subtitle, .stat-label, .service-description, .feature-item {
        font-size: 0.9rem;
    }

    .service-icon, .card-video-container {
        height: 140px !important;
    }

    .about-content, .footer-content, .services-grid, .relationships-grid, .news-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testimonial-content, .testimonial-text, .testimonial-author, .author-name {
        font-size: 0.95rem;
    }

    .modal-content {
        margin: 12px;
        padding: 16px;
        max-width: 96vw;
    }

    .btn, .btn-primary, .btn-secondary {
        padding: 10px 12px;
        font-size: 0.92rem;
    }

    .mobileOverlay, .utility-bar {
        display: none !important;
    }

    body {
        padding-top: 62px;
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .nav-container, .container, .header, .footer {
        padding: 0 16px;
    }

    .logo-img, .logo-container img {
        height: 44px;
    }

    .nav-menu {
        width: 280px;
        right: -300px;
    }

    .hamburger {
        display: flex;
    }

    .nav-right.desktop-nav, .nav-right, .desktop-nav {
        display: none !important;
    }

    .section-title, .hero-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-controls {
        gap: 12px;
        flex-direction: column;
    }

    .mobileOverlay {
        display: block;
    }

    body {
        padding-top: 70px;
    }
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    }
.stat-number {
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.8rem;
}

/* ==================== RESPONSIVE MEDIA QUERIES: GROWTH STORY SECTION (AUTO-FIT WRAP FIX) ==================== */

/* Small Mobile */
@media (max-width: 480px) {
    .growth-story-section {
        padding: 32px 0 12px 0;
    }

    .growth-container {
        padding: 0 10px;
    }

    .growth-heading {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
        gap: 10px;
        width: 100%;
        word-break: break-word;
    }

    .stat-item {
        padding: 10px 4px;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.12rem;
        font-weight: 600;
    }

    .stat-label {
        font-size: 0.78rem;
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .growth-story-section {
        padding: 40px 0 18px 0;
    }

    .growth-container {
        max-width: 100%;
        padding: 0 12px;
    }

    .growth-heading {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
        width: 100%;
        word-break: break-word;
    }

    .stat-item {
        min-width: 0;
        padding: 14px 8px;
        border-radius: 10px;
        box-shadow: var(--shadow-xs);
    }

    .stat-number {
        font-size: 1.35rem;
        font-weight: 700;
    }

    .stat-label {
        font-size: 0.89rem;
    }
}

/* Tablet Large */
@media (min-width: 769px) and (max-width: 1024px) {
    .growth-story-section {
        padding: 52px 0 22px 0;
    }

    .growth-container {
        max-width: 92%;
        padding: 0 20px;
    }

    .growth-heading {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        width: 100%;
        word-break: break-word;
    }

    .stat-item {
        padding: 18px 10px;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.6rem;
        font-weight: 800;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* Desktop and Up */
@media (min-width: 1025px) {
    .growth-story-section {
        padding: 64px 0 32px 0;
    }

    .growth-container {
        max-width: 86%;
        padding: 0 36px;
    }

    .growth-heading {
        font-size: 2.5rem;
        margin-bottom: 22px;
        font-weight: 700;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 32px;
        width: 100%;
        word-break: break-word;
    }

    .stat-item {
        min-width: 0;
        padding: 24px 14px;
        background: var(--color-surface, #fff);
        border-radius: 14px;
        box-shadow: var(--shadow-lg, 0 4px 24px rgba(31,33,33,0.09));
    }

    .stat-number {
        font-size: 1.9rem;
        font-weight: 900;
    }

    .stat-label {
        font-size: 1.07rem;
    }
}

/* Large Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container, .nav-container, .header, .footer {
        padding: 0 24px;
    }

    .logo-img, .logo-container img {
        height: 48px;
    }

    .nav-links {
        gap: 22px;
    }

        .nav-links li a, .service-title, .news-title {
            font-size: 1rem;
        }

    .search-input, #searchInput {
        width: 130px;
    }

    .nav-right, .desktop-nav {
        gap: 25px;
    }

    .services-grid, .relationships-grid, .footer-content, .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-video-container, .service-icon {
        height: 180px !important;
    }

    body {
        padding-top: 75px;
    }
}

/* Desktop - Hide Mobile Elements */
@media (min-width: 769px) {
    .nav-menu, .mobileOverlay, .hamburger {
        display: none !important;
    }

    .nav-right.desktop-nav, .nav-right, .desktop-nav {
        display: flex !important;
    }

    .services-grid, .footer-content, .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .relationships-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 48px 0;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .container, .nav-container, .header, .footer {
        padding: 0 40px;
    }

    .logo-img, .logo-container img {
        height: 52px;
    }

    .nav-links {
        gap: 32px;
    }

        .nav-links li a, .service-title, .news-title {
            font-size: 1.2rem;
        }

    .search-input, #searchInput {
        width: 160px;
    }

    .services-grid, .relationships-grid {
        gap: 32px;
    }

    body {
        padding-top: 80px;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container, .nav-container, .header, .footer {
        padding: 0 50px;
    }

    .logo-img, .logo-container img {
        height: 58px;
    }

    .nav-links {
        gap: 40px;
    }

        .nav-links li a, .service-title {
            font-size: 1.4rem;
        }

    .search-input, #searchInput {
        width: 180px;
    }

    .services-grid, .relationships-grid, .news-grid, .footer-content {
        gap: 48px;
    }

    body {
        padding-top: 88px;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1600px) {
    .container, .nav-container {
        padding: 0 60px;
    }

    .logo-img, .logo-container img {
        height: 64px;
    }

    .nav-links {
        gap: 48px;
    }

        .nav-links li a, .service-title {
            font-size: 1.6rem;
        }

    .search-input, #searchInput {
        width: 200px;
    }

    .services-grid, .relationships-grid, .news-grid, .footer-content {
        gap: 64px;
    }

    body {
        padding-top: 94px;
    }
}


/* ==================== SCROLLED STATE (BONUS) ==================== */

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

    .header.scrolled nav,
    .header.scrolled .nav-container {
        height: 72px;
    }

    .header.scrolled .logo-img,
    .header.scrolled .logo-container img {
        height: 50px;
    }

/* ==================== DARK MODE SUPPORT ==================== */

[data-theme="dark"] .header,
[data-theme="dark"] .nav-menu {
    background: #1a1a1a;
}

    [data-theme="dark"] .nav-menu::before {
        background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
    }

    [data-theme="dark"] .nav-menu ul {
        background: #1a1a1a;
    }

        [data-theme="dark"] .nav-menu ul li a {
            background: #252525;
            color: #f5f5f5;
            border-color: transparent;
        }

            [data-theme="dark"] .nav-menu ul li a:hover {
                background: linear-gradient(135deg, #2a1a1a 0%, #3a1f1f 100%);
                border-color: #4a2020;
            }

[data-theme="dark"] .nav-links li a,
[data-theme="dark"] .hamburger span,
[data-theme="dark"] .theme-toggle {
    color: #f5f5f5;
}

[data-theme="dark"] .search-container {
    background: #2a2a2a;
}

[data-theme="dark"] .search-input,
[data-theme="dark"] #searchInput {
    color: #f5f5f5;
}

    [data-theme="dark"] .search-input::placeholder,
    [data-theme="dark"] #searchInput::placeholder {
        color: #888;
    }

[data-theme="dark"] .mobile-search {
    background: linear-gradient(135deg, #252525 0%, #2a2a2a 100%);
    border-color: #333;
}

[data-theme="dark"] .mobile-search-input {
    background: #1a1a1a;
    border-color: #333;
    color: #f5f5f5;
}

[data-theme="dark"] .nav-menu-footer {
    border-top-color: #333;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(245, 245, 245, 0.08);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: none !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9 !important;
}

.hero-overlay {
    background: none !important;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    color: var(--primary-white);
    z-index: 10;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 1, 41, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

    .stat-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-red), transparent);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    .stat-item:hover {
        transform: translateY(-8px);
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 40px rgba(219, 51, 61, 0.2);
    }

        .stat-item:hover::before {
            opacity: 1;
        }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-white);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.3s;
}

    .scroll-indicator span {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
        display: block;
        opacity: 0.8;
    }

.scroll-arrow {
    margin-top: var(--spacing-xs);
    animation: bounce 2s infinite;
    font-size: 1.2rem;
    color: var(--accent-red);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #c42a37 100%);
    color: var(--primary-white);
    box-shadow: 0 4px 15px rgba(219, 51, 61, 0.4);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #c42a37 0%, var(--accent-red) 100%);
        box-shadow: 0 6px 20px rgba(219, 51, 61, 0.6);
        transform: translateY(-3px);
    }

.btn-secondary {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-white);
        transform: translateY(-3px);
    }

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--primary-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-red), var(--primary-navy));
        transform: scaleX(0);
        transition: transform var(--transition-normal);
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-heavy);
        border-color: var(--light-gray);
    }

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-navy));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--primary-white);
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(219, 51, 61, 0.3);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.service-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

    .service-link:hover {
        gap: var(--spacing-sm);
        transform: translateX(5px);
    }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 1, 41, 0.8);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: var(--primary-white);
    margin: auto;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 1, 41, 0.3);
    animation: modalSlideIn 0.3s ease;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-lg) 0;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: var(--spacing-lg);
}

    .modal-header h2 {
        color: var(--primary-navy);
        font-size: 1.5rem;
        font-weight: 600;
        border-bottom: 2px solid #ccc;
        padding-bottom: 10px;
        margin-top: 0;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .modal-close:hover {
        color: var(--accent-red);
        background: var(--light-gray);
    }

.modal-body {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    line-height: 1.6;
}

    .modal-body h3 {
        color: var(--primary-navy);
        font-size: 1.3rem;
        margin-bottom: var(--spacing-sm);
    }

    .modal-body h4 {
        color: var(--primary-navy);
        font-size: 1.1rem;
        margin: var(--spacing-md) 0 var(--spacing-sm);
    }

    .modal-body ul {
        margin-left: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .modal-body li {
        margin-bottom: var(--spacing-xs);
    }

.modal-features {
    margin: var(--spacing-lg) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.feature-box {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--background-light);
}

    .feature-box i {
        font-size: 2rem;
        color: var(--accent-red);
        margin-bottom: var(--spacing-sm);
    }

    .feature-box h4 {
        color: var(--primary-navy);
        margin-bottom: var(--spacing-xs);
    }

/* Clients Section */
.clients {
    background: var(--primary-white);
    padding: var(--spacing-lg) 0;
}

.clients-carousel {
    overflow: hidden;
    margin-top: var(--spacing-lg);
    mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    animation: scroll 25s linear infinite;
    gap: var(--spacing-xl);
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

    .client-logo:hover {
        opacity: 1;
    }

    .client-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: grayscale(100%);
        transition: filter var(--transition-fast);
    }

    .client-logo:hover img {
        filter: grayscale(0%);
    }


.clients {
    background: var(--primary-white);
    padding: var(--spacing-lg) 0;
}

.clients-carousel {
    overflow: hidden;
    margin-top: var(--spacing-lg);
    mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
    display: flex;
    animation: scroll 25s linear infinite;
    gap: var(--spacing-xl);
    width: max-content; /* Important: ensures track stretches */
}

/* Scroll Animation - हे जोडा */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%); /* Half width कारण logos duplicate आहेत */
    }
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

    .client-logo:hover {
        opacity: 1;
    }

    .client-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: grayscale(100%);
        transition: filter var(--transition-fast);
    }

    .client-logo:hover img {
        filter: grayscale(0%);
    }

/* Pause animation on hover */
.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}


/* Testimonials Section */
.testimonials {
    background: var(--background-light);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    min-width: 100%;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

    .testimonial-card.active {
        opacity: 1;
    }

.testimonial-content {
    background: var(--primary-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
}

    .testimonial-content::before {
        content: '"';
        position: absolute;
        top: -10px;
        left: 30px;
        font-size: 4rem;
        color: var(--accent-red);
        font-weight: bold;
        line-height: 1;
    }

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-red);
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.author-title {
    color: var(--text-light);
    font-size: 0.95rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-prev,
.testimonial-next {
    background: var(--primary-white);
    border: 2px solid var(--light-gray);
    color: var(--text-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

    .testimonial-prev:hover,
    .testimonial-next:hover {
        background: var(--accent-red);
        color: var(--primary-white);
        border-color: var(--accent-red);
        transform: scale(1.1);
    }

.testimonial-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: background var(--transition-fast);
}

    .dot.active {
        background: var(--accent-red);
    }

/* News Section */
.news {
    background: var(--primary-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background: var(--primary-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    border: 1px solid var(--light-gray);
}

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-heavy);
        border-color: var(--accent-red);
    }

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-slow);
    }

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category,
.news-category-inline {
    background: var(--accent-red);
    color: var(--primary-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
}

.news-category-inline {
    padding: 2px 8px;
}

.news-content {
    padding: var(--spacing-lg);
}

.news-meta {
    margin-bottom: var(--spacing-md);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: var(--spacing-md);
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.news-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

    .news-link:hover {
        gap: var(--spacing-sm);
        transform: translateX(5px);
    }

/* About Section */
.about {
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.about-features {
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

    .feature-item i {
        color: var(--accent-red);
        font-size: 1.2rem;
        width: 20px;
    }

    .feature-item span {
        font-size: 1.05rem;
        color: var(--text-dark);
    }

.about-image {
    position: relative;
}

    .about-image img {
        width: 100%;
        height: auto;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-heavy);
        transition: transform var(--transition-slow);
    }

    .about-image:hover img {
        transform: scale(1.02);
    }

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--primary-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 50px;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

    .footer-social a {
        color: var(--primary-white);
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-fast);
        font-size: 1.2rem;
    }

        .footer-social a:hover {
            background: var(--accent-red);
            transform: translateY(-3px);
            box-shadow: 0 4px 15px rgba(219, 51, 61, 0.4);
        }

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-white);
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: var(--spacing-xs);
    }

    .footer-links a {
        color: var(--primary-white);
        text-decoration: none;
        opacity: 0.8;
        transition: all var(--transition-fast);
        font-size: 1.05rem;
    }

        .footer-links a:hover {
            opacity: 1;
            color: var(--accent-red);
            transform: translateX(5px);
        }

.contact-info {
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

    .contact-item i {
        color: var(--accent-red);
        width: 20px;
        font-size: 1.1rem;
    }

/* Newsletter Section - Fixed */
.newsletter {
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

    .newsletter h4 {
        margin-bottom: var(--spacing-sm);
        color: var(--primary-white);
        font-size: 1.1rem;
    }

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    width: 100%;
    max-width: 100%; /* Ensure form stays within bounds */
}

    .newsletter-form input {
        flex: 1;
        padding: var(--spacing-sm);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-white);
        font-size: 1rem;
        min-width: 0; /* Important: Allow flex item to shrink below content size */
        box-sizing: border-box;
    }

        .newsletter-form input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

    .newsletter-form button {
        background: var(--accent-red);
        color: var(--primary-white);
        border: none;
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: background var(--transition-fast);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap; /* Prevent button text from wrapping */
        flex-shrink: 0; /* Prevent button from shrinking */
        box-sizing: border-box;
    }

        .newsletter-form button:hover {
            background: #c42a37;
        }

/* Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column; /* Stack vertically on mobile */
        gap: var(--spacing-sm);
    }

        .newsletter-form button {
            width: 100%; /* Full width button on mobile */
        }
}

@media (max-width: 480px) {
    .newsletter h4 {
        font-size: 1rem;
    }

    .newsletter-form input {
        font-size: 0.9rem;
        padding: 10px;
    }

    .newsletter-form button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: var(--spacing-md);
}

    .legal-links a {
        color: var(--primary-white);
        text-decoration: none;
        font-size: 0.95rem;
        transition: color var(--transition-fast);
    }

        .legal-links a:hover {
            color: var(--accent-red);
        }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 55px;
    height: 55px;
    background: var(--accent-red);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(219, 51, 61, 0.4);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background: #c42a37;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(219, 51, 61, 0.6);
    }

/* Relationships Section */
.relationships-section {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.relationships-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    overflow-x: auto;
}

.relationship-card {
    flex-basis: 23.5%;
    min-width: 200px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: left;
}

.card-video-container {
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

    .card-video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.relationship-card h2 {
    color: #0056b3;
    font-size: 1.2em;
    margin-top: 0;
}

.relationship-card button,
dialog button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

    .relationship-card button:hover,
    dialog button:hover {
        background-color: #0056b3;
    }

/* Dialog/Modal for Relationships */
dialog {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

    dialog::backdrop {
        background-color: rgba(0, 0, 0, 0.7);
    }

#closeClientModal,
#closeTechModal,
#closeEcoModal,
#closeCommunityModal {
    width: auto;
    display: inline-block;
    margin-top: 25px;
    padding: 10px 30px;
}



/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}

    .mobile-overlay.active {
        display: block;
    }

/* Demo Content */
.demo-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

    .demo-content h1 {
        color: #222;
        margin-bottom: 20px;
    }

    .demo-content p {
        color: #555;
        line-height: 1.6;
        margin-bottom: 15px;
    }

/* AOS Animation Classes */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    [data-aos].aos-animate {
        opacity: 1;
    }

[data-aos="fade-up"] {
    transform: translateY(50px);
}

    [data-aos="fade-up"].aos-animate {
        transform: translateY(0);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #c42a37;
    }

/* Selection Colors */
::selection {
    background: var(--accent-red);
    color: var(--primary-white);
}

::-moz-selection {
    background: var(--accent-red);
    color: var(--primary-white);
}

/* Quote Styles */
blockquote {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-left: 4px solid var(--accent-red);
    margin: var(--spacing-md) 0;
    font-style: italic;
}

cite {
    display: block;
    text-align: right;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ANIMATIONS - Consolidated */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* MOBILE RESPONSIVE STYLES - Consolidated */
@media screen and (max-width: 992px) {
    nav {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 20px;
    }

        .nav-menu li a {
            font-size: 15px;
            padding: 8px 14px;
        }

    .search-container input {
        width: 120px;
    }
}

@media (max-width: 768px) {
    nav,
    .navbar {
        height: 70px;
        padding: 0 16px;
    }

    .logo-container img {
        height: 50px;
    }

    .mobile-menu-toggle,
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-white);
        box-shadow: var(--shadow-heavy);
        padding: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        flex-direction: column;
        gap: 0;
    }

        .nav-menu.active {
            transform: translateX(0);
        }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 30px;
    }

        .nav-right.active {
            right: 0;
        }

    .nav-list,
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

        .nav-link,
        .nav-menu li a {
            width: 100%;
            padding: var(--spacing-md);
            justify-content: space-between;
            display: block;
            font-size: 16px;
        }

            .nav-menu li a:hover {
                background: transparent;
                color: #d3333d;
            }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--light-gray);
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }

    .dropdown.active .dropdown-menu {
        max-height: 400px;
    }

    .search-box,
    .search-container {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

        .search-container input {
            width: 100%;
            border-radius: 4px;
            border: 1px solid #ddd;
        }

    .search-btn {
        width: 100%;
        border-radius: 4px;
        height: 44px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-image {
        order: -1;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        max-width: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

        .testimonial-author .author-info {
            text-align: center;
        }
}

@media (max-width: 480px) {
    nav {
        padding: 0 12px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-container img {
        height: 45px;
    }

    .nav-right {
        width: 260px;
        padding: 80px 20px 20px;
    }

    .nav-menu li a {
        font-size: 15px;
        padding: 12px 0;
    }

    .hero {
        height: 85vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .btn {
        min-width: 140px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 50px;
        height: 50px;
    }
}

/* ACCESSIBILITY & SPECIAL MODES */
@media print {
    .utility-bar,
    .nav-actions,
    .scroll-indicator,
    .back-to-top,
    .modal {
        display: none !important;
    }

    .hero-video {
        display: none;
    }

    section {
        padding: var(--spacing-md) 0;
    }

    .service-card,
    .news-card,
    .testimonial-card {
        break-inside: avoid;
    }
}

@media (prefers-contrast: high) {
    :root {
        --shadow-light: none;
        --shadow-medium: none;
        --shadow-heavy: none;
    }

    .service-card,
    .news-card,
    .testimonial-card {
        border: 2px solid var(--text-dark);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .clients-track {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-video {
        animation: none;
    }
}


