/* Brandmek - Main Stylesheet (Complete & Fixed) */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --light: #f3f4f6;
    --dark: #0f0f0f;
    --border: #1f1f1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* FIX: Prevents the page from scrolling left/right */
}

/* 1. GLOBAL DARK THEME */
body {
    font-family: 'Inter', sans-serif;
    color: #9ca3af;
    line-height: 1.6;
    background-color: #050505 !important; /* Force Dark Background */
    overflow-x: hidden; /* FIX: Prevents horizontal overflow on mobile */
    position: relative; /* Ensure container referencing works */
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

/* FIX: Ensure Maps/Iframes don't break mobile layout */
iframe, img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* 2. HERO SECTION */
.hero-section {
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(120, 50, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 10s infinite alternate ease-in-out;
    z-index: 1;
}

.shape-1 {
    top: -10%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.2);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.15);
    animation-delay: -5s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -40px) scale(1.1); }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. UTILITIES & GRADIENTS */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.badge-glow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #d8b4fe;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
}

.btn-glow-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    border: none;
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
}

.btn-glow-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
    color: white;
}

.btn-glow-green {
    background: #10b981;
    border: none;
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-glow-green:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
    color: white;
}

/* Custom Button */
.btn-outline-glow {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: transparent;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.btn-outline-glow:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: white;
}

/* 4. SERVICES SECTION */
.services-section {
    background-color: #050505 !important;
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 1.5rem;
}

.service-card-dark {
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
}

.service-card-dark:hover {
    transform: translateY(-5px);
    border-color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-card-dark h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card-dark p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card-dark:hover .service-icon-box {
    transform: scale(1.1);
}

.icon-blue { background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3); }
.icon-purple { background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3); }
.icon-orange { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3); }
.icon-green { background: linear-gradient(135deg, #22c55e 0%, #10b981 100%); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3); }
.icon-peach { background: linear-gradient(135deg, #fca5a5 0%, #fb7185 100%); box-shadow: 0 8px 20px rgba(252, 165, 165, 0.3); }
.icon-custom { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }

.service-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #c4b5fd;
    transform: translateX(5px);
}

/* 5. WORK & PORTFOLIO */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    /* Added transition for hover lift effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect for Card */
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.work-image-container {
    height: 320px;
    width: 100%;
    position: relative;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
    opacity: 1 !important;
}

.work-content {
    width: 100%;
    position: relative;
    z-index: 2;
}

.work-tag-pill {
    background: rgba(100, 50, 255, 0.3);
    color: #e9d5ff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(4px);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-title-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.work-desc-small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. FEATURES LIST (Why Us Section) */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 7. GENERAL COMPONENTS */
.process-card {
    padding: 2rem;
    background: #0f0f0f;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-label {
    color: #9ca3af;
}

.form-control {
    background-color: #0f0f0f;
    border: 1px solid #1f1f1f;
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #0f0f0f;
    border-color: #6366f1;
    color: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 8. LAYOUT & NAVIGATION */
.navbar {
    background-color: #050505 !important;
    border-bottom: 1px solid #1f1f1f;
}

footer {
    background-color: #050505;
    border-top: 1px solid #1f1f1f;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    color: #9ca3af;
}

.social-links a:hover {
    background-color: #6366f1;
    color: white;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

/* 9. ANIMATIONS & UTILS */
.z-3 { z-index: 3; }
.min-vh-100 { min-height: 100vh; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 10. MODAL & PAGE SPECIFIC STYLES */
.modal-content {
    background-color: #0f0f0f !important;
    border: 1px solid #333 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-header, .modal-footer {
    border-color: #333 !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- NEW CTA CARD (Want Your Project Here) --- */
.cta-card {
    background-color: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(0,0,0,1), 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Ensure Modal Text is Readable */
#modalDesc {
    font-size: 1rem;
    line-height: 1.7;
    color: #cbd5e1 !important;
}

/* --- MODERN NAVBAR STYLES (Added) --- */

/* 1. Glassmorphism Background */
.modern-navbar {
    background: rgba(5, 5, 5, 0.7) !important; /* See-through dark */
    backdrop-filter: blur(16px); /* Blurs content behind it */
    -webkit-backdrop-filter: blur(16px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* 2. Link Styling & Spacing */
.modern-navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    padding: 5px 0 !important;
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-link.active {
    color: #ffffff !important;
}

/* 3. Animated Underline Effect */
.modern-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%; /* Start from center */
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1, #d946ef); /* Purple gradient */
    transition: width 0.3s ease;
    border-radius: 2px;
}

.modern-navbar .nav-link:hover::after,
.modern-navbar .nav-link.active::after {
    width: 100%;
}

/* 4. Fix Content overlap (Since header is now Fixed) */
body {
    padding-top: 0 !important; /* Let Hero sections handle their own spacing */
}

/* Fix specific page spacing since header floats now */
.featured-work, .py-5 {
    position: relative; 
    z-index: 2;
}

/* --- NEW TIMELINE (HOW IT WORKS) STYLES --- */

.how-it-works-section {
    background-color: #050505;
    overflow: hidden;
}

.timeline-container {
    padding: 2rem 0;
}

/* Central Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #6366f1, #d946ef, transparent);
    transform: translateX(-50%);
    z-index: 0;
}

/* Icons on the line */
.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: #1f1f1f; /* Fallback */
    border: 4px solid #050505; /* Create visual separation from line */
    position: relative;
    z-index: 1;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.timeline-row:hover .timeline-icon {
    transform: scale(1.1);
}

/* Cards */
.timeline-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-row:hover .timeline-card {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Large Numbers */
.process-number-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    /* Removed background-clip which was causing the block issue */
}

/* Icon & Number Colors */
.icon-blue { background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%); box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
.number-blue { color: #3b82f6; background: none; } /* Use color instead of background */

.icon-purple { background: linear-gradient(135deg, #a855f7 0%, #d946ef 100%); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.number-purple { color: #a855f7; background: none; }

.icon-orange { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); }
.number-orange { color: #f97316; background: none; }

.icon-green { background: linear-gradient(135deg, #22c55e 0%, #10b981 100%); box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
.number-green { color: #10b981; background: none; }

/* Mobile Responsiveness for Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
        transform: none;
    }
    
    .timeline-row {
        margin-bottom: 3rem;
    }

    .timeline-icon {
        margin: 0;
        position: absolute;
        left: 0;
        top: 0;
    }

    .timeline-card {
        text-align: left !important;
        margin-left: 60px; /* Space for the icon */
        margin-top: -10px; /* Align top with icon */
        padding: 1.5rem;
    }

    /* Force col ordering for mobile so icon is always left */
    .order-md-1, .order-md-2, .order-md-3 {
        order: unset !important;
    }

    /* Adjust the column holding the icon */
    .timeline-row .col-md-2 {
        position: absolute;
        left: 0;
        width: 60px;
        padding: 0;
    }

    /* Adjust the content column */
    .timeline-row .col-md-5 {
        width: 100%;
        padding-left: 1rem;
    }
    
    /* Hide empty columns on mobile */
    .timeline-row .col-md-5:empty {
        display: none;
    }
}

/* --- WHY US COUNTER SECTION --- */
.why-brandmek {
    position: relative;
    z-index: 2;
}

.why-us-card {
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.why-us-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

/* Text Colors specific to Why Us */
.text-purple { color: #d946ef !important; }
.text-warning { color: #f59e0b !important; }
.text-success { color: #10b981 !important; }

/* -------------------------------------------------------------------------- */
/* MOBILE HERO FIXES - Added to resolve Large Text Issue                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem; /* Reduce tablet size */
    }
}

@media (max-width: 768px) {
    /* 1. Fix Huge Font Size */
    .hero-title {
        font-size: 2.5rem; /* Much smaller than 4.5rem */
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem !important;
        padding: 0 15px; /* Prevent text hitting edges */
    }

    /* 2. Fix Overlap with Header & Center Vertically */
    .hero-section {
        /* UPDATED: Changed from 100dvh to auto to remove excess white space below text */
        min-height: auto; 
        padding-top: 120px; /* Increased slightly for better header clearance */
        padding-bottom: 60px;
        height: auto;
    }
    
    /* 3. Better Button Touch Targets */
    .hero-section .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%; /* Full width buttons on mobile */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* 4. Reduce Visual Noise */
    .hero-shape {
        opacity: 0.3; 
    }
    .shape-1 { width: 250px; height: 250px; }
    .shape-2 { width: 180px; height: 180px; }
    
    /* 5. Mobile Responsiveness for Timeline - FIXED for cleaner left-aligned icons */
    .timeline-line {
        left: 30px; /* Center of the 60px icon column */
        transform: translateX(-50%); /* Restore centering transform */
    }
    
    .timeline-row {
        margin-bottom: 2.5rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center !important; /* Top align icon with card */
        position: relative; /* Fix context */
    }

    /* Force Icon Column to be First (Left) */
    .timeline-row .col-md-2 {
        order: 1 !important; 
        flex: 0 0 60px; /* Fixed Width */
        max-width: 60px;
        padding: 0;
        position: relative !important; /* Reset absolute positioning */
        left: auto !important;
        top: auto !important;
        display: flex;
        justify-content: center;
        z-index: 2;
    }

    /* Force Content Column to be Second (Right) */
    .timeline-row .col-md-5 {
        order: 2 !important; 
        flex: 0 0 calc(100% - 60px); /* Remaining width */
        max-width: calc(100% - 60px);
        padding-left: 0.5rem; /* Reduced from 0.8rem */
        padding-right: 0;
    }

    /* Hide Empty Columns */
    .timeline-row .col-md-5:empty, 
    .timeline-row .col-md-5.order-3 {
        display: none !important;
    }

    .timeline-icon {
        margin: 0; /* Remove auto margins */
        width: 50px;
        height: 50px;
        margin-top: 0; /* Slight offset to align with card title visually */
        position: static; /* Reset absolute */
    }

    .timeline-card {
        text-align: left !important;
        margin-left: 0 !important; /* Reset margin */
        margin-top: 0 !important; /* Reset margin */
        padding: 1.5rem;
    }
}
.iti__selected-dial-code { color: #ffffff !important; }

/* --- TESTIMONIAL SLIDER STYLES (Fixed & High Contrast) --- */

/* --- TESTIMONIAL SLIDER STYLES (Fixed: No Dots, Scrollable Text) --- */

.testimonial-card {
    /* Glass Effect */
    background: rgba(40, 40, 40, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    
    /* Fixed Height Strategy: Ensures all cards are uniform */
    height: 420px; 
    
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(50, 50, 50, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* THE FIX: Scrollable Text Area (Hidden Scrollbar) */
.testimonial-card p {
    flex-grow: 1;           /* Takes up all available space */
    overflow-y: auto;       /* Allows scrolling if text is long */
    margin-bottom: 1rem;
    padding-right: 5px;     /* Prevents text hitting the edge */
    
    /* Hide Scrollbar (Chrome/Safari) */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

/* Hide Scrollbar for Chrome/Safari/Opera */
.testimonial-card p::-webkit-scrollbar {
    display: none;
}

/* Background Quote Icon (Moved slightly to not block text) */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    right: 25px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    pointer-events: none;
    line-height: 1;
}

/* Nav Buttons */
.carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
    transform: scale(1.1);
}

/* --- INDEPENDENT LOGO MARQUEE (70% Width & Centered) --- */

.logo-marquee-wrapper {
    background: #000000;
    overflow: hidden;
    width: 100%;
}

.brandmek-marquee {
    position: relative;
    /* Reduced width to 70% and centered */
    width: 70%;
    margin: 0 auto; 
    padding: 10px 0;
    
    /* Premium fade effect on the sides */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brandmek-marquee-track {
    display: flex;
    width: max-content;
    animation: brandmek-scroll 30s linear infinite;
}

.brandmek-marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 45px;
    width: auto;
    /* Filter removed to keep original colors */
    opacity: 0.9; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes brandmek-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile Tweak: On smaller screens, 70% is too narrow, so we use 100% */
@media (max-width: 768px) {
    .brandmek-marquee {
        width: 100%;
    }
    .brandmek-marquee-track {
        animation-duration: 20s;
    }
}
/* Hide Google reCAPTCHA v3 badge */
.grecaptcha-badge { 
    visibility: hidden !important; 
}
/* --- INDUSTRY TABS STYLING --- */
.custom-tabs .nav-link {
    background-color: #0f0f0f;
    border: 1px solid #1f1f1f;
    color: #9ca3af;
    transition: all 0.3s ease;
}
.custom-tabs .nav-link:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}
.custom-tabs .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}