:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --electric-blue: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    
    /* Default values - overridden by inline PHP styles */
    --header-height: 80px;
    --mobile-header-height: 70px;
    --logo-height: 60px;
    --review-card-width: 400px;
    --review-scroll-speed: 50s;
    --gallery-scroll-speed: 30s;
    --cable-section-height: 250vh; /* A good height for desktop */
    --cable-container-height: 400px;
    --sticky-top-offset: 0%;
}



@media (max-width: 768px) {
    .popup-media-main {
        min-height: 300px !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .popup-media-main img {
        max-height: 60vh !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .popup-media-main video {
        max-height: 60vh !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}



* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-dark); 
    background: var(--bg-light);
}
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    position: relative; 
}


/* ============================================
   LOADING SCREEN
   ============================================ */
.loading { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--secondary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 9999; 
    opacity: 1; 
    transition: opacity 0.5s ease; 
}
.loading.fade-out { opacity: 0; pointer-events: none; }
.loading-content { 
    text-align: center; 
    color: white; 
}
.loading-icon { 
    font-size: 4rem; 
    animation: pulse 1.5s ease-in-out infinite; 
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header { 
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(20px); 
    width: 100%; 
    position: fixed; 
    top: 0; 
    z-index: 1000; 
    transition: all 0.3s ease; 
    height: var(--header-height); 
    border-bottom: 1px solid transparent; 
}
.header.scrolled { 
    background: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    border-bottom-color: #e5e7eb; 
}
.nav-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
}
.logo-img { 
    height: var(--logo-height); 
    width: auto; 
    transition: transform 0.3s ease; 
}
.logo-img:hover { transform: scale(1.05); }
.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center; 
}
.nav-link { 
    color: var(--text-dark); 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    position: relative; 
    padding: 0.5rem 0; 
}
.nav-link:hover { color: var(--primary); }
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: linear-gradient(90deg, var(--primary), var(--accent)); 
    transition: width 0.3s ease; 
}
.nav-link:hover::after { width: 100%; }
.mobile-menu-btn { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--text-dark); 
    padding: 0.5rem; 
    z-index: 1002; 
}
.menu-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 998; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}
.menu-overlay.active { display: block; opacity: 1; }

/* Navigation Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.nav-dropdown-menu .nav-link:hover {
    background: #f3f4f6;
    color: #dc2626;
    transform: translateX(5px);
}
.nav-dropdown > .nav-link i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover > .nav-link i { transform: rotate(180deg); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    background: var(--secondary);
    color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    z-index: 0  !important; /* LOW - so bubbles (999) are in front */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 25%, var(--primary-dark) 50%, #7c2d12 75%, var(--secondary) 100%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle { 
    position: absolute; 
    width: 4px;     z-index: 0;
    height: 4px; 
    background: var(--primary); 
    border-radius: 50%; 
    animation: particle-float 15s infinite linear; 
}
@keyframes particle-float { 
    0% { transform: translateY(100vh) translateX(0); opacity: 0; } 
    10% { opacity: 1; } 
    90% { opacity: 1; } 
    100% { transform: translateY(-100px) translateX(100px); opacity: 0; } 
}
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: 800; 
    margin-bottom: 1.5rem;     z-index: 0;
    line-height: 1.1; 
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
.hero-subtitle { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: rgba(255, 255, 255, 0.9); 
    font-weight: 300;     z-index: 0;
}
.hero-description { 
    font-size: 1.125rem; 
    margin-bottom: 3rem; 
    color: rgba(255, 255, 255, 0.8); 
    line-height: 1.8;     z-index: 0;
}
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.3s ease;
    z-index: -1; /* LOW - so bubbles are in front */
}



.hero-card:hover { transform: perspective(1000px) rotateY(-5deg) rotateX(5deg); }
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;       
}
.stat-item { 
    text-align: center; 
    padding: 1.5rem; 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 0.3s ease; 
}
.stat-item:hover { 
    background: rgba(255, 255, 255, 0.1); 
    transform: translateY(-5px); 
}
.stat-number { 
    font-size: 2rem; 
    font-weight: 800; 
    color: var(--accent); 
    font-family: 'Space Grotesk', monospace; 
}
.stat-label { 
    font-size: 1.2rem; 
    color: #f59e0b; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.cta-buttons { 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
    margin-top: 2rem; 
}
.btn { 
    padding: 1.25rem 2.5rem; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1.1rem; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.75rem; 
    border: none; 
    cursor: pointer; 
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent), var(--primary)); 
    color: var(--white); 
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3); 
}
.btn-primary:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.5); 
}
.btn-secondary { 
    background: rgba(255, 255, 255, 0.1); 
    color: var(--white); 
    border: 2px solid rgba(255, 255, 255, 0.3); 
}
.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: translateY(-4px); 
}

/* ============================================
   CABLE ANIMATION SECTION - SCROLL-BASED STICKY ANIMATION
   ============================================ */
.cable-connection-section {
    position: relative;
    width: 100%;
    height: var(--cable-section-height);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 2000; /* VERY HIGH - bubbles (999) go behind */
    isolation: isolate;
}

.cable-connection-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2001;
}

.cable-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
}

.cable-half-container {
    position: absolute;
    width: 50vw;
    max-width: 700px;
    height: auto;
    top: 50%;
    will-change: transform, opacity;
    z-index: 2003;
}

.cable-half-container.cable-left {
    left: 0;
    transform: translateX(-100%) translateY(-50%);
    z-index: 2003;
}

.cable-half-container.cable-right {
    right: 0;
    transform: translateX(100%) translateY(-50%);
    z-index: 2003;
}


.cable-half-container img {
    width: 70%;
    height: auto;
    display: block;
}

/* Logo (Top) */
.cable-logo {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 2005;
    will-change: opacity, transform;
}


/.cables-connected-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 95vw;
    max-width: 1000px;
    min-width: 600px;
    height: auto;
    opacity: 0;
    will-change: opacity, transform;
    z-index: 2004;
    pointer-events: none;
}

.cable-title-bottom {
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    width: 90%;
    max-width: 800px;
    z-index: 2005;
    will-change: opacity, transform;
}

/* Other text styles remain the same */
.powering-future-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.cable-subtitle {
    margin: 0.5rem 0 1.5rem 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}
/* All Other Sections - Low z-index */
.trust-section,
.reviews-section,
.services-showcase,
.projects-section,
.gallery-section,
.logo-scroller-section,
.blog-section,
.faq-section,
.about-section {
    position: relative;
    z-index: 1; /* LOW - bubbles in front */
}

/* ============================================
   RESPONSIVE STYLES FOR ANIMATION (CORRECTED)
   ============================================ */

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .cable-connection-section {
        height: 200vh; /* Slightly shorter scroll distance on tablet */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cable-connection-section {
        height: 180vh; /* Shorter scroll distance on mobile */
        background-attachment: scroll; /* Use scroll on mobile for better performance */
    }
    
    .cable-half-container {
        width: 50vw;
        max-width: 500px;
    }


    .generac-logo-title {
        font-size: 2rem !important;
        white-space: normal !important;
    }
    
    .powering-future-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    



    .cables-connected-spark {
        width: 110vw; /* Adjust spark size for mobile */
    }
    
    .cable-logo {
        top: 20%;
height: 142px;
    }
    
    .cable-title-bottom {
        top: 60%;
    }
    
    .powering-future-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    .cable-title-bottom .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section { 
    background: var(--bg-light); 
    padding: 120px 0; 
}
.trust-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    color: var(--text-dark); 
    text-align: center; 
    margin-bottom: 1rem; 
    font-family: 'Space Grotesk', sans-serif; 
}
.trust-subtitle { 
    text-align: center; 
    color: var(--text-light); 
    font-size: 1.2rem; 
    margin-bottom: 4rem; 
}
.trust-stats { 
    display: grid; 
    gap: 2rem; 
}
.stat-box { 
    background: var(--white); 
    padding: 3rem 2rem; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    transition: all 0.4s ease; 
}
.stat-box:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
}
.stat-icon { 
    font-size: 3rem; 
    color: var(--primary); 
    margin-bottom: 1rem; 
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section { 
    background: var(--white); 
    padding: 120px 0; 
    overflow: hidden;
}
.services-header { 
    text-align: center; 
    margin-bottom: 4rem; 
}
.services-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    color: var(--text-dark); 
    font-family: 'Space Grotesk', sans-serif; 
}
.services-subtitle { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    margin-top: 1rem; 
}
.reviews-scroll { 
    width: 100%; 
    overflow: hidden; 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}
.reviews-track {
    display: flex;
    gap: 2rem;
    animation: scrollReviews var(--review-scroll-speed) linear infinite;
    width: max-content;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.reviews-track:active {
    cursor: grabbing;
}

.reviews-track img,
.reviews-track video {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes scrollReviews { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}
.review-card { 
    min-width: var(--review-card-width); 
    max-width: var(--review-card-width); 
    background: var(--white); 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); 
    border: 1px solid #e5e7eb; 
    display: flex; 
    flex-direction: column; 
    cursor: pointer; 
}
.review-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1rem; 
}
.review-avatar { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    background: var(--primary); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--white); 
    font-weight: 700; 
    flex-shrink: 0; 
    overflow: hidden;
}
.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-info h4 { 
    font-weight: 600; 
    color: var(--text-dark); 
}
.review-name { 
    margin: 0; 
    font-size: 1rem; 
}
.review-rating { 
    color: #fbbf24; 
    font-size: 1rem; 
}
.review-source {
    font-size: 0.75rem;
    color: #4285f4;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.review-text { 
    color: var(--text-light); 
    line-height: 1.6; 
    font-style: italic; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical; 
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-showcase { 
    background: var(--bg-light); 
    padding: 120px 0; 
}
.services-grid { 
    display: grid; 
    gap: 3rem; 
}
.service-showcase-card { 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); 
    transition: all 0.4s ease; 
    cursor: pointer; 
}
.service-showcase-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); 
}
.service-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #f3f4f6; /* Fallback color */
}

.service-card-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(6, 182, 212, 0.6)); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
}
.service-card-icon { 
    font-size: 4rem; 
    color: var(--white); 
}
.service-card-content { 
    padding: 2rem; 
}
.service-card-subtitle { 
    font-size: 0.875rem; 
    color: var(--primary); 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-bottom: 1rem; 
}
.service-card-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 0.5rem; 
}
.service-card-description { 
    color: var(--text-light); 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section { 
    background: var(--white); 
    padding: 120px 0; 
    scroll-margin-top: 100px;
}
.project-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.project-box {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
}
.project-box:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.project-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(6, 182, 212, 0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
}
.project-box:hover .project-box-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(6, 182, 212, 0.8));
}
.project-box-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.project-box-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.project-box-count {
    font-size: 1.2rem;
    opacity: 0.9;
}
.project-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}
.project-status-badge.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.project-status-badge.ongoing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.project-status-badge.residential {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.project-status-badge.commercial {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 80px 0;
    overflow: hidden;
}
.gallery-scroll {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 20%, black 80%, transparent 95%);
    mask-image: linear-gradient(to right, transparent 5%, black 20%, black 80%, transparent 95%);
}
.gallery-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollGallery var(--gallery-scroll-speed) linear infinite;
    width: max-content;
    padding: 1rem 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-x; /* Allow horizontal touch scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.gallery-track:active {
    cursor: grabbing;
}

/* Prevent image dragging */
.gallery-track img,
.gallery-track video {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .gallery-track {
        gap: 1rem;
        padding: 0.5rem 0;
    }
}


@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    width: 350px;
    flex-shrink: 0;
}
.gallery-item:hover {
    transform: scale(1.03);
}
.gallery-media {
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-item-title {
    margin-top: 0.75rem;
    font-weight: 500;
}
.gallery-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}
.gallery-3d-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}
.gallery-3d-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Company Logos Section */
.logo-scroller-section {
    padding: 80px 0;
    overflow: hidden;
}
.logos-header {
    text-align: center;
    margin-bottom: 3rem;
}
.logos-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}
.logos-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}
.logo-scroller {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-scroller-track {
    display: flex;
    gap: 3rem;
    animation: scrollLogos 40s linear infinite;
    width: max-content;
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.logo-item img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section { 
    background: var(--bg-light); 
    padding: 120px 0; 
}
.blog-grid { 
    display: grid; 
    gap: 3rem; 
}
.blog-card { 
    display: flex; 
    flex-direction: column; 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); 
    transition: all 0.4s ease; 
    cursor: pointer; 
}
.blog-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); 
}
.blog-image { 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    flex-shrink: 0; 
}
.blog-content { 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.blog-category { 
    font-size: 0.8rem; 
    color: var(--primary); 
    font-weight: bold; 
    text-transform: uppercase; 
    margin-bottom: 0.5rem; 
}
.blog-title { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 0.75rem; 
    flex-grow: 1; 
}
.blog-excerpt { 
    color: var(--text-light); 
    margin-bottom: 1.5rem; 
    font-size: 0.95rem; 
}
.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section { 
    background: var(--white); 
    padding: 120px 0; 
}
.faq-container { 
    max-width: 800px; 
    margin: 0 auto; 
}
.faq-item { 
    border-bottom: 1px solid #e5e7eb; 
}
.faq-item:last-child { 
    border-bottom: none; 
}
.faq-question { 
    width: 100%; 
    background: none; 
    border: none; 
    padding: 1.5rem 0; 
    text-align: left; 
    font-size: 1.125rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i { 
    transform: rotate(180deg); 
    color: var(--primary); 
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-in-out; 
    color: var(--text-light); 
}
.faq-answer p { 
    padding-bottom: 1.5rem; 
}
.faq-item.active .faq-answer { 
    max-height: 300px; 
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { 
    background: var(--bg-light); 
    padding: 120px 0; 
}
.about-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}
.about-text .section-title { 
    text-align: left; 
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.about-description { 
    font-size: 1.125rem; 
    line-height: 1.8; 
    color: var(--text-light); 
}
.about-image { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.about-img { 
    width: 100%; 
    height: auto; 
    max-height: 500px; 
    object-fit: cover; 
    border-radius: 16px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); 
}

/* ============================================
   FOOTER
   ============================================ */
.footer { 
    background: var(--secondary); 
    color: var(--white); 
    padding: 80px 0 40px; 
}
.footer-content { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}
.footer-main { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 3rem; 
    margin-bottom: 3rem; 
}
.footer-info, .footer-sitemap, .footer-map { 
    text-align: left; 
}
.footer h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
    color: var(--accent); 
    padding-bottom: 0.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
}
.footer p { 
    color: rgba(255, 255, 255, 0.8); 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: flex-start; 
    gap: 0.75rem; 
}
.footer p i { 
    color: var(--accent); 
    width: 20px; 
    text-align: center; 
    margin-top: 4px; 
}
.social-links { 
    display: flex; 
    gap: 1rem; 
    margin-top: 1.5rem; 
}
.social-link { 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50%; 
    color: var(--white); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1rem; 
    transition: all 0.3s ease; 
}
.social-link:hover { 
    background: var(--primary); 
    transform: translateY(-3px); 
}
.sitemap-columns { 
    display: flex; 
    gap: 2rem; 
}
.sitemap-category h4 { 
    font-weight: 600; 
    margin-bottom: 0.75rem; 
}
.sitemap-category ul { 
    list-style: none; 
    padding: 0; 
}
.sitemap-category li { 
    margin-bottom: 0.5rem; 
}
.sitemap-category a { 
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}
.sitemap-category a:hover { 
    color: var(--accent); 
}
.map-container { 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative; 
    padding-bottom: 75%; 
    height: 0; 
}
.map-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}
.footer-divider { 
    height: 1px; 
    background: rgba(255,255,255,0.1); 
    margin: 3rem 0 2rem; 
}
.footer-bottom { 
    text-align: center; 
    font-size: 0.875rem; 
    opacity: 0.8; 
}

/* ============================================
   FLOATING ACTIONS
   ============================================ */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999; /* Above content (1), below cable (2000+) */
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 999;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.floating-btn.call {
    background: var(--success);
}
.floating-btn.chat {
    background: var(--accent);
}
.floating-btn.pulse {
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* ============================================
   CHAT MODAL
   ============================================ */
.chat-modal {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 4rem);
    max-height: 600px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}
.chat-input {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}
.chat-form input,
.chat-form textarea {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
}
.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}



/* ============================================
   POPUPS & MODALS
   ============================================ */
.popup-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

#reviewModal {
    z-index: 10000;
}

.notification {
    z-index: 10001;
}

.popup-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto; /* Allow scrolling */
    display: flex;
    flex-direction: column;
    position: relative;
}

.popup-large {
    max-width: 1200px;
}
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.popup-close:hover {
    background: #f3f4f6;
}
.popup-title {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
    text-align: center; /* CENTER THE TITLE */
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.popup-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .popup-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .popup-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh; /* Ensure content is capped at 95% of viewport height */
        margin: 0;
    }
    
    .popup-body {
        /* CRITICAL FIX: Explicitly constrain the scrollable body height */
        overflow-y: auto;
        /* Calculate available height: 95vh (popup-content) - 40px (padding) - 56px (header) approx */
        max-height: calc(95vh - 120px); 
        padding: 1rem;
    }
    
}

.project-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.gallery-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 400px;
}
.gallery-modal-description {
    padding: 0 2rem 2rem;
    color: var(--text-light);
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}
.gallery-nav-prev {
    left: 1rem;
}
.gallery-nav-next {
    right: 1rem;
}

/* ============================================
   NOTIFICATION SYSTEM
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}
.notification.show {
    opacity: 1;
    transform: translateX(0);
}
.notification-success {
    border-left: 4px solid #10b981;
}
.notification-error {
    border-left: 4px solid #ef4444;
}
.notification i {
    font-size: 1.25rem;
}
.notification-success i {
    color: #10b981;
}
.notification-error i {
    color: #ef4444;
}

/* ============================================
   DYNAMIC GRID CLASSES
   ============================================ */
.grid-cols-desktop-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-desktop-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-desktop-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-desktop-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-desktop-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-desktop-6 { grid-template-columns: repeat(6, 1fr); }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1200px) {
    /* Tablet landscape and small desktops */
    .grid-cols-desktop-4, .grid-cols-desktop-5, .grid-cols-desktop-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    /* Tablet portrait */
    .hero-container, .about-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .about-text .section-title { text-align: center; }
    .footer-main { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    
    .grid-cols-tablet-1 { grid-template-columns: repeat(1, 1fr) !important; }
    .grid-cols-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-cols-tablet-3 { grid-template-columns: repeat(2, 1fr) !important; }



/* --- Premium Mobile Menu Styles --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px; /* Hidden state */
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        
        /* Dark Gradient Background */
        background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
        
        flex-direction: column;
        /* Extra top padding to clear the close button/header */
        padding: calc(var(--mobile-header-height, 70px) + 2rem) 0 2rem 0;
        
        /* Stronger shadow for depth */
        box-shadow: -15px 0 50px rgba(0,0,0,0.5);
        z-index: 999;
        overflow-y: auto;
        
        /* Smoother slide animation */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 0;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; display: block; }
    
    .nav-link { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 2.5rem; /* More breathing room */
        
        /* Subtle dark separators */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
        width: 100%; 
        text-align: left; 
        
        /* Larger, clearer text */
        font-size: 1.15rem; 
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9) !important; /* White Text */
        transition: all 0.3s ease;
    }
    
    /* Fancy Hover/Active Effect */
    .nav-link:hover, .nav-link:active { 
        background: rgba(255, 255, 255, 0.05);
        color: #f59e0b !important; /* Gold/Accent Color */
        padding-left: 3rem; /* Slide text to the right */
        border-left: 4px solid #dc2626; /* Red accent bar on left */
    }
    
    .nav-link i {
        font-size: 0.9rem;
        opacity: 0.7;
    }
    
    .nav-link:hover::after { width: 0; } /* Disable desktop underline */




}


@media (max-width: 768px) {



    /* Mobile */
    .container { padding: 0 1rem; }
    .header { height: var(--mobile-header-height, 70px); }
    .nav-container { padding: 0 1rem; }
    .logo-img { height: calc(var(--mobile-header-height, 70px) - 20px); max-height: 50px; }
    .mobile-menu-btn { display: block; }
    
/* --- Premium Mobile Menu Styles --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px; /* Hidden state */
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        
        /* Dark Gradient Background */
        background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
        
        flex-direction: column;
        /* Extra top padding to clear the close button/header */
        padding: calc(var(--mobile-header-height, 70px) + 2rem) 0 2rem 0;
        
        /* Stronger shadow for depth */
        box-shadow: -15px 0 50px rgba(0,0,0,0.5);
        z-index: 999;
        overflow-y: auto;
        
        /* Smoother slide animation */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 0;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; display: block; }
    
    .nav-link { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 2.5rem; /* More breathing room */
        
        /* Subtle dark separators */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
        width: 100%; 
        text-align: left; 
        
        /* Larger, clearer text */
        font-size: 1.15rem; 
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9) !important; /* White Text */
        transition: all 0.3s ease;
    }
    
    /* Fancy Hover/Active Effect */
    .nav-link:hover, .nav-link:active { 
        background: rgba(255, 255, 255, 0.05);
        color: #f59e0b !important; /* Gold/Accent Color */
        padding-left: 3rem; /* Slide text to the right */
        border-left: 4px solid #dc2626; /* Red accent bar on left */
    }
    
    .nav-link i {
        font-size: 0.9rem;
        opacity: 0.7;
    }
    
    .nav-link:hover::after { width: 0; } /* Disable desktop underline */
    .hero { padding-top: var(--mobile-header-height, 70px); z-index: 0  !important;}
.hero-container {
        padding: 1rem;
        gap: 2rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-card {
        transform: none;
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    /* Fix buttons to be side by side */
    .cta-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Fix footer contact info - left align on mobile */
    .footer-info {
        text-align: left !important;
    }
    
    .footer-info p {
        justify-content: flex-start !important;
    }
    
    .social-links {
        justify-content: flex-start !important;
    }

.cable-connection-section {
    position: relative;
    width: 100%;
    height: var(--cable-section-height); /* Uses variable for height */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cable-connection-container {
    position: sticky; /* THIS IS KEY - It makes the animation container stick while the parent scrolls */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.cable-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cable Containers */
.cable-half-container {
    position: absolute;
    width: 50vw;
    max-width: 700px;
    height: auto;
    top: 50%;
    /* transform is now fully controlled by JavaScript */
    will-change: transform, opacity;
    z-index: 2;
}

.cable-half-container.cable-left {
    left: 0;
    transform: translateX(-100%) translateY(-50%); /* Initial position off-screen */
}

.cable-half-container.cable-right {
    right: 0;
    transform: translateX(100%) translateY(-50%); /* Initial position off-screen */
}

.cable-half-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo (Top) */
.cable-logo {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0; /* Initially hidden */
    z-index: 10;
    will-change: opacity, transform;
}

/* Spark (Middle) - FIXED SIZE */
.cables-connected-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 35vw; /* CHANGED: Made width responsive */
    max-width: 400px; /* CHANGED: Added max-width */
    min-width: 200px; /* CHANGED: Added min-width */
    height: auto;
    opacity: 0; /* Initially hidden */
    will-change: opacity, transform;
    z-index: 5;
    pointer-events: none;
}

/* Title (Bottom) */
.cable-title-bottom {
    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0; /* Initially hidden */
    width: 90%;
    max-width: 800px;
    z-index: 10;
    will-change: opacity, transform;
}

/* Other text styles remain the same */
.powering-future-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.cable-subtitle {
    margin: 0.5rem 0 1.5rem 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}


/* ============================================
   RESPONSIVE STYLES FOR ANIMATION (CORRECTED)
   ============================================ */

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .cable-connection-section {
        height: 200vh; /* Slightly shorter scroll distance on tablet */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cable-connection-section {
        height: 180vh; /* Shorter scroll distance on mobile */
        background-attachment: scroll; /* Use scroll on mobile for better performance */
    }
    
    .cable-half-container {
        width: 60vw;
        max-width: 400px;
    }

    .cables-connected-spark {
        width: 99vw; /* Adjust spark size for mobile */
    transform: translate(-55%, -50%);
    }
    
    .cable-logo {
        top: 20%;
    }
    
    .cable-title-bottom {
        top: 65%;
    }
    
    .powering-future-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    .cable-title-bottom .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }





@media (max-width: 768px) {
 .grid-cols-mobile-1 .service-showcase-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        max-height: none !important;
        min-height: 300px !important;
        background: white !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Image at TOP - visible and prominent */
    .grid-cols-mobile-1 .service-card-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        flex-shrink: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
        display: block !important;
    }
    
    /* Icon overlay - visible */
    .grid-cols-mobile-1 .service-card-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(6, 182, 212, 0.6)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .grid-cols-mobile-1 .service-card-icon {
        font-size: 3.5rem !important;
        color: white !important;
        display: block !important;
    }
    
    /* Content BELOW image - fully visible */
    .grid-cols-mobile-1 .service-card-content {
        width: 100% !important;
        flex: 1 !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: white !important;
        min-height: 100px !important;
    }
    
    /* Subtitle - visible */
    .grid-cols-mobile-1 .service-card-subtitle {
        font-size: 0.75rem !important;
        color: #dc2626 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Title - prominent and visible */
    .grid-cols-mobile-1 .service-card-title {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Description - visible */
    .grid-cols-mobile-1 .service-card-description {
        font-size: 0.9rem !important;
        color: #6b7280 !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* PROJECTS - Same treatment */
    .grid-cols-mobile-1 .project-item,
    .grid-cols-mobile-1 .project-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 300px !important;
    }
    
    .grid-cols-mobile-1 .project-card-image {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .grid-cols-mobile-1 .project-card-content {
        width: 100% !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
    }


    /* Section spacing and grids for mobile */
    .trust-section, .services-showcase, .projects-section, .blog-section, .faq-section, .about-section { padding: 60px 0; }
    .grid-cols-mobile-1 { grid-template-columns: 1fr !important; }
    .grid-cols-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .services-grid, .project-boxes { gap: 1.5rem; }
    .trust-stats { grid-template-columns: 1fr !important; }
    
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-info p { justify-content: center; }
    .sitemap-columns { justify-content: center; }

    .floating-actions { bottom: 1rem; right: 1rem; }
    .floating-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .chat-modal { bottom: 80px; right: 1rem; width: calc(100vw - 2rem); }


   .hero {
        z-index: 0 !important;
    }
    
    .hero-card {
        z-index: 1 !important;
    }
    
    .cable-connection-section {
        z-index: 2000 !important;
        background-attachment: scroll;
        isolation: isolate;
        transform: translateZ(0);
    }
    
    .cable-connection-container {
        z-index: 2001 !important;
    }
    
    .cable-animation-wrapper {
        z-index: 2002 !important;
    }
    
    .cable-half-container,
    .cable-half-container.cable-left,
    .cable-half-container.cable-right {
        z-index: 2003 !important;
    }
    
    .cables-connected-spark {
        z-index: 2004 !important;
    }
    
    .cable-logo,
    .cable-title-bottom {
        z-index: 2005 !important;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        z-index: 999 !important;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        z-index: 999 !important;
    }
    
    .chat-modal {
        bottom: 80px;
        right: 1rem;
        width: calc(100vw - 2rem);
        z-index: 1000 !important;
    }
    
    /* All other sections stay low */
    .trust-section,
    .reviews-section,
    .services-showcase,
    .projects-section,
    .gallery-section,
    .blog-section,
    .faq-section,
    .about-section {
        z-index: 1 !important;
    }
}



/* ============================================
   GOOGLE REVIEW BADGE STYLES
   ============================================ */
.google-review-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin: 5px 0;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
    letter-spacing: 0.3px;
}

.google-review-badge svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.review-rating {
    color: #f59e0b;
    font-size: 14px;
    display: flex;
    gap: 3px;
}

.review-rating .fa-star,
.review-rating .fas.fa-star {
    color: #f59e0b;
}

.review-rating .fa-star-o,
.review-rating .far.fa-star {
    color: #d1d5db;
}

/* Review card improvements */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-text {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .google-review-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .google-review-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .review-name {
        font-size: 14px;
    }
    
    .review-rating {
        font-size: 12px;
    }
}
}



/* ============================================
   OWNER RESPONSE STYLES
   ============================================ */
.owner-response {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.owner-response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #92400e;
    font-size: 13px;
}

.owner-response-header i {
    color: #f59e0b;
    font-size: 14px;
}

.owner-response-header strong {
    color: #78350f;
    font-weight: 700;
}

.owner-response-time {
    margin-left: auto;
    color: #92400e;
    font-size: 11px;
    font-style: italic;
}

.owner-response-text {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .owner-response {
        padding: 12px;
    }
    
    .owner-response-header {
        flex-wrap: wrap;
        font-size: 12px;
    }
    
    .owner-response-time {
        flex-basis: 100%;
        margin-left: 22px;
        margin-top: 2px;
    }
    
    .owner-response-text {
        font-size: 13px;
    }
}

/* Enhanced review card for responses */
.review-card:has(.owner-response) {
    border: 2px solid #fde68a;
}

.review-card:has(.owner-response):hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}


/* ============================================
   REVIEW MODAL STYLES
   ============================================ */
.review-modal .popup-content {
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    padding: 0;
    position: relative;
}

.review-modal-body {
    padding: 40px;
}

.review-modal-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.review-modal-avatar {
    flex-shrink: 0;
}

.review-modal-avatar-img,
.review-modal-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.review-modal-avatar-placeholder {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.review-modal-info {
    flex: 1;
}

.review-modal-name {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.google-review-badge-modal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.review-modal-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    color: #f59e0b;
}

.review-modal-rating .fa-star,
.review-modal-rating .fas.fa-star {
    color: #f59e0b;
}

.review-modal-rating .fa-star-o,
.review-modal-rating .far.fa-star {
    color: #d1d5db;
}

.review-modal-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.review-modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

/* Owner Response in Modal */
.owner-response-modal {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.owner-response-header-modal {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.owner-response-icon {
    width: 40px;
    height: 40px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.owner-response-title {
    flex: 1;
}

.owner-response-title strong {
    display: block;
    font-size: 16px;
    color: #78350f;
    margin-bottom: 4px;
}

.owner-response-date {
    display: block;
    font-size: 13px;
    color: #92400e;
    font-weight: 400;
}

.owner-response-text-modal {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #78350f;
    white-space: pre-wrap;
}

/* Review Card Enhancements */
.review-text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-has-response {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.review-has-response i {
    color: #f59e0b;
}

.review-click-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover .review-click-hint {
    opacity: 1;
}

.review-click-hint i {
    color: #3b82f6;
}

/* Hover effect for clickable reviews */
.review-card {
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .review-modal-body {
        padding: 25px 20px;
    }
    
    .review-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-modal-avatar-img,
    .review-modal-avatar-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .review-modal-name {
        font-size: 20px;
    }
    
    .review-modal-rating {
        justify-content: center;
        font-size: 18px;
    }
    
    .review-modal-text {
        font-size: 15px;
    }
    
    .owner-response-modal {
        padding: 20px;
    }
    
    .owner-response-header-modal {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Animation */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal .popup-content {
    animation: fadeInSlideUp 0.4s ease;
}














/* Make review cards obviously clickable */
.review-card {
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
}

.review-card::after {
    content: '👁️ Click to view full review';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.review-card:hover::after {
    opacity: 1;
}

.review-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid #3b82f6;
}

.review-card:active {
    transform: translateY(-6px) scale(1.02);
}









/* Project Box Modal Scrolling */
.project-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

@media (max-width: 768px) {
    .project-box-grid {
        grid-template-columns: 1fr;
        max-height: 65vh;
        gap: 1rem;
    }
    
    .popup-content {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .popup-body {
        overflow-y: auto;
        max-height: calc(85vh - 100px);
    }
}








/* Service and Project Card Titles in Popups */
.service-card-title,
.project-card-title {
    text-align: center;
}

/* Popup Body Content Centering */
.popup-body h3,
.popup-body h4 {
    text-align: center;
}

/* Project Box Modal Title */
#projectBoxModalTitle {
    text-align: center;
}

/* Article Modal Title */
#articleTitle {
    text-align: center;
}

/* Service Popup Title */
#servicePopupTitle {
    text-align: center;
}

/* Project Popup Title */
#projectPopupTitle {
    text-align: center;
}









.gallery-item-info-below {
    padding: 1rem 0.5rem;
    background: white;
    border-radius: 0 0 12px 12px;
    margin-top: -4px;
}

.gallery-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.gallery-item-description {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
    line-height: 1.4;
}

.gallery-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.gallery-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #9ca3af;
}

.gallery-meta-item i {
    font-size: 0.7rem;
}


/* ============================================
   POPUPS & MODALS (FINAL STABLE FIX)
   ============================================ */
.popup-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

/* Only visible when .active */
.popup-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: var(--white);
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.popup-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Media area */
.popup-media-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    position: relative;
    overflow: visible;
    transform: translateZ(0);
    z-index: 5;
}
.popup-media-main img,
.popup-media-main video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Mobile: use block only when active */
    .popup-modal.active {
        display: block;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .popup-content {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }
    .popup-body {
        overflow-y: auto;
        /* Calculate available height: 95vh (popup-content) - 40px (padding) - 56px (header) approx */
        max-height: calc(95vh - 120px); 
        padding: 1rem;
    }
    
    /* Ensure media main container is responsive */
    .popup-media-main {
        min-height: 250px !important; 
        /* REMOVE or INCREASE max-height to ensure space */
        /* max-height: 400px !important; */ 
        width: 100%; 
    }
    
    .popup-media-main img,
    .popup-media-main video {
        max-width: 100% !important; 
        /* REMOVE or INCREASE max-height to prevent clipping */
        /* max-height: 400px !important; */
        height: auto !important; 
        object-fit: contain !important; 
        display: block !important; 
    }



}



/* ============================================
   GLOBAL & ROOT STYLES (DESKTOP FIRST)
   ============================================ */
:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --electric-blue: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    
    /* Default values - overridden by inline PHP styles in <style> block */
    --header-height: 80px;
    --mobile-header-height: 70px;
    --logo-height: 60px;
    --review-card-width: 400px;
    --review-scroll-speed: 50s;
    --gallery-scroll-speed: 30s;
    --cable-section-height: 250vh; 
    --cable-container-height: 400px;
    --sticky-top-offset: 0%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-dark); 
    background: var(--bg-light);
}
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    position: relative; 
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.services-header { 
    text-align: center; 
    margin-bottom: 4rem; 
}
.services-title { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800; 
    color: var(--text-dark); 
    font-family: 'Space Grotesk', sans-serif; 
}
.services-subtitle { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    margin-top: 1rem; 
}

/* ============================================
   UTILITY CLASSES (DYNAMIC GRIDS)
   ============================================ */
.grid-cols-desktop-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-desktop-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-desktop-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-desktop-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-desktop-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-desktop-6 { grid-template-columns: repeat(6, 1fr); }

/* ============================================
   COMPONENTS (DESKTOP)
   ============================================ */

/* --- Loading Screen --- */
.loading { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--secondary); display: flex; align-items: center; 
    justify-content: center; z-index: 9999; opacity: 1; 
    transition: opacity 0.5s ease; 
}
.loading.fade-out { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; color: white; }
.loading-icon { font-size: 4rem; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* --- Header & Nav --- */
.header { 
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); 
    width: 100%; position: fixed; top: 0; z-index: 1000; 
    transition: all 0.3s ease; height: var(--header-height); 
    border-bottom: 1px solid transparent; 
}
.header.scrolled { 
    background: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    border-bottom-color: #e5e7eb; 
}
.nav-container { 
    max-width: 1400px; margin: 0 auto; padding: 0 2rem; 
    display: flex; justify-content: space-between; 
    align-items: center; height: 100%; 
}
.logo-img { 
    height: var(--logo-height); width: auto; transition: transform 0.3s ease; 
}
.nav-menu { 
    display: flex; list-style: none; gap: 2rem; align-items: center; 
}
.nav-link { 
    color: var(--text-dark); text-decoration: none; font-weight: 500; 
    transition: all 0.3s ease; position: relative; padding: 0.5rem 0; 
}
/* Dropdown styles omitted for brevity, they are correct for desktop */

/* --- Buttons --- */
.cta-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.btn { 
    padding: 1.25rem 2.5rem; border-radius: 50px; font-weight: 700; 
    font-size: 1.1rem; text-decoration: none; transition: all 0.3s ease; 
    display: inline-flex; align-items: center; justify-content: center; 
    gap: 0.75rem; border: none; cursor: pointer; 
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent), var(--primary)); 
    color: var(--white); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3); 
}
.btn-secondary { 
    background: rgba(255, 255, 255, 0.1); color: var(--white); 
    border: 2px solid rgba(255, 255, 255, 0.3); 
}

/* --- Hero Section --- */
.hero { min-height: 100vh; background: var(--secondary); color: var(--white); 
    position: relative; display: flex; align-items: center;  
    overflow: hidden; padding-top: var(--header-height); 
}
.hero-container { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; 
}
/* Hero text/card styles omitted for brevity */

/* --- Cable Animation Section --- */
.cable-connection-section {
    position: relative; width: 100%; height: var(--cable-section-height); 
    background-size: cover; background-position: center; 
    background-attachment: fixed;
}
.cable-connection-container {
    position: sticky; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden;
}
/* Cable animation element styles omitted for brevity */

/* --- Standard Sections (Trust, Services, Projects, Blog, FAQ, About) --- */
.trust-section, .services-showcase, .projects-section, .blog-section, .faq-section, .about-section { 
    padding: 120px 0; 
}
/* Specific styles for card grids, headers, etc. omitted for brevity */
.service-showcase-card { 
    background: var(--white); border-radius: 20px; overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); transition: all 0.4s ease; 
    cursor: pointer; 
}
.service-card-image {
    height: 250px; background-size: cover; background-position: center;
    position: relative; background-color: #f3f4f6;
}

/* --- Footer --- */
.footer { 
    background: var(--secondary); color: var(--white); padding: 80px 0 40px; 
}
.footer-main { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 3rem; margin-bottom: 3rem; 
}
/* Footer content styles omitted for brevity */

/* --- Floating Actions & Chat Modal --- */
.floating-actions {
    position: fixed; bottom: 2rem; right: 2rem; display: flex; 
    flex-direction: column; gap: 1rem; z-index: 999;
}
/* Floating button styles omitted for brevity */
.chat-modal {
    display: none; position: fixed; bottom: 120px; right: 2rem; 
    width: 400px; max-width: calc(100vw - 4rem); max-height: 600px; 
    background: var(--white); border-radius: 20px; z-index: 1000;
}

/* --- Popups & Modals --- */
.popup-modal {
    display: none; position: fixed; inset: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px);
    align-items: center; justify-content: center; padding: 20px; z-index: 3000;
}
.popup-modal.active { display: flex; visibility: visible; opacity: 1; }
.popup-content {
    background: var(--white); border-radius: 16px; width: 95%; max-width: 1000px;
    max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column;
    position: relative; z-index: 10;
}
.popup-body {
    flex: 1; padding: 2rem; overflow-y: auto;
}
.popup-media-main {
    display: flex; align-items: center; justify-content: center; width: 100%;
    min-height: 400px; /* Base height for desktop */
    position: relative; overflow: hidden;
}
.popup-media-main img,
.popup-media-main video {
    width: 100%; 
    height: auto; 
    max-height: 500px; /* Desktop max size to prevent overfilling */
    object-fit: contain; 
    display: block; 
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* --------------------------------------------
   1. TABLET AND SMALL DESKTOPS (Max-Width 1200px)
   -------------------------------------------- */
@media (max-width: 1200px) {
    /* Tablet landscape and small desktops */
    .grid-cols-desktop-4, .grid-cols-desktop-5, .grid-cols-desktop-6 { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* --------------------------------------------
   2. TABLET PORTRAIT (Max-Width 992px)
   -------------------------------------------- */
@media (max-width: 992px) {
    .hero-container, .about-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .about-text .section-title { text-align: center; }
    .footer-main { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    
    /* Tablet Grid Overrides */
    .grid-cols-tablet-1 { grid-template-columns: repeat(1, 1fr) !important; }
    .grid-cols-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-cols-tablet-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --------------------------------------------
   3. MOBILE DEVICES (Max-Width 768px)
   -------------------------------------------- */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .header { height: var(--mobile-header-height, 70px); }
    .logo-img { height: calc(var(--mobile-header-height, 70px) - 20px); max-height: 50px; }
    .mobile-menu-btn { display: block; }
    .nav-menu { 



/* --- Premium Dark Mobile Menu --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px; /* Hidden state */
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        
        /* Dark Gradient Background (Matches Footer/Hero) */
        background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%) !important;
        
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        
        /* Top padding to clear the close button area */
        padding: calc(var(--mobile-header-height, 70px) + 20px) 0 20px 0;
        
        /* Strong shadow for depth */
        box-shadow: -10px 0 50px rgba(0,0,0,0.5);
        z-index: 999;
        overflow-y: auto;
        
        /* Smooth slide animation */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 0;
        
        /* Subtle left border */
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active { 
        right: 0; /* Slide in */
    }
    
    .nav-menu li { 
        width: 100%; 
        display: block; 
        margin: 0;
    }
    
    .nav-link { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        
        /* Larger touch target and breathing room */
        padding: 1.25rem 2rem !important; 
        
        /* Subtle separator lines */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; 
        width: 100%; 
        text-align: left; 
        
        /* White text */
        font-size: 1.1rem !important; 
        font-weight: 500;
        color: rgba(255, 255, 255, 0.95) !important; 
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    /* Hover/Active State */
    .nav-link:active, 
    .nav-link:hover { 
        background: rgba(255, 255, 255, 0.05);
        color: #f59e0b !important; /* Gold text on touch */
        padding-left: 2.5rem !important; /* Slide text right */
        border-left: 4px solid #dc2626; /* Red accent bar */
    }
    
    /* Icon styling */
    .nav-link i {
        font-size: 0.9rem;
        opacity: 0.5;
    }
    
    .nav-link:active i {
        opacity: 1;
        color: #f59e0b;
    }
    
    /* Remove desktop underline */
    .nav-link::after { display: none; }









 }

    /* Section Spacing */
    .trust-section, .services-showcase, .projects-section, .blog-section, .faq-section, .about-section { 
        padding: 60px 0; 
    }
    .services-grid, .project-boxes { gap: 1.5rem; }
    .trust-stats { grid-template-columns: 1fr !important; }
    
    /* Mobile Grid Overrides */
    .grid-cols-mobile-1 { grid-template-columns: 1fr !important; }
    .grid-cols-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Mobile: List View for Services/Projects in Grid-Cols-1 mode */
    .grid-cols-mobile-1 .service-showcase-card,
    .grid-cols-mobile-1 .project-item {
        display: flex; flex-direction: row; align-items: stretch;
    }
    .grid-cols-mobile-1 .service-card-image,
    .grid-cols-mobile-1 .project-card-image {
        width: 120px; min-width: 120px; height: 100%; min-height: 120px;    
    }
    .grid-cols-mobile-1 .service-card-content,
    .grid-cols-mobile-1 .project-card-content {
        flex: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: center;
    }
    
    /* Hero Section */
    .hero { padding-top: var(--mobile-header-height, 70px); }
    .hero-container { padding: 1rem; gap: 2rem; max-width: 100%; overflow-x: hidden; }
    .cta-buttons {
        display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%;
    }
    .btn { padding: 0.875rem 1rem; font-size: 0.875rem; white-space: nowrap; }

    /* Footer */
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-info p { justify-content: center; }
    .social-links { justify-content: center; }

    /* Floating Actions */
    .floating-actions { bottom: 1rem; right: 1rem; }
    .floating-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .chat-modal { bottom: 80px; right: 1rem; width: calc(100vw - 2rem); }
    
    /* POPUPS & MODALS (Critical Fixes for Image Display) */
    .popup-modal {
        padding: 10px; align-items: flex-start; padding-top: 20px;
        /* Force block display on mobile if needed, though 'flex' is better if content is not too tall */
        /* display: block; overflow-y: auto; */
    }
    
    .popup-content {
        width: 100%; max-width: 100%; max-height: 95vh; margin: 0;
        /* Ensure scrolling is on the content if body scrolling is restricted */
        overflow-y: auto; 
    }
    
    .popup-body {
        /* CRITICAL FIX: Explicitly set max-height for scrolling within the body */
        overflow-y: auto;
        max-height: calc(95vh - 120px); 
        padding: 1rem;
    }

    /* CRITICAL IMAGE FIX: Ensure media containers are visible and large enough */
    .popup-media-main {
        min-height: 250px !important; 
        /* max-height: 400px !important; <-- REMOVED/Relaxed to prevent conflicts */
        width: 100%; 
    }
    
    .popup-media-main img,
    .popup-media-main video {
        max-width: 100% !important; 
        /* max-height: 400px !important; <-- REMOVED/Relaxed to prevent conflicts */
        height: auto !important; 
        object-fit: contain !important; 
        display: block !important; 
        
        /* HIGH-PRIORITY OVERRIDE FOR INLINE JS STYLES */
        /* This rule targets the inline max-height: 500px set in the JS and overrides it. */
        max-height: 80vh !important;
    }
}



@media (max-width: 768px) {
    /* CRITICAL: Ensure popup media containers are visible */
    .popup-media-main {
        min-height: 300px !important;
        max-height: none !important; /* Remove height restrictions */
        overflow: visible !important;
    }
    
    .popup-media-main img,
    .popup-media-main video {
        max-height: 60vh !important; /* Reasonable mobile size */
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure buttons are touchable */
    .popup-media-main button {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}


@media (max-width: 768px) {
    .popup-media-main {
        min-height: 300px !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .popup-media-main img {
        max-height: 60vh !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .popup-media-main video {
        max-height: 60vh !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}


/* ============================================
   MOBILE SERVICES FIX - Add to indexcss.css
   Replace the existing mobile service styles around line 1100
   ============================================ */

@media (max-width: 768px) {
    /* CRITICAL FIX: Mobile single-column service card layout */
    .grid-cols-mobile-1 .service-showcase-card {
        display: flex;
        flex-direction: column; /* Stack vertically, not horizontally */
        align-items: stretch;
        height: auto;
        max-height: none; /* Remove height restriction */
    }
    
    /* Service card image should be ABOVE content in mobile single column */
    .grid-cols-mobile-1 .service-card-image {
        width: 100%; /* Full width */
        min-width: 100%;
        height: 200px; /* Fixed height for consistency */
        min-height: 200px;
        max-height: 200px;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    /* Show the icon overlay on mobile */
    .grid-cols-mobile-1 .service-card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(6, 182, 212, 0.6));
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .grid-cols-mobile-1 .service-card-icon {
        font-size: 3rem;
        color: var(--white);
    }
    
    /* Service card content appears BELOW the image */
    .grid-cols-mobile-1 .service-card-content {
        width: 100%;
        flex: 1;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: white;
    }
    
    /* Make title and subtitle visible and properly sized */
    .grid-cols-mobile-1 .service-card-subtitle {
        font-size: 0.75rem;
        color: var(--primary);
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
        display: block !important; /* Force display */
    }
    
    .grid-cols-mobile-1 .service-card-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.75rem;
        line-height: 1.3;
        white-space: normal; /* Allow wrapping */
        word-wrap: break-word;
        display: block !important; /* Force display */
    }
    
    /* Make description visible and properly formatted */
    .grid-cols-mobile-1 .service-card-description {
        font-size: 0.9rem;
        color: var(--text-light);
        line-height: 1.6;
        margin-bottom: 0;
        display: block !important; /* Force display */
        /* Remove line clamp to show full description on mobile */
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
    }
    
    /* For 2-column mobile layout (if admin selects 2 columns) */
    .grid-cols-mobile-2 .service-showcase-card {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .grid-cols-mobile-2 .service-card-image {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }
    
    .grid-cols-mobile-2 .service-card-content {
        padding: 1rem;
    }
    
    .grid-cols-mobile-2 .service-card-title {
        font-size: 1rem;
    }
    
    .grid-cols-mobile-2 .service-card-description {
        font-size: 0.875rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ============================================
   PROJECTS MOBILE FIX - Same treatment
   ============================================ */
@media (max-width: 768px) {
    .grid-cols-mobile-1 .project-item,
    .grid-cols-mobile-1 .project-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        max-height: none;
    }
    
    .grid-cols-mobile-1 .project-card-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        flex-shrink: 0;
    }
    
    .grid-cols-mobile-1 .project-card-content {
        width: 100%;
        flex: 1;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .grid-cols-mobile-1 .project-card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        display: block !important;
    }
    
    .grid-cols-mobile-1 .project-card-description {
        font-size: 0.9rem;
        line-height: 1.6;
        display: block !important;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}







/* ============================================
   COMPLETE Z-INDEX FIX - Replace all z-index styles in indexcss.css
   ============================================ */

/* Hero Section - Lower z-index so bubbles appear in front */
.hero {
    min-height: 100vh;
    background: var(--secondary);
    color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    z-index: 1; /* LOW - so bubbles (999) are in front */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 25%, var(--primary-dark) 50%, #7c2d12 75%, var(--secondary) 100%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.3s ease;
    z-index: 1; /* LOW - so bubbles are in front */
}

/* Cable Animation Section - HIGHEST z-index */
.cable-connection-section {
    position: relative;
    width: 100%;
    height: var(--cable-section-height);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 2000; /* VERY HIGH - bubbles (999) go behind */
    isolation: isolate;
}

.cable-connection-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2001;
}

.cable-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
}

.cable-half-container {
    position: absolute;
    width: 50vw;
    max-width: 700px;
    height: auto;
    top: 50%;
    will-change: transform, opacity;
    z-index: 2003;
}

.cable-half-container.cable-left {
    left: 0;
    transform: translateX(-100%) translateY(-50%);
    z-index: 2003;
}

.cable-half-container.cable-right {
    right: 0;
    transform: translateX(100%) translateY(-50%);
    z-index: 2003;
}

.cable-logo {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 2005;
    will-change: opacity, transform;
}

.cables-connected-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 95vw;
    max-width: 1000px;
    min-width: 600px;
    height: auto;
    opacity: 0;
    will-change: opacity, transform;
    z-index: 2004;
    pointer-events: none;
}

.cable-title-bottom {
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    width: 90%;
    max-width: 800px;
    z-index: 2005;
    will-change: opacity, transform;
}

/* All Other Sections - Low z-index */
.trust-section,
.reviews-section,
.services-showcase,
.projects-section,
.gallery-section,
.logo-scroller-section,
.blog-section,
.faq-section,
.about-section {
    position: relative;
    z-index: 1; /* LOW - bubbles in front */
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000; /* Above content, below cable */
    transition: all 0.3s ease;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
}

/* Floating Actions - MEDIUM z-index */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999; /* Above content (1), below cable (2000+) */
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 999;
}

/* Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 4rem);
    max-height: 600px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

/* Popups - HIGHEST */
.popup-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

#reviewModal {
    z-index: 10000;
}

.notification {
    z-index: 10001;
}

/* ============================================
   MOBILE SERVICES FIX - COMPLETE REWRITE
   ============================================ */
@media (max-width: 768px) {
    /* SERVICES SECTION - Single Column Layout */
    .grid-cols-mobile-1 .service-showcase-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        max-height: none !important;
        min-height: 300px !important;
        background: white !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Image at TOP - visible and prominent */
    .grid-cols-mobile-1 .service-card-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 120px !important;
        
        flex-shrink: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
        display: block !important;
    }
    
    /* Icon overlay - visible */
    .grid-cols-mobile-1 .service-card-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(6, 182, 212, 0.6)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .grid-cols-mobile-1 .service-card-icon {
        font-size: 3.5rem !important;
        color: white !important;
        display: block !important;
    }
    
    /* Content BELOW image - fully visible */
    .grid-cols-mobile-1 .service-card-content {
        width: 100% !important;
        flex: 1 !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: white !important;
        min-height: 100px !important;
    }
    
    /* Subtitle - visible */
    .grid-cols-mobile-1 .service-card-subtitle {
        font-size: 0.75rem !important;
        color: #dc2626 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Title - prominent and visible */
    .grid-cols-mobile-1 .service-card-title {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Description - visible */
    .grid-cols-mobile-1 .service-card-description {
        font-size: 0.9rem !important;
        color: #6b7280 !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* PROJECTS - Same treatment */
    .grid-cols-mobile-1 .project-item,
    .grid-cols-mobile-1 .project-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 300px !important;
    }
    
    .grid-cols-mobile-1 .project-card-image {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .grid-cols-mobile-1 .project-card-content {
        width: 100% !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Z-INDEX FIXES FOR MOBILE */
    .hero {
        z-index: 1 !important;
    }
    
    .hero-card {
        z-index: 1 !important;
    }
    
    .cable-connection-section {
        z-index: 2000 !important;
        background-attachment: scroll;
        isolation: isolate;
        transform: translateZ(0);
    }
    
    .cable-connection-container {
        z-index: 2001 !important;
    }
    
    .cable-animation-wrapper {
        z-index: 2002 !important;
    }
    
    .cable-half-container,
    .cable-half-container.cable-left,
    .cable-half-container.cable-right {
        z-index: 2003 !important;
    }
    
    .cables-connected-spark {
        z-index: 2004 !important;
    }
    
    .cable-logo,
    .cable-title-bottom {
        z-index: 2005 !important;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        z-index: 999 !important;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        z-index: 999 !important;
    }
    
    .chat-modal {
        bottom: 80px;
        right: 1rem;
        width: calc(100vw - 2rem);
        z-index: 1000 !important;
    }
    
    /* All other sections stay low */
    .trust-section,
    .reviews-section,
    .services-showcase,
    .projects-section,
    .gallery-section,
    .blog-section,
    .faq-section,
    .about-section {
        z-index: 1 !important;
    }
}

/* ============================================
   Z-INDEX SUMMARY (FINAL)
   ============================================
   10001 - Notifications
   10000 - Review Modal
   3000  - Popup Modals
   2005  - Cable Logo & Title
   2004  - Cable Spark
   2003  - Cable Halves
   2002  - Cable Wrapper
   2001  - Cable Container
   2000  - Cable Section
   1000  - Header & Chat Modal
   999   - Floating Buttons (ABOVE content, BELOW cable)
   1     - All content sections (hero, services, etc.)
   0     - Background elements
   ============================================ */





/* ============================================
   iOS SAFARI SPECIFIC FIXES
   ============================================ */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific */
    @media (max-width: 768px) {
        .cable-connection-section {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            -webkit-perspective: 1000;
        }
        
        .cable-connection-container {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
        }
        
        .cable-animation-wrapper {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
        }
        
        .cable-half-container {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
        }
        
        .cables-connected-spark,
        .cable-logo,
        .cable-title-bottom {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
        }
        
        /* Force floating buttons to render in separate layer */
        .floating-actions {
            -webkit-transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            transform: translate3d(0, 0, 0);
        }
    }
}

/* ============================================
   ANDROID CHROME SPECIFIC FIXES
   ============================================ */
@media (max-width: 1768px) and (-webkit-min-device-pixel-ratio: 1) {
    .cable-connection-section {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
    
    .floating-actions {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }
}

/* ============================================
   COMPLETE Z-INDEX FIX - Replace all z-index styles in indexcss.css
   ============================================ */

/* Hero Section - Lower z-index so bubbles appear in front */
.hero {
    min-height: 100vh;
    background: var(--secondary);
    color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    z-index: 1; /* LOW - so bubbles (999) are in front */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 25%, var(--primary-dark) 50%, #7c2d12 75%, var(--secondary) 100%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.3s ease;
    z-index: 1; /* LOW - so bubbles are in front */
}

/* Cable Animation Section - HIGHEST z-index */
.cable-connection-section {
    position: relative;
    width: 100%;
    height: var(--cable-section-height);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 2000; /* VERY HIGH - bubbles (999) go behind */
    isolation: isolate;
}

.cable-connection-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2001;
}

.cable-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
}

.cable-half-container {
    position: absolute;
    width: 50vw;
    max-width: 700px;
    height: auto;
    top: 50%;
    will-change: transform, opacity;
    z-index: 2003;
}

.cable-half-container.cable-left {
    left: 0;
    transform: translateX(-100%) translateY(-50%);
    z-index: 2003;
}

.cable-half-container.cable-right {
    right: 0;
    transform: translateX(100%) translateY(-50%);
    z-index: 2003;
}

.cable-logo {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 2005;
    will-change: opacity, transform;
}

.cables-connected-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 95vw;
    max-width: 1000px;
    min-width: 600px;
    height: auto;
    opacity: 0;
    will-change: opacity, transform;
    z-index: 2004;
    pointer-events: none;
}

.cable-title-bottom {
    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    width: 90%;
    max-width: 800px;
    z-index: 2005;
    will-change: opacity, transform;
}

/* All Other Sections - Low z-index */
.trust-section,
.reviews-section,
.services-showcase,
.projects-section,
.gallery-section,
.logo-scroller-section,
.blog-section,
.faq-section,
.about-section {
    position: relative;
    z-index: 1; /* LOW - bubbles in front */
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000; /* Above content, below cable */
    transition: all 0.3s ease;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
}

/* Floating Actions - MEDIUM z-index */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999; /* Above content (1), below cable (2000+) */
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 999;
}

/* Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 4rem);
    max-height: 600px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

/* Popups - HIGHEST */
.popup-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

#reviewModal {
    z-index: 10000;
}

.notification {
    z-index: 10001;
}

/* ============================================
   MOBILE SERVICES FIX - COMPLETE REWRITE
   ============================================ */
@media (max-width: 1768px) {
    /* SERVICES SECTION - Single Column Layout */
    .grid-cols-mobile-1 .service-showcase-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        max-height: 400px !important;
        min-height: 399px !important;
        background: white !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Image at TOP - visible and prominent */
    .grid-cols-mobile-1 .service-card-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 130px; !important;
        //min-height: 200px !important;
        max-height: 124px; !important;
        flex-shrink: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        position: relative !important;
        display: block !important;
    }
    
    /* Icon overlay - visible */
    .grid-cols-mobile-1 .service-card-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(6, 182, 212, 0.6)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .grid-cols-mobile-1 .service-card-icon {
        font-size: 3.5rem !important;
        color: white !important;
        display: block !important;
    }
    
    /* Content BELOW image - fully visible */
    .grid-cols-mobile-1 .service-card-content {
        width: 100% !important;
        flex: 1 !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: white !important;
        min-height: 100px !important;
    }
    
    /* Subtitle - visible */
    .grid-cols-mobile-1 .service-card-subtitle {
        font-size: 0.75rem !important;
        color: #dc2626 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Title - prominent and visible */
    .grid-cols-mobile-1 .service-card-title {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Description - visible */
    .grid-cols-mobile-1 .service-card-description {
        font-size: 0.9rem !important;
        color: #6b7280 !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* PROJECTS - Same treatment */
    .grid-cols-mobile-1 .project-item,
    .grid-cols-mobile-1 .project-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 300px !important;
    }
    
    .grid-cols-mobile-1 .project-card-image {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .grid-cols-mobile-1 .project-card-content {
        width: 100% !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Z-INDEX FIXES FOR MOBILE */
    .hero {
        z-index: 1 !important;
    }
    
    .hero-card {
        z-index: 1 !important;
    }
    
    .cable-connection-section {
        z-index: 2000 !important;
        background-attachment: scroll;
        isolation: isolate;
        transform: translateZ(0);
    }
    
    .cable-connection-container {
        z-index: 2001 !important;
    }
    
    .cable-animation-wrapper {
        z-index: 2002 !important;
    }
    
    .cable-half-container,
    .cable-half-container.cable-left,
    .cable-half-container.cable-right {
        z-index: 2003 !important;
    }
    
    .cables-connected-spark {
        z-index: 2004 !important;
    }
    
    .cable-logo,
    .cable-title-bottom {
        z-index: 2005 !important;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        z-index: 999 !important;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        z-index: 999 !important;
    }
    
    .chat-modal {
        bottom: 80px;
        right: 1rem;
        width: calc(100vw - 2rem);
        z-index: 1000 !important;
    }
    
    /* All other sections stay low */
    .trust-section,
    .reviews-section,
    .services-showcase,
    .projects-section,
    .gallery-section,
    .blog-section,
    .faq-section,
    .about-section {
        z-index: 1 !important;
    }
}













/* ============================================
   MOBILE HERO SECTION FIX - STRONGER VERSION
   Add this to the END of indexcss.css
   CRITICAL: This must be at the very end to override everything
   ============================================ */

@media (max-width: 768px) {
    /* ===== FORCE MOBILE HERO LAYOUT ===== */
    
    /* Override any existing hero styles */
    .hero {
        min-height: 100vh !important;
        padding: calc(var(--mobile-header-height, 70px) + 2rem) 0 3rem 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        display: flex !important;
        align-items: center !important;
        overflow-x: hidden !important;
    }
    
    /* CRITICAL: Force flexbox layout, disable grid completely */
    .hero-container {
        display: flex !important; /* Must be flex, not grid */
        flex-direction: column !important; /* Must be column */
        grid-template-columns: none !important; /* Disable grid */
        grid-template-rows: none !important; /* Disable grid */
        gap: 2.5rem !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    /* FORCE TEXT CONTENT TO BE FIRST */
    .hero-container > .hero-content {
        order: -1 !important; /* Negative order = comes first */
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    
    /* FORCE STATS TABLE TO BE LAST */
    .hero-container > .hero-card {
        order: 999 !important; /* High number = comes last */
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding: 2rem 1.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    
    /* Center ALL text elements with maximum specificity */
    .hero .hero-content .hero-title,
    .hero .hero-content .hero-subtitle,
    .hero .hero-content .hero-description,
    .hero-container .hero-title,
    .hero-container .hero-subtitle,
    .hero-container .hero-description {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Hero title sizing */
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Hero subtitle sizing */
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Hero description sizing */
    .hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* CTA Buttons - force center */
    .hero-content .cta-buttons,
    .hero .cta-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    .hero-content .cta-buttons .btn,
    .hero .cta-buttons .btn {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: 140px !important;
        max-width: 200px !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
    
    /* Single button should be centered */
    .hero-content .cta-buttons .btn:only-child,
    .hero .cta-buttons .btn:only-child {
        flex: 0 1 auto !important;
        max-width: 250px !important;
    }
    
    /* Stats Grid - force 2 columns */
    .hero-card .stats-grid,
    .hero .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Individual stat items */
    .stats-grid .stat-item,
    .hero .stat-item {
        padding: 1rem 0.75rem !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    /* Stat numbers */
    .stat-item .stat-number,
    .hero .stat-number {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        font-weight: 800 !important;
        color: var(--accent) !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.1 !important;
    }
    
    /* Stat labels */
    .stat-item .stat-label,
    .hero .stat-label {
        font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* ===== EMERGENCY BUTTONS (Hide on cable section) ===== */
    .floating-actions {
        position: fixed !important;
        right: 1rem !important;
        bottom: 1rem !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    /* Hide when on cable section */
    body.on-cable-section .floating-actions {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .floating-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    .floating-btn-label {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.6rem !important;
        white-space: nowrap !important;
    }
}

/* Extra small phones */
@media (max-width: 375px) {
    .hero {
        min-height: 100vh !important;
        padding: calc(var(--mobile-header-height, 70px) + 1.5rem) 0 2.5rem 0 !important;
    }
    
    .hero-container {
        padding: 1.5rem 0.75rem !important;
        gap: 2rem !important;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
    }
    
    /* Stack buttons vertically on very small screens */
    .hero-content .cta-buttons,
    .hero .cta-buttons {
        flex-direction: column !important;
    }
    
    .hero-content .cta-buttons .btn,
    .hero .cta-buttons .btn {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
    
    .stats-grid {
        gap: 0.75rem !important;
    }
    
    .stat-item {
        padding: 0.875rem 0.5rem !important;
    }
    
    .stat-number {
        font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
    }
    
    .stat-label {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem) !important;
    }
}

/* Tablet - also force vertical layout */
@media (min-width: 269px) and (max-width: 992px) {
    .hero {
        min-height: 100vh !important;
    }
    
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 0rem !important;
    }
    
    .hero-container > .hero-content {
        order: -1 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 700px !important;
        margin: 0 auto !important;
    }
    
    .hero-container > .hero-card {
        order: 999 !important;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        transform: none !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .cta-buttons {
        text-align: center !important;
        justify-content: center !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}




/* ============================================
   SERVICE CARDS EQUAL HEIGHT FIX WITH MAX HEIGHT
   ============================================ */

/* Make all service cards same height */
.services-grid {
    display: grid;
    gap: 2rem;
    align-items: stretch; /* Force equal height */
}

.service-showcase-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill grid cell completely */
    min-height: 380px; /* Minimum consistent height */
    max-height: 450px; /* MAXIMUM height - won't grow taller */
}

.service-card-image {
    flex-shrink: 0; /* Don't shrink image */
    height: 200px; /* Fixed height */
    width: 100%;
}

.service-card-content {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
}

.service-card-title {
    flex-shrink: 0; /* Don't shrink title */
    margin-bottom: 0.75rem;
}

.service-card-subtitle {
    flex-shrink: 0; /* Don't shrink subtitle */
    margin-bottom: 0.5rem;
}

.service-card-description {
    flex: 1; /* Take remaining space */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show only 3 lines */
    -webkit-box-orient: vertical;
    line-height: 1.6;
    text-overflow: ellipsis;
}

/* Mobile adjustments */
@media (max-width: 1768px) {
    .service-showcase-card {
        min-height: 320px;
        max-height: 380px; /* MAXIMUM height on mobile */
    }
    
    .service-card-image {
        height: 160px;
    }
    
    .service-card-description {
        -webkit-line-clamp: 2; /* Show 2 lines on mobile */
    }
}
