/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Theme Colors (Overwritten by PHP Settings) */
    --primary: #2563eb;
    --secondary: #1e293b;
    --text-color: #334155;
    
    /* System Colors */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --heading: #0f172a;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-color);
    background: var(--bg-body);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4 {
    color: var(--heading);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; color: #64748b; }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Spacing */
section { padding: 100px 0; overflow: hidden; position: relative; }
section:nth-child(even) { background: var(--bg-light); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-intro { font-size: 1.1rem; color: #64748b; }

.badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.rich-text strong { color: var(--heading); }

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    background: var(--primary); color: white;
    padding: 14px 32px; border-radius: 50px;
    font-weight: 600; border: none; cursor: pointer;
    transition: all 0.3s ease; text-transform: capitalize;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    opacity: 0.95;
}

.btn-outline {
    border: 2px solid var(--border);
    background: transparent; color: var(--heading);
    padding: 10px 24px; border-radius: 50px;
    font-weight: 600; cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--heading);
    background: var(--heading); color: white;
}

.btn-white {
    background: white; color: var(--primary);
    padding: 14px 32px; border-radius: 50px; font-weight: 700;
}

.full-width { width: 100%; }

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 20px 0; transition: 0.3s;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo-text {
    font-weight: 800; font-size: 1.5rem;
    color: var(--heading); letter-spacing: -1px;
}
.logo img { height: 40px; width: auto; }

/* Desktop Nav */
nav { display: flex; align-items: center; }
nav a.nav-link { margin-left: 30px; font-weight: 600; color: #64748b; font-size: 0.95rem; }
nav a.nav-link:hover { color: var(--primary); }

.btn-nav { display: inline-flex; align-items: center; gap: 5px; color: var(--heading) !important; margin-left: 30px; font-weight: 700; }
.mobile-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--heading); }
.nav-close { display: none; }
.nav-overlay { display: none; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
    /* Show Toggle */
    .mobile-toggle { display: block; }

    /* Slide-out Menu */
    nav {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: white;
        flex-direction: column; align-items: flex-start;
        padding: 80px 30px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1002;
    }

    /* Active State */
    nav.active { right: 0; }

    /* Links on Mobile */
    nav a.nav-link { 
        margin: 0 0 25px 0; 
        font-size: 1.2rem; 
        color: var(--heading);
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
    }
    
    .btn-nav {
        margin: 20px 0 0 0;
        background: var(--primary);
        color: white !important;
        padding: 12px 24px;
        border-radius: 8px;
        width: 100%;
        justify-content: center;
    }

    /* Close Button */
    .nav-close {
        display: block;
        position: absolute; top: 25px; right: 25px;
        font-size: 2rem; cursor: pointer; color: #64748b;
        transition: 0.3s;
    }
    .nav-close:hover { color: #ef4444; transform: rotate(90deg); }

    /* Dark Overlay Backdrop */
    .nav-overlay {
        position: fixed; top:0; left:0; width:100%; height:100%;
        background: rgba(0,0,0,0.5); z-index: 1001;
        display: block; opacity: 0; visibility: hidden;
        transition: 0.3s;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }
    
    /* Hero Adjustments */
    .section-hero { padding: 120px 0 80px; min-height: auto; }
    h1 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .contact-grid-wrapper, .about-grid, .split-grid, .vm-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* =========================================
   5. HERO SECTION (Video & Slider)
   ========================================= */
.section-hero {
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
    position: relative; color: white; text-align: center;
    margin-top: -80px; padding-top: 80px;
    overflow: hidden;
}

/* A. Background Slider (Swiper) */
.hero-bg-slider {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-bg-img {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    animation: zoomHero 20s infinite alternate;
}
@keyframes zoomHero { from { transform: scale(1); } to { transform: scale(1.1); } }

/* B. Background Video (YouTube) */
.hero-bg-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 0;
}
.hero-bg-video iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw; /* 16:9 */
    min-height: 100vh; min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
@media (min-aspect-ratio: 16/9) { .hero-bg-video iframe { height: 56.25vw; } }
@media (max-aspect-ratio: 16/9) { .hero-bg-video iframe { width: 177.78vh; } }

/* C. Overlay & Content */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 { color: white; margin-bottom: 24px; font-size: 3.5rem; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.25rem; margin-bottom: 40px; }

/* Scroll Mouse Animation */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.8;
}
.mouse {
    width: 26px; height: 40px; border: 2px solid white; border-radius: 20px; position: relative;
}
.mouse::before {
    content:''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: white; border-radius: 50%;
    animation: scrollMouse 2s infinite;
}
@keyframes scrollMouse { 0% { top:6px; opacity:1; } 100% { top:20px; opacity:0; } }

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}

.service-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: 0.3s;
    height: 100%; display: flex; flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--primary);
}

.service-img { height: 220px; position: relative; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .service-img img { transform: scale(1.1); }

.service-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.service-overlay i {
    font-size: 2rem; color: white; background: var(--primary);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.service-card:hover .service-overlay { opacity: 1; }

.service-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.service-content h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--heading); }
.service-content p { font-size: 0.95rem; color: #64748b; margin-bottom: 20px; line-height: 1.6; flex-grow: 1; }
.service-link {
    font-weight: 700; color: var(--primary);
    display: inline-flex; align-items: center; gap: 5px; font-size: 0.9rem; margin-top: auto;
}
.service-link:hover { gap: 10px; }

/* =========================================
   7. ABOUT & SPLIT SECTIONS
   ========================================= */
.about-grid, .split-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

/* Base styles for images in About/Split */
.about-img, .split-img {
    position: relative; border-radius: 24px; box-shadow: var(--shadow-lg);
}
.about-img img, .split-img img { width: 100%; display: block; border-radius: 24px; }

.feature-box {
    display: flex; gap: 15px; margin-bottom: 15px; padding: 15px;
    background: var(--surface); border-radius: 12px; border: 1px solid var(--border);
}
.feature-box i { font-size: 1.2rem; margin-top: 2px; }
.icon-pain { color: #ef4444; }
.icon-fix { color: #10b981; }

/* =========================================
   8. VISION & MISSION
   ========================================= */
.vm-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: stretch; width: 100%;
}

.vm-card {
    position: relative; overflow: hidden; min-height: 300px;
    background-size: cover; background-position: center;
    background-color: var(--surface);
    border: 1px solid var(--border); border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-card.has-bg { border: none; }

/* See Animations Section for Zoom Effects */

/* Overlay Content */
.vm-overlay {
    position: relative; z-index: 1;
    height: 100%; width: 100%; padding: 40px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: 0.3s;
}

/* State: No Image */
.vm-card.no-bg .vm-overlay { background: transparent; }
.vm-card.no-bg h3 { color: var(--heading); }

/* State: Has Image */
.vm-card.has-bg .vm-overlay { background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)); }
.vm-card.has-bg:hover .vm-overlay { background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.8)); }

/* Text Color Adaptation */
.vm-card.text-white h3 { color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.vm-card.text-white .vm-text, 
.vm-card.text-white .vm-text p, 
.vm-card.text-white .vm-text strong { color: #e2e8f0 !important; }
.vm-card.text-white .icon-box {
    background: rgba(255, 255, 255, 0.2); color: #ffffff; backdrop-filter: blur(5px);
}

/* =========================================
   9. FEATURES GRID (Modern)
   ========================================= */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 40px;
}

.feature-card {
    background: var(--surface); padding: 40px;
    border-radius: 20px; border: 1px solid var(--border);
    transition: all 0.3s ease; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px); border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.f-icon-wrapper {
    width: 60px; height: 60px; background: var(--bg-light);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary); margin-bottom: 25px; transition: 0.3s;
}

.feature-card:hover .f-icon-wrapper {
    background: var(--primary); color: white; transform: rotateY(180deg);
}

.f-content h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--heading); font-weight: 700; }
.f-content p { font-size: 0.95rem; color: #64748b; line-height: 1.6; margin: 0; }

/* =========================================
   10. TEAM SLIDER
   ========================================= */
.team-card {
    background: var(--surface); border-radius: 24px; overflow: hidden;
    border: 1px solid var(--border); text-align: center;
}

.team-info { padding: 24px; }
.team-info h3 { font-size: 1.25rem; margin-bottom: 5px; }
.team-info .role { color: var(--primary); font-size: 0.9rem; font-weight: 600; }

/* =========================================
   11. PRICING
   ========================================= */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}
.pricing-card {
    background: var(--surface); padding: 40px; border-radius: 24px;
    border: 1px solid var(--border); transition: 0.3s; position: relative;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.pricing-card.popular { border: 2px solid var(--primary); background: #f8fbff; }

.pop-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 4px 12px;
    border-radius: 12px; font-size: 0.8rem; font-weight: 700;
}
.price { font-size: 3rem; font-weight: 800; color: var(--heading); margin: 20px 0; }
.pricing-card ul { list-style: none; padding: 0; margin-bottom: 30px; }
.pricing-card li {
    padding: 10px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 10px;
}
.pricing-card li i { color: #10b981; }

/* =========================================
   12. GALLERY & LOGOS
   ========================================= */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.gallery-item {
    position: relative; height: 280px; border-radius: 20px; overflow: hidden; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5); color: white;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Logos */
.logo-flex {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.6;
}
.trust-item { font-weight: 700; font-size: 1.5rem; color: #cbd5e1; }

/* CTA */
.section-cta { padding: 80px 0; }
.cta-box {
    background: var(--primary); border-radius: 30px; padding: 60px;
    text-align: center; color: white;
}
.cta-box h2 { color: white; margin-bottom: 30px; }

/* =========================================
   13. CONTACT SECTION
   ========================================= */
.contact-grid-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start;
}

/* Info Side */
.info-item {
    display: flex; align-items: center; gap: 20px; background: var(--surface);
    padding: 20px; border-radius: 16px; border: 1px solid var(--border);
    margin-bottom: 20px; transition: 0.3s;
}
.info-item:hover { transform: translateX(10px); border-color: var(--primary); }
.info-item .icon-box { margin-bottom: 0; font-size: 1.5rem; color: var(--primary); }
.info-item h4 { margin: 0; font-size: 1rem; color: var(--heading); }
.info-item p, .info-item a { margin: 0; color: #64748b; font-size: 0.95rem; }

.map-container {
    width: 100%; height: 300px; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); margin-top: 30px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* Form Side */
.modern-form {
    background: var(--surface); padding: 50px; border-radius: 24px;
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.modern-form h3 { margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { position: relative; margin-bottom: 25px; }

.input-group input, .input-group textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg-light); font-size: 1rem;
    font-family: inherit; outline: none; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary); background: white;
}

/* Floating Labels */
.input-group label {
    position: absolute; left: 15px; top: 14px; color: #94a3b8;
    pointer-events: none; transition: 0.2s; background: transparent; padding: 0 5px;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px; left: 10px; font-size: 0.8rem; background: var(--surface); color: var(--primary);
}

.success-message {
    margin-top: 20px; background: #ecfdf5; color: #064e3b;
    padding: 20px; border-radius: 12px; border: 1px solid #10b981;
    display: flex; align-items: center; gap: 15px;
}
.check-icon {
    width: 40px; height: 40px; background: #10b981; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* =========================================
   14. FOOTER & SCROLL TOP
   ========================================= */
.main-footer {
    position: relative; background-size: cover !important; background-position: center !important;
    background-color: #0f172a; color: #cbd5e1; padding: 80px 0 20px;
}
.footer-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9); z-index: 1;
}
.footer-grid, .footer-copy { position: relative; z-index: 2; }
.footer-grid {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px;
}
.footer-brand h3 { color: white; margin-bottom: 10px; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white;
}
.footer-socials a:hover { background: var(--primary); }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.9rem;
}

.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: 0.3s;
    font-size: 1.2rem; z-index: 99;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }

/* =========================================
   15. SIDE SCROLL INDICATOR
   ========================================= */
.section-indicator {
    position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 999;
}
.indicator-dot {
    width: 12px; height: 12px; border: 2px solid var(--primary);
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
    position: relative; background: transparent;
}
.indicator-dot.active { background: var(--primary); transform: scale(1.2); }

/* Tooltip */
.indicator-dot::before {
    content: attr(data-title); position: absolute; right: 25px; top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8); color: white; padding: 4px 10px;
    border-radius: 4px; font-size: 0.75rem; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none;
}
.indicator-dot:hover::before {
    opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
}

/* =========================================
   16. ANIMATIONS & INTERACTIVE ELEMENTS (FIXED)
   ========================================= */

/* 1. 3D FLIP CONTAINER (Fixed Logic) */
.flip-container {
    perspective: 1000px;
    width: 100%;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-container:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

/* Front: Relative (Defines the height of the container) */
.flip-front {
    position: relative;
    z-index: 2;
}

/* Back: Absolute (Sits on top/behind the front) */
.flip-back {
    position: absolute;
    top: 0; left: 0;
    transform: rotateY(180deg);
    z-index: 1;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific Fix for About Section Images */
.about-img .flip-back img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Team Section Flip Specifics */
.team-img.flip-container { height: 300px; } /* Team needs fixed height */
.team-social-back { display: flex; gap: 15px; }
.team-social-back a { 
    width: 50px; height: 50px; background: var(--primary); color: white; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; 
}

/* 2. VISION ZOOM EFFECT */
.vm-card.zoom-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    background-size: cover;
    background-position: center;
}
.vm-card.zoom-card::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: inherit; transition: transform 0.5s ease;
    z-index: 0;
}
.vm-card:hover::before { transform: scale(1.2); }

/* 3. MODALS (Service Popup & Lightbox) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: white; max-width: 800px; width: 100%; border-radius: 20px;
    overflow: hidden; position: relative; display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
    .modal-content { flex-direction: row; }
    .modal-image { width: 50%; height: auto; object-fit: cover; }
    .modal-text { width: 50%; padding: 40px; }
}
.modal-image { width: 100%; height: 250px; object-fit: cover; display: block; }
.modal-text { padding: 30px; }
.modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #333;
    cursor: pointer; z-index: 10; background: rgba(255,255,255,0.8);
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.modal-close:hover { background: white; color: var(--primary); }

/* Lightbox Specific */
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* =========================================
   17. SUCCESS TOAST
   ========================================= */
.alert-toast {
    position: fixed; top: 20px; right: 20px;
    background: #10b981; color: white;
    padding: 16px 24px; border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex; align-items: center; gap: 12px; font-weight: 600;
    z-index: 9999; transform: translateX(120%); opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.alert-toast.show { transform: translateX(0); opacity: 1; }
.alert-toast i { font-size: 1.5rem; }

/* =========================================
   18. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .contact-grid-wrapper, .about-grid, .split-grid, .vm-grid {
        grid-template-columns: 1fr; gap: 40px;
    }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { align-items: center; text-align: center; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .nav-flex nav {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh; background: white;
        flex-direction: column; align-items: flex-start;
        padding: 80px 30px; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: 0.3s;
    }
    .nav-flex nav.active { right: 0; }
    .nav-flex nav a { margin: 0 0 20px 0; font-size: 1.1rem; }
    
    .mobile-toggle { display: block; z-index: 1001; }
    .section-hero { min-height: auto; padding: 150px 0 100px; }
    
    /* Hide Side Dots on Mobile */
    .section-indicator { display: none; }
}