/* ===================================================================
   File: services.css
   Description: Specialized styles for the Services Page (World-Class UI)
   =================================================================== */

/* --- HERO SECTION BASE --- */
.services-hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: #0A0A2A; /* Deep Dark Blue matching your brand */
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Atmospheric Glowing Orbs */
.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    animation: orbFloat 10s ease-in-out infinite alternate;
}
.orb-cyan {
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
}
.orb-pink {
    bottom: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--accent-pink);
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Grid Layout */
.services-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* --- LEFT SIDE: TEXT CONTENT --- */
.hero-text-content {
    max-width: 600px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #8892b0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: 0.3s;
}
.breadcrumb a:hover { color: #fff; }

.premium-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-pink);
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}
.premium-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-pink);
}

.hero-text-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(51, 213, 229, 0.3));
}

.hero-text-content p {
    font-size: 1.1rem;
    color: #a0aabf;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Buttons */
.hero-action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary-glow {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(232, 73, 232, 0.4);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}
.btn-primary-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(51, 213, 229, 0.5);
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Trust Stats */
.hero-trust-indicators {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.trust-item p {
    font-size: 0.8rem !important;
    color: #8892b0 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-trust-indicators .divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- RIGHT SIDE: VISUAL COMPOSITION --- */
.hero-visual-content {
    position: relative;
    height: 600px;
    width: 100%;
}

.image-composition {
    position: relative;
    width: 100%;
    height: 100%;
}

.img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 85%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 1;
}
.img-main img { width: 100%; height: 100%; object-fit: cover; }

.img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 50%;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid #0A0A2A; /* Cutout effect */
    box-shadow: -10px 15px 40px rgba(0,0,0,0.5);
    z-index: 2;
}
.img-secondary img { width: 100%; height: 100%; object-fit: cover; }

/* Floating Glass Card */
.floating-glass-card {
    position: absolute;
    top: 40px;
    left: -20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-icon {
    width: 40px; height: 40px;
    background: #FFD700;
    color: #0A0A2A;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.card-text strong { display: block; color: #fff; font-size: 1rem; }
.card-text span { font-size: 0.75rem; color: #ccc; }

.avatars { display: flex; align-items: center; margin-left: 10px; }
.avatars img {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px;
}
.avatars .avatar-more {
    width: 30px; height: 30px; border-radius: 50%; background: var(--accent-cyan); color: #000;
    display: flex; justify-content: center; align-items: center; font-size: 0.7rem; font-weight: bold;
    border: 2px solid #fff; margin-left: -10px; z-index: 2;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
    .services-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text-content { margin: 0 auto; }
    .hero-trust-indicators { justify-content: center; flex-wrap: wrap; }
    .hero-action-buttons { justify-content: center; flex-wrap: wrap; }
    .premium-badge::before { display: none; }
    .premium-badge { padding-left: 0; }
    .hero-visual-content { height: 500px; max-width: 700px; margin: 0 auto; }
    .floating-glass-card { left: 10px; top: 10px; }
}

@media (max-width: 768px) {
    .services-hero { padding-top: 120px; }
    .hero-text-content h1 { font-size: 2.4rem; }
    .hero-visual-content { height: 350px; }
    .img-secondary { width: 65%; height: 60%; }
    .floating-glass-card { 
        transform: scale(0.8); 
        top: -10px; 
        left: -10px; 
        animation: floatCardMobile 6s ease-in-out infinite; /* Changed for mobile */
    }
}

/* Keyframes defined OUTSIDE media queries to prevent editor errors */
@keyframes floatCardMobile { 
    0%, 100% { transform: translateY(0) scale(0.8); } 
    50% { transform: translateY(-10px) scale(0.8); } 
}

/* ===================================================================
   CINEMATIC AMBIENT EDGE IMAGES (THE MAGIC)
   =================================================================== */
.ambient-edge {
    position: absolute;
    top: 0;
    height: 100%;
    width: 35vw; /* স্ক্রিনের দুই পাশে ৩৫% জায়গা নেবে */
    z-index: 0; /* সবার পেছনে থাকবে */
    opacity: 0.15; /* খুব হালকা করে দেখা যাবে, যাতে মেইন টেক্সটে সমস্যা না হয় */
    pointer-events: none; /* মাউস ক্লিক আটকাবে না */
    overflow: hidden;
}

.ambient-edge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2); /* ব্লু-থিমের সাথে ম্যাচ করার জন্য গ্রে-স্কেল করা হয়েছে */
    animation: ambientBreathe 20s ease-in-out infinite alternate; /* হলিউড স্টাইল স্লো জুম */
}

/* বাম পাশের ইমেজের জন্য: ডান দিকে ফেইড হয়ে কালো ব্যাকগ্রাউন্ডে মিশে যাবে */
.edge-left {
    left: 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* ডান পাশের ইমেজের জন্য: বাম দিকে ফেইড হয়ে কালো ব্যাকগ্রাউন্ডে মিশে যাবে */
.edge-right {
    right: 0;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* স্লো ব্রিদিং (Bathing/Zoom) অ্যানিমেশন */
@keyframes ambientBreathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* মোবাইল ও ছোট স্ক্রিনে এগুলো হাইড করা হলো, কারণ ছোট স্ক্রিনে ফাঁকা জায়গা থাকে না */
@media (max-width: 1400px) {
    .ambient-edge { width: 25vw; opacity: 0.1; }
}
@media (max-width: 991px) {
    .ambient-edge { display: none; }
}

/* ===================================================================
   WORLD-CLASS SERVICES GRID (CARDS)
   =================================================================== */


/* Premium Grid Layout */
.service-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 80px;
}

/* Ultra Service Card Design */
.ultra-service-card {
    position: relative;
    display: block;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    background: #14143a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    /* Hardware acceleration for smooth transitions */
    transform: translateZ(0); 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Background Image Layer */
.card-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.card-bg-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark Gradient Overlay for Readability */
.cinematic-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to top, 
        rgba(10, 10, 42, 0.95) 0%, 
        rgba(10, 10, 42, 0.6) 50%, 
        rgba(10, 10, 42, 0.1) 100%
    );
    transition: background 0.5s ease;
}

/* Content Area */
.card-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    transition: transform 0.4s ease;
}

/* Floating Glass Icon */
.glass-icon {
    width: 55px; height: 55px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Text Styling */
.ultra-service-card h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.ultra-service-card p {
    color: #b0b0d0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* Explore Link (Appears on Hover) */
.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.explore-btn i { transition: transform 0.3s ease; }

/* ==========================================
   HOVER EFFECTS (THE MAGIC)
   ========================================== */
.ultra-service-card:hover {
    border-color: rgba(51, 213, 229, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(51, 213, 229, 0.15);
    transform: translateY(-8px);
}

/* Zoom Image */
.ultra-service-card:hover .card-bg-img img {
    transform: scale(1.1);
}

/* Darken Overlay */
.ultra-service-card:hover .cinematic-overlay {
    background: linear-gradient(
        to top, 
        rgba(10, 10, 42, 1) 0%, 
        rgba(10, 10, 42, 0.8) 50%, 
        rgba(10, 10, 42, 0.3) 100%
    );
}

/* Icon Glow */
.ultra-service-card:hover .glass-icon {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
    color: #fff;
    box-shadow: 0 10px 25px rgba(232, 73, 232, 0.4);
}

/* Highlight Title */
.ultra-service-card:hover h3 {
    color: var(--accent-cyan);
}

/* Show Link */
.ultra-service-card:hover .explore-btn {
    opacity: 1;
    transform: translateY(0);
}
.ultra-service-card:hover .explore-btn i {
    transform: translateX(5px);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .service-grid-premium {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .ultra-service-card {
        height: 380px; /* Slightly shorter on mobile */
    }
    .card-content {
        padding: 25px 20px;
    }
    .ultra-service-card h3 {
        font-size: 1.4rem;
    }
    /* Make button always slightly visible on mobile since no hover */
    .explore-btn {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.85rem;
    }
}

/* ===================================================================
   WORLD-CLASS EDITORIAL HEADER & INFORMATIVE CARDS
   =================================================================== */

/* 1. The Asymmetric Editorial Header (Solves the layout break) */
.agoid-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Bottom aligns the text for a pro look */
    gap: 50px;
    margin-top: 60px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Sleek separator */
}

.header-content-left {
    flex: 1;
    max-width: 50%;
}

.super-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(51, 213, 229, 0.1), rgba(232, 73, 232, 0.1));
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(51, 213, 229, 0.2);
}

.ultra-title {
    font-family: 'Orbitron', 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

.ultra-title .text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-content-right {
    flex: 1;
    max-width: 45%;
}

.header-content-right p {
    color: #a0aabf;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.header-quick-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hq-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.hq-stat i { color: var(--accent-cyan); }


/* 2. Informative Card Meta Tags (Replaces the big icons) */
.card-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.card-meta-tags span {
    background: rgba(10, 10, 42, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(51, 213, 229, 0.3);
    color: var(--accent-cyan);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Card Hover Enhancements */
.ultra-service-card:hover .card-meta-tags {
    transform: translateY(0);
    opacity: 1;
}
.ultra-service-card:hover .card-meta-tags span {
    background: var(--accent-cyan);
    color: #0A0A2A;
}

/* Adjust overlay so tags are visible */
.cinematic-overlay {
    background: linear-gradient(
        to top, 
        rgba(10, 10, 42, 0.98) 0%, 
        rgba(10, 10, 42, 0.8) 40%, 
        rgba(10, 10, 42, 0.1) 100%
    );
}

/* 3. Mobile Responsiveness for the new Header */
@media (max-width: 991px) {
    .agoid-premium-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        border-bottom: none;
    }
    .header-content-left, .header-content-right {
        max-width: 100%;
    }
    .ultra-title {
        font-size: 2.5rem;
    }
}

/* ===================================================================
   GRID FIXES & WORLD-CLASS PROCESS + CTA STYLES
   =================================================================== */

/* Ensure the grid is always responsive and cards are equally sized */
.service-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* --- THE PREMIUM TIMELINE (PROCESS SECTION) --- */
.ultra-process-section {
    background: #05051a;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

/* Vertical glowing line */
.premium-timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 35px;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), rgba(232, 73, 232, 0.2));
    z-index: 1;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.timeline-step:hover {
    background: rgba(51, 213, 229, 0.05);
    border-color: rgba(51, 213, 229, 0.3);
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.step-icon {
    width: 70px; height: 70px;
    background: #0A0A2A;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: #fff;
    flex-shrink: 0;
    margin-left: -65px; /* Pulls icon onto the line */
    box-shadow: 0 0 20px rgba(51, 213, 229, 0.4);
    transition: all 0.4s ease;
}

.timeline-step:hover .step-icon {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    border-color: transparent;
    transform: scale(1.1) rotate(10deg);
}

.step-content h3 {
    font-size: 1.4rem; color: #fff; margin-bottom: 10px; font-weight: 700;
}
.step-content p {
    color: #a0aabf; font-size: 1rem; line-height: 1.6; margin: 0;
}

/* --- PREMIUM CTA BOX --- */
.premium-cta-box {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(232, 73, 232, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* Mobile Adjustments for Timeline */
@media (max-width: 768px) {
    .premium-timeline::before { left: 20px; }
    .timeline-step { flex-direction: column; padding: 25px 20px; gap: 15px; }
    .step-icon { margin-left: 0; width: 50px; height: 50px; font-size: 1.2rem; }
    .step-content h3 { font-size: 1.2rem; }
    .premium-cta-box { padding: 40px 20px; }
}

/* ===================================================================
   WORLD-CLASS WIDE SCREEN AMBIENT BACKGROUND (NO MORE EMPTY SPACES)
   =================================================================== */

/* Make sure the main section can contain the absolute elements */
#all-services {
    position: relative;
    overflow: hidden; /* Prevents horizontal scroll on smaller screens */
}

/* The wrapper for all ambient elements */
.services-ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* User clicks will pass through this layer */
    display: none; /* Hidden by default on mobile/tablets */
}

/* 1. Subtle Side Glows to break the solid dark background */
.side-glow {
    position: absolute;
    width: 400px;
    height: 1000px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}
.left-glow {
    top: 10%;
    left: -200px;
    background: var(--accent-cyan);
}
.right-glow {
    top: 50%;
    right: -200px;
    background: var(--accent-pink);
}

/* 2. Architectural Blueprint Dot Grid */
.blueprint-grid {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15vw; /* Takes up 15% of the screen width on the sides */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 40px 40px; /* Spacing between dots */
}
.left-grid {
    left: 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.right-grid {
    right: 0;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* 3. Massive Vertical Outline Typography (The 'Apple' Touch) */
.massive-watermark {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 140px;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent; /* Makes the inside of the text empty */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04); /* Very faint outline */
    white-space: nowrap;
    writing-mode: vertical-rl; /* Rotates text vertically */
    animation: floatVertical 20s linear infinite alternate; /* Slow floating animation */
}

.mark-1 {
    top: 5%;
    left: 20px;
    transform: rotate(180deg); /* Reads bottom to top */
    background: linear-gradient(to bottom, rgba(51, 213, 229, 0.1), transparent);
    -webkit-background-clip: text;
}

.mark-2 {
    top: 35%;
    right: 20px;
    /* Reads top to bottom */
    background: linear-gradient(to top, rgba(232, 73, 232, 0.1), transparent);
    -webkit-background-clip: text;
}

.mark-3 {
    bottom: 5%;
    left: 20px;
    transform: rotate(180deg);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    -webkit-background-clip: text;
}

/* Vertical floating animation */
@keyframes floatVertical {
    0% { transform: translateY(0) rotate(180deg); }
    100% { transform: translateY(-50px) rotate(180deg); }
}

/* Different animation rule for the right mark (doesn't have 180deg rotation) */
.mark-2 {
    animation: floatVerticalRight 25s linear infinite alternate;
}
@keyframes floatVerticalRight {
    0% { transform: translateY(0); }
    100% { transform: translateY(-80px); }
}

/* Ensure #all-services container content is above the background */
#all-services .container {
    position: relative;
    z-index: 2;
}

/* Magic Media Query: Only show on Wide Screens (Laptops & Monitors) */
@media (min-width: 1400px) {
    .services-ambient-bg {
        display: block; /* Turns on the magic only when there is empty space */
    }
}
@media (min-width: 1800px) {
    /* For Ultra-Wide Monitors, make text even bigger */
    .massive-watermark {
        font-size: 180px;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03);
    }
    .blueprint-grid {
        width: 20vw;
    }
}

/* ===================================================================
   SEO H1 & AESTHETIC TITLE FIX (100% FORCED OVERRIDE)
   =================================================================== */

/* The SEO H1 Tag - Forced to stay small like a premium badge */
.hero-text-content h1.seo-hero-h1 {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 20px !important;
    background: linear-gradient(135deg, rgba(51, 213, 229, 0.1), rgba(232, 73, 232, 0.1)) !important;
    color: #33D5E5 !important; /* Cyan color */
    border-radius: 50px !important;
    font-size: 13px !important; /* Strict small size */
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    border: 1px solid rgba(51, 213, 229, 0.3) !important;
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.2 !important;
    text-shadow: none !important; /* Removes any global text shadow */
    width: auto !important;
    max-width: fit-content !important;
}

.hero-text-content h1.seo-hero-h1 i {
    color: #E849E8 !important; /* Pink color for icon */
    margin-right: 8px !important;
    font-size: 14px !important;
}

/* The Visual Hook (Styled exactly like your old H1) */
.aesthetic-main-title {
    font-family: 'Orbitron', 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

/* Mobile Responsiveness for Titles */
@media (max-width: 768px) {
    .hero-text-content h1.seo-hero-h1 {
        font-size: 11px !important;
        padding: 6px 15px !important;
    }
    .aesthetic-main-title {
        font-size: 2.4rem;
    }
}

/* ===================================================================
   WORLD-CLASS FAQ SECTION (STICKY ASYMMETRIC LAYOUT)
   =================================================================== */

.ultra-faq-section {
    position: relative;
    padding: 120px 0;
    background: #0A0A2A;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible; /* Allows sticky to work */
}

/* Background Glow */
.faq-glow-orb {
    position: absolute;
    top: 30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(51, 213, 229, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* The 2-Column Layout */
.faq-premium-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left side smaller, Right side larger */
    gap: 60px;
    position: relative;
    z-index: 2;
    align-items: start; /* CRITICAL for sticky to work */
}

/* --- Left Panel (Sticky) --- */
.faq-left-panel {
    position: sticky;
    top: 120px; /* Sticks 120px from top of screen */
    padding-right: 20px;
}

.faq-left-panel p {
    color: #a0aabf;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 15px;
}

/* --- Right Panel (Accordions) --- */
.faq-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual FAQ Item (Glassmorphism) */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(51, 213, 229, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 20px;
    outline: none;
}

/* SEO Friendly Text Wrapper (Avoids H3 penalty) */
.faq-q-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* FAQ Plus/Minus Icon */
.faq-icon {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--accent-cyan);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- ACTIVE STATE (When FAQ is Open) --- */
.faq-item.active {
    background: rgba(51, 213, 229, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(51, 213, 229, 0.1);
    transform: translateX(10px);
}

.faq-item.active .faq-q-text {
    color: var(--accent-cyan);
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    color: #fff;
    transform: rotate(45deg); /* Turns Plus into an X */
    box-shadow: 0 5px 15px rgba(51, 213, 229, 0.4);
}

/* FAQ Answer (Smooth Dropdown Animation) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 30px 25px 30px; /* Top padding is 0 because question has bottom padding */
    margin: 0;
    color: #a0aabf;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 400px; /* High enough to reveal text smoothly */
    opacity: 1;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .faq-premium-layout {
        grid-template-columns: 1fr; /* Stacks vertically on mobile */
        gap: 40px;
    }
    .faq-left-panel {
        position: relative; /* Disables sticky on mobile */
        top: 0;
        padding-right: 0;
        text-align: center; /* Centers text on mobile */
    }
    .faq-question {
        padding: 20px;
    }
    .faq-q-text {
        font-size: 1.05rem;
    }
    .faq-answer p {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }
}

/* ===================================================================
   NEW ADDITIONS: BEFORE/AFTER, MARQUEE PARTNERS & LEAD BANNER
   =================================================================== */

/* 1. TwentyTwenty Slider Fixes */
.twentytwenty-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}
.twentytwenty-handle {
    border: 3px solid #fff !important;
    background: var(--accent-cyan) !important;
    box-shadow: 0 0 20px rgba(51, 213, 229, 0.8) !important;
}

/* 2. Infinite Marquee (Brand Partners) */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fades the edges for a smooth entry/exit effect */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: infiniteScroll 20s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.marquee-item img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5) brightness(2);
    transition: all 0.4s ease;
}
.marquee-item img:hover {
    filter: grayscale(0%) opacity(1) brightness(1);
    transform: scale(1.1);
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half the width */
}

/* 3. Mobile Responsiveness */
@media (max-width: 991px) {
    .measurement-banner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px !important;
    }
    .measurement-banner .banner-text {
        max-width: 100% !important;
    }
    .measurement-banner h3 {
        font-size: 1.4rem !important;
    }
    .marquee-item {
        padding: 0 20px;
    }
    .marquee-item img {
        height: 35px;
    }
}

/* ===================================================================
   100% FIX FOR BEFORE/AFTER SLIDER (PREVENT VERTICAL STACKING)
   =================================================================== */

/* Container Setup */
#services-comparison-slider {
    position: relative;
    width: 100%;
}

/* Hide the 'After' image initially until the plugin is fully loaded */
#services-comparison-slider img:last-child {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; 
}

/* Once plugin adds its classes, restore visibility */
.twentytwenty-container img:last-child {
    opacity: 1 !important;
}

/* CRITICAL: TwentyTwenty Plugin requires content-box to calculate handle position properly */
.twentytwenty-wrapper *,
.twentytwenty-wrapper *:before,
.twentytwenty-wrapper *:after {
    -webkit-box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    box-sizing: content-box !important;
}