:root {
    /* Colors - Luxury Blue Theme */
    --bg-deep: #020B1A;
    --bg-darker: #06152E;
    --bg-dark: #0A1F44;
    --bg-light: #0D2C63;
    --bg-electric: #1A4D9B;

    --primary: #2F6BFF;
    --primary-glow: rgba(47, 107, 255, 0.5);
    --secondary: #4DA3FF;
    --secondary-glow: rgba(77, 163, 255, 0.4);

    --bg-card: rgba(10, 31, 68, 0.45);
    --bg-card-hover: rgba(13, 44, 99, 0.6);

    --text-white: #ffffff;
    --text-muted: #b0c4de;
    /* Bluish silver */
    --glass-border: rgba(77, 163, 255, 0.15);
    --accent-glow: 0 0 30px rgba(47, 107, 255, 0.4);

    /* Fonts */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 80px 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(47, 107, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(26, 77, 155, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 5px;
    border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(10, 31, 68, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(77, 163, 255, 0.1);
    border-radius: 28px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 132, 255, 0.05),
            transparent);
    transition: 0.8s;
    z-index: 1;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(47, 107, 255, 0.3);
}

.floating-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-highlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 132, 255, 0.7);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px 10px rgba(0, 132, 255, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 132, 255, 0);
    }
}

.service-highlight {
    animation: pulse-highlight 2s ease-in-out 3;
    border-color: var(--primary) !important;
    background: rgba(0, 132, 255, 0.1) !important;
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
}

nav.scrolled {
    background: rgba(2, 11, 26, 0.85);
    backdrop-filter: blur(25px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    color: var(--primary);
}

.logo-icon-card {
    background: #ffffff;
    padding: 1px 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon-card {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    /* Enhance clarity */
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-white);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 80px);
        /* Leave room for hamburger */
    }

    .nav-logo-img {
        height: 38px;
    }

    nav.scrolled .nav-logo-img {
        height: 30px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 11, 26, 0.98);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        background-image: radial-gradient(circle at center, rgba(47, 107, 255, 0.1) 0%, transparent 70%);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
        text-transform: uppercase;
    }
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.section-stats {
    background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.08), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-bg-alt {
    background: rgba(255, 255, 255, 0.02);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
}

.final-cta {
    padding: 100px 5%;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.cta-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
    }
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.4s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bg-electric), var(--primary));
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(47, 107, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.4), 0 0 25px rgba(47, 107, 255, 0.5);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--text-white);
    background: rgba(47, 107, 255, 0.05);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(47, 107, 255, 0.4);
}

.section-stats {
    background: rgba(0, 132, 255, 0.05);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-bg-alt {
    background: rgba(255, 255, 255, 0.02);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
}

.final-cta-section {
    padding: 100px 5%;
    text-align: center;
}

/* Mobile adjustments already handled above */



/* Section Common */
section {
    padding: var(--section-padding);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 800;
}

.section-title span {
    color: var(--primary);
    /* Blue color for 'SERVICES' */
}

.title-underline {
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Services Marquee Section */
.services-marquee-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(10, 13, 18, 0.82), rgba(10, 13, 18, 0.72)), url('../assets/images/alexa_services_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

@media (max-width: 768px) {
    .services-marquee-section {
        padding: 80px 0;
        background-attachment: scroll;
        background-image: linear-gradient(rgba(10, 13, 18, 0.75), rgba(10, 13, 18, 0.65)), url('../assets/images/alexa_services_bg.png');
    }
}

.marquee-container {
    width: 100%;
    overflow-x: auto;
    padding: 30px 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
    scroll-behavior: auto !important;
    /* Ensure JS scroll is instant */
}

.marquee-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.marquee-container:active {
    cursor: grabbing;
}

/* Gradient mask for smooth edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    /* Reduced from 250px */
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-deep), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-deep), transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * (220px + 30px) * 16));
    }
}

.marquee-card {
    position: relative;
    width: 220px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.marquee-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: 0.3s;
}

/* Hover Effects */
.marquee-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.marquee-card:hover .card-bg {
    opacity: 0.3;
}

.marquee-card:hover span {
    color: #fff;
    letter-spacing: 1px;
}

/* Tablet / Mobile Adjustments */
@media (max-width: 768px) {
    .marquee-card {
        width: 190px;
        height: 55px;
        padding: 0 15px;
        background: rgba(255, 255, 255, 0.1);
        /* Slightly brighter on mobile */
        border-color: rgba(255, 255, 255, 0.25);
    }

    .marquee-card span {
        font-size: 0.75rem;
        color: #ffffff !important;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    @keyframes marqueeScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-1 * (180px + 30px) * 16));
        }
    }
}



/* Services Grid - Fixed for single/double column to match mobile feel */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px 0;
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-img-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 100%);
    pointer-events: none;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-img-container img {
    transform: scale(1.15);
}

.service-info {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 132, 255, 0.4));
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

.service-card:hover i {
    transform: translateY(-5px) scale(1.1);
    color: var(--secondary);
}

/* Service Image Overlay */
.service-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(2, 11, 26, 0.8) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    opacity: 1;
    /* Always visible to match reference */
}

.overlay-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 4px 10px rgba(2, 11, 26, 0.5);
    letter-spacing: -0.5px;
}

@media (max-width: 480px) {
    .overlay-title {
        font-size: 1.4rem;
    }
}

/* Service Showcase Sections */
.service-showcase {
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.service-showcase .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-image {
    position: relative;
    border-radius: 30px;
    overflow: visible;
    z-index: 1;
}

.showcase-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 132, 255, 0.1);
}

.image-highlight-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 260px;
    padding: 20px;
    z-index: 5;
    border: 1px solid var(--primary);
    box-shadow: 0 20px 40px rgba(2, 11, 26, 0.4);
}

.image-highlight-card img {
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: none;
}

.image-highlight-card h4 {
    font-size: 0.9rem;
    text-align: center;
}

.image-highlight-card.secondary {
    right: auto;
    left: -20px;
    bottom: 20px;
}

@media (max-width: 992px) {
    .image-highlight-card.secondary {
        left: 0;
        bottom: 80px;
    }
}

.showcase-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    font-weight: 800;
}

.showcase-text p.main-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item i {
    width: 45px;
    height: 45px;
    background: rgba(0, 132, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-white);
}

.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(0, 132, 255, 0.05);
    border: 1px solid rgba(0, 132, 255, 0.2);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.showcase-cta i {
    color: var(--primary);
    font-size: 1.2rem;
}

.showcase-cta:hover {
    background: rgba(0, 132, 255, 0.1);
    border-color: var(--primary);
}

/* Alternating Layout */
.service-showcase:nth-child(even) .content-wrapper {
    direction: rtl;
}

.service-showcase:nth-child(even) .showcase-text {
    direction: ltr;
}

.service-showcase:nth-child(even) .showcase-image {
    direction: ltr;
}

.service-showcase:nth-child(even) .image-highlight-card {
    right: auto;
    left: -20px;
}

@media (max-width: 992px) {
    .service-showcase .content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .showcase-text {
        order: 2;
    }

    .showcase-image {
        order: 1;
    }

    .service-showcase:nth-child(even) .content-wrapper {
        direction: ltr;
    }

    .image-highlight-card {
        width: 200px;
        right: 0;
        bottom: -20px;
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(50px);
    transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Animation Variants */
[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

[data-aos="fade-up-stagger"] {
    opacity: 0;
    transform: translateY(40px);
}


/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(2, 11, 26, 0.3);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Brands Section */
.brands-marquee-container {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 132, 255, 0.02), transparent);
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.marquee-reverse {
    animation-direction: reverse;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.brand-card {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.brand-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: var(--accent-glow);
    transform: scale(1.05);
}

.brand-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card i {
    font-size: 2.5rem;
    color: var(--text-white);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Partner Area */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
    margin-top: 50px;
}

.partner-logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    border-radius: 50px;
    transition: 0.4s;
    cursor: default;
}

.partner-logo:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 132, 255, 0.05);
    text-shadow: var(--accent-glow);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

/* Page Header (Subpages) */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Video Hover Effects */
.video-hover-card .service-img-container {
    position: relative;
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.card-poster {
    position: relative;
    z-index: 1;
}

.video-hover-card:hover .card-video {
    opacity: 1;
}

/* Global Footer */
.main-footer {
    padding: 80px 5% 40px;
    background: var(--bg-deep);
    border-top: 1px solid var(--glass-border);
    background-image: radial-gradient(circle at 50% 0%, rgba(47, 107, 255, 0.1), transparent 70%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: left;
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--primary);
    width: 20px;
    margin-top: 5px;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-icon.facebook {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.2);
}

.social-icon.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icon:hover {
    transform: translateY(-8px) rotate(5deg);
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.4);
}

.social-icon.instagram:hover i {
    -webkit-text-fill-color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.developer-watermark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.developer-watermark:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-2px);
}

.developer-watermark i {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Detailed Sections */
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px rgba(0, 132, 255, 0.3));
}

.stat-item h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--primary);
    margin: 0;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 30px;
    }

    .stat-item h2 {
        font-size: 2.2rem;
    }

    .stat-item p {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .stat-icon {
        font-size: 1.8rem;
    }
}

/* Contact Component */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 50px;
}

.contact-card {
    padding: 40px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 132, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Form Styling */
.form-glass {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 15px 20px;
    background: rgba(10, 31, 68, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
    width: 100%;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

.form-select option,
.form-select optgroup {
    background-color: var(--bg-dark);
    color: white;
    padding: 12px;
}

.form-select optgroup {
    font-weight: 800;
    color: var(--primary);
    font-style: normal;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    resize: none;
    min-height: 150px;
}

@media (max-width: 768px) {
    .contact-grid {
        gap: 30px;
        padding: 0 5%;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-item {
        gap: 15px;
        margin-bottom: 25px;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .input-row {
        grid-template-columns: 1fr;
    }
}

/* Brands Component */
.brands-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 30px;
}

@media (min-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--glass-border);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Trusted Leaders Section */
.trusted-section {
    padding: 100px 5%;
    background: linear-gradient(to bottom, var(--bg-deep), var(--bg-darker));
    border-top: 1px solid var(--glass-border);
}

.brands-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 50px auto 0;
}

.brand-premium-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    cursor: pointer;
}

.brand-premium-card::before {
    display: none;
}

.brand-premium-card:hover::before {
    opacity: 1;
}

.brand-logo-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.brand-premium-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1) !important;
    opacity: 1 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-premium-card:hover {
    transform: translateY(-5px);
}

.brand-premium-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) !important;
}

@media (max-width: 768px) {
    .brands-grid-premium {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .brand-premium-card {
        padding: 5px;
        /* Ensure transitions feel fast but smooth on touch */
        transition-duration: 0.4s;
    }

    .brand-logo-container {
        height: 60px;
    }

    /* Touch Feedback for Mobile */
    .brand-premium-card:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.05);
    }

    .brand-premium-card:active img {
        transform: scale(0.9);
        filter: brightness(1.2) !important;
    }
}

/* Features / Why Choose Us Section */
/* Flip Card System */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.flip-card {
    background-color: transparent;
    height: 420px;
    perspective: 1500px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flip-card-front {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    z-index: 2;
}

.flip-card-back {
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.flip-card-back h3,
.flip-card-back p {
    transform: translateZ(60px);
    position: relative;
    z-index: 5;
}

.flip-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 11, 26, 0.4), rgba(2, 11, 26, 0.9));
    z-index: -1;
}

.flip-card-back p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(2, 11, 26, 0.5);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.1), rgba(0, 210, 255, 0.1));
    border: 1px solid rgba(0, 132, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--primary);
    transition: 0.5s;
    position: relative;
}

.feature-card h3,
.flip-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* Image Logo Styles */
.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

nav.scrolled .nav-logo-img {
    height: 40px;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* Testimonials Slider */
.testimonials-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 20px;
    overflow: visible;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 30px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.testimonials-slider .testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    width: 350px;
    scroll-snap-align: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonials-slider .testimonial-card:hover {
    transform: scale(1.02);
}

/* Floating Review Button */
.floating-review-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 132, 255, 0.4);
    z-index: 999;
    cursor: pointer;
    text-decoration: none;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-review-btn.show {
    transform: scale(1);
    opacity: 1;
}

.floating-review-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 40px rgba(0, 132, 255, 0.6);
}

.review-tooltip {
    position: absolute;
    right: 80px;
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.floating-review-btn:hover .review-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        width: 320px;
    }
}

@media (max-width: 768px) {
    .testimonials-slider {
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .testimonials-slider .testimonial-card {
        flex: 0 0 280px;
        /* Standardize width */
        aspect-ratio: 1 / 1;
        /* Force square shape */
        height: 280px;
        /* Match height for perfect square */
        padding: 25px !important;
        margin-bottom: 0;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        scroll-snap-align: center;
    }

    .testimonials-slider .testimonial-card p {
        font-size: 0.85rem;
        /* Slightly smaller text to fit square */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        /* Limit lines to keep it neat */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .floating-review-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Premium Review Button Below slider */
.premium-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.1), rgba(0, 210, 255, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(100px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: btnPop 3s infinite ease-in-out;
}

.premium-review-btn i {
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(0, 132, 255, 0.4));
    font-size: 1.1rem;
    color: white;
    background: var(--primary);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.premium-review-btn:hover {
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 132, 255, 0.3);
    border-color: transparent;
}

.premium-review-btn:hover i {
    transform: translateX(8px);
    background: white;
    color: var(--primary);
    filter: drop-shadow(0 0 15px white);
}

@keyframes btnPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .premium-review-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Brand Grid V2 - Proper Presentation */
.trusted-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.brands-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.brand-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.brand-card-v2:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-logo-box {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(2, 11, 26, 0.1);
    overflow: hidden;
}

.brand-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .brands-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .brand-logo-box {
        width: 90px;
        height: 90px;
        padding: 15px;
    }

    .brand-name {
        font-size: 0.85rem;
    }
}

/* Partner 1:3 Layout Section */
.trusted-wrapper-1-3 {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.trusted-side-content {
    position: sticky;
    top: 120px;
}

.trusted-side-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.trusted-side-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .trusted-wrapper-1-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trusted-side-content {
        position: relative;
        top: 0;
        text-align: center;
    }

    .trusted-side-content .section-title {
        text-align: center;
    }
}

/* Partner Square Cards Section */
.partner-square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.partner-square-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    cursor: pointer;
}

/* Ensure perfect square regardless of aspect-ratio support */
.partner-square-card::after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.partner-square-card .card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    z-index: 2;
}

.partner-square-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 132, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s;
}

.partner-square-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 132, 255, 0.2);
}

.partner-square-card:hover::before {
    opacity: 1;
}

.partner-square-logo {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 2;
}

.partner-square-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-square-card:hover .partner-square-logo img {
    transform: scale(1.1);
}

.partner-square-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    text-align: center;
    z-index: 2;
    opacity: 0.9;
    transition: 0.3s;
}

.partner-square-card:hover .partner-square-name {
    color: var(--primary);
    opacity: 1;
}

@media (max-width: 768px) {
    .partner-square-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partner-square-card {
        padding: 20px;
    }

    .partner-square-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .partner-square-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Brand Partners Section */
.brands-section {
    padding: 120px 5%;
    background: var(--bg-deep);
    background-image: radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.05) 0%, transparent 80%);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}


.brands-header {
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .brands-header {
        margin-bottom: 40px;
    }
}

.brands-header .section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.brands-header h2 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    font-weight: 800;
}

.brands-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    line-height: 1.6;
}

.brands-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (min-width: 600px) {
    .brands-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 900px) {
    .brands-logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .brands-logo-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.brand-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Reduced padding for more logo space */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(2, 11, 26, 0.05);
    box-shadow: 0 10px 40px rgba(2, 11, 26, 0.03);
}

.brand-logo-wrapper {
    height: 110px;
    /* Increased from 70px */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.brand-logo-wrapper img {
    max-width: 88%;
    /* Much bigger logo */
    max-height: 85%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a12;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    opacity: 1;
    /* Fully visible */
    transform: translateY(0);
}

.brand-logo-item:hover {
    background: #ffffff;
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(2, 11, 26, 0.1);
}

.brand-logo-item:hover img {
    transform: scale(1.12);
    filter: brightness(1.1);
}

.brand-logo-item:hover span {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary);
}

@media (max-width: 600px) {
    .brands-logo-grid {
        gap: 15px;
        padding: 0 5px;
    }

    .brand-logo-item {
        padding: 12px 10px;
        border-radius: 16px;
        box-shadow: 0 5px 15px rgba(2, 11, 26, 0.02);
    }

    .brand-logo-wrapper {
        height: 80px;
    }

    .brand-logo-wrapper img {
        max-width: 92%;
        max-height: 90%;
    }
}


/* Staggered Entrance Animation Support */
[data-aos="fade-up-stagger"] {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition-property: transform, opacity;
}

[data-aos="fade-up-stagger"].aos-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Scroll Flip Animations */
[data-aos^="flip"] {
    backface-visibility: hidden;
    transition-duration: 1.2s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(-100deg);
    opacity: 0;
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(2500px) rotateY(0);
    opacity: 1;
}

[data-aos="flip-right"] {
    transform: perspective(2500px) rotateY(100deg);
    opacity: 0;
}

[data-aos="flip-right"].aos-animate {
    transform: perspective(2500px) rotateY(0);
    opacity: 1;
}

/* Flip-Scroll Animation */
[data-aos="flip-scroll"] .flip-card-inner {
    transform: rotateY(0deg);
    transform-origin: center;
}

[data-aos="flip-scroll"].aos-animate .flip-card-inner {
    transform: rotateY(180deg);
}

/* Enhanced 3D Effect for flipping */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Trusted Section V2 - Black & Blue Theme */
/* Trusted Section V2 - Black & Blue Theme */
.trusted-section-v2 {
    background: var(--bg-deep);
    background-image: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
    padding: 100px 5%;
    text-align: center;
}

.trusted-section-v2 .v2-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: -1.5px;
}

.trusted-section-v2 .v2-title .text-blue {
    color: var(--primary);
}

.trusted-section-v2 .v2-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.v2-logo-card {
    background: #ffffff;
    border-radius: 12px;
    aspect-ratio: 1.6 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(2, 11, 26, 0.06);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.v2-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 132, 255, 0.2);
}

.v2-logo-card img {
    max-width: 85%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .trusted-section-v2 {
        padding: 60px 15px 120px 15px;
    }

    .trusted-section-v2 .v2-title {
        margin-bottom: 40px;
        font-size: 2.2rem;
    }

    .trusted-section-v2 .v2-logo-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }

    .v2-logo-card {
        padding: 10px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .trusted-section-v2 .v2-logo-grid {
        gap: 8px !important;
    }

    .v2-logo-card {
        padding: 6px !important;
    }
}

/* Brand Marquee Section */
.brands-marquee-section {
    background: var(--bg-deep);
    background-image: radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.05) 0%, transparent 80%);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.brands-marquee-section .brands-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 5%;
}

.brands-marquee-section .brands-header h2 {
    color: #ffffff;
}

.brands-marquee-section .brands-header p {
    color: var(--text-muted);
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 50px;
    padding: 20px 0;
    position: relative;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 50px;
    min-width: 100%;
    align-items: center;
    justify-content: space-around;
    animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 50px));
    }
}

/* Pause on hover for better UX */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    width: 190px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 15px;
    /* Reduced padding for bigger logos */
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.marquee-item img {
    max-width: 85%;
    /* Bigger logo */
    max-height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.1);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    /* Always show original colors */
    opacity: 1;
    /* Always fully visible */
    transition: all 0.3s ease;
}

/* Responsive Marquee */
@media (max-width: 768px) {

    .marquee-container::before,
    .marquee-container::after {
        width: 60px;
        /* Minimal fade on mobile for clarity */
    }

    .marquee-item {
        width: 150px;
        height: 75px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .marquee-item img {
        max-width: 90%;
        max-height: 85%;
    }

    .marquee-content {
        gap: 25px;
        animation-duration: 25s;
    }

    @keyframes scroll-left {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(calc(-100% - 30px));
        }
    }
}

.legrand-logo {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px;
    padding: 12px !important;
}

/* About & Mission Background Section */
.about-vision-section {
    position: relative;
    background-color: var(--bg-deep);
    border-top: 1px solid rgba(0, 132, 255, 0.1);
    border-bottom: 1px solid rgba(0, 132, 255, 0.1);
    overflow: hidden;
}

.about-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 132, 255, 0.08) 0%, transparent 80%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .about-vision-section {
        background-attachment: scroll !important;
        background-image: none !important;
    }
}

/* Page Header Background (Services, Brands, etc.) */
.page-header {
    position: relative;
    padding: 120px 5% 80px;
    background-image: linear-gradient(rgba(5, 7, 10, 0.7), rgba(5, 7, 10, 0.5)), url('../assets/images/services_bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid rgba(0, 132, 255, 0.1);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.about-page-header {
    background-image: linear-gradient(rgba(5, 7, 10, 0.7), rgba(5, 7, 10, 0.5)), url('../assets/images/alexa_about_bg.png');
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .about-page-header {
        background-attachment: scroll !important;
        background-image: linear-gradient(rgba(5, 7, 10, 0.6), rgba(5, 7, 10, 0.4)), url('../assets/images/alexa_about_bg.png');
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 5% 40px;
    }

    .page-header h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .page-header p {
        font-size: 0.95rem;
    }
}

/* About Page Specific Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.feature-card {
    padding: 60px 40px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-grid h1 {
        margin-top: 20px;
    }

    .feature-card {
        min-height: 350px;
        padding: 40px 20px;
    }
}

/* ELV Solution Expert Banner */
.elv-banner-container {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    margin: 25px 0 15px 0;
    position: relative;
    z-index: 10;
}

.elv-banner {
    padding: 22px 60px;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.08), rgba(0, 80, 255, 0.12));
    border: 1px solid rgba(0, 132, 255, 0.3);
    border-radius: 100px;
    box-shadow: 0 15px 45px rgba(0, 132, 255, 0.12), inset 0 0 20px rgba(0, 132, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
}

.elv-banner h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #a5d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 132, 255, 0.3);
}

.elv-banner:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.15), rgba(0, 100, 255, 0.2));
    box-shadow: 0 25px 60px rgba(0, 132, 255, 0.3);
    border-color: rgba(0, 132, 255, 0.6);
}

@media (max-width: 768px) {
    .elv-banner-container {
        margin-top: -20px;
        padding: 10px 5%;
    }

    .elv-banner {
        padding: 15px 20px;
        border-radius: 30px;
    }

    .elv-banner h3 {
        font-size: 0.85rem;
        letter-spacing: 1px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

/* ELV Service Icons */
.elv-icons-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    padding: 0;
}

.elv-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.elv-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.elv-icon-box i {
    font-size: 1.6rem;
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.elv-icon-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.elv-icon-item:hover .elv-icon-box {
    border-color: rgba(0, 132, 255, 0.6);
    background: rgba(0, 132, 255, 0.1);
    transform: translateY(-8px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 132, 255, 0.2);
}

.elv-icon-item:hover i {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

.elv-icon-item:hover span {
    color: #ffffff;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .elv-icons-container {
        gap: 10px;
        margin-bottom: 35px;
        flex-wrap: nowrap;
        /* Force single line */
        justify-content: space-between;
        padding: 0 15px;
        max-width: 100%;
    }

    .elv-icon-item {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }

    .elv-icon-box {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border-width: 1px;
    }

    .elv-icon-box i {
        font-size: 1rem;
    }

    .elv-icon-item span {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
        transform: scale(0.9);
    }
}

/* Fix for blue phone numbers on iPhone/Mobile */
a[href^="tel"] {
    color: var(--text-white) !important;
    text-decoration: none !important;
}

.footer-contact li,
.contact-item p {
    color: var(--text-white) !important;
}

/* Keep icons blue as they were */
.footer-contact i,
.contact-item i {
    color: var(--primary) !important;
}
/* Smart Glass Card Adjustments */
#service-smart-glass .service-img-container {
    height: 320px; /* Making the picture area larger */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(47, 107, 255, 0.15) 0%, transparent 80%);
}

#service-smart-glass .service-img-container::after {
    background: linear-gradient(to bottom, transparent 40%, rgba(2, 11, 26, 0.6) 100%); /* Lighter overlay */
}

#service-smart-glass .card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#service-smart-glass:hover .card-poster {
    transform: scale(1.1);
}

/* Glass Status Labels */
.glass-status {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    z-index: 10;
    pointer-events: none;
    padding: 0 10%;
}

.glass-status span {
    background: rgba(2, 11, 26, 0.7);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(47, 107, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hide Glass Status on Video Hover */
.glass-status {
    transition: opacity 0.5s ease;
}

.video-hover-card:hover .glass-status {
    opacity: 0;
}
/* iPhone Specific Fixes & Optimizations */
@supports (padding: env(safe-area-inset-top)) {
    nav {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .nav-links {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .hero {
        padding-top: calc(80px + env(safe-area-inset-top));
    }

    .whatsapp-float, .floating-review-btn {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* Refined responsiveness for smaller iPhones (375px and below) */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .elv-banner h3 {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .elv-icons-container {
        gap: 5px;
    }

    .elv-icon-box {
        width: 36px;
        height: 36px;
    }

    .elv-icon-item span {
        font-size: 0.45rem;
    }
}

/* Ensure no horizontal scroll on any iPhone */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Prevent zoom on input focus for iOS */
input, select, textarea {
    font-size: 16px !important;
}
