/* 
   Titanium Robotics - Clean Industrial Theme
   Aesthetic: Apple / Stripe / Boston Dynamics — light, sharp, intentional
*/

/* Import Fonts: Geist (Headings), Inter (Body) */
/* Fonts set in header.php for performance (Inter + Geist) */

:root {
    /* Clean Industrial Palette */
    --bg-dark: #FBFBFB;
    /* Titanium White */
    --bg-card: #F5F5F7;
    /* Apple-style light grey */
    --text-main: #1D1D1F;
    /* Deep Slate */
    --text-muted: #6E6E73;
    /* Neutral grey */

    /* Primary & Accents */
    --primary: #007AFF;
    /* Electric Blue */
    --primary-dark: #0056CC;
    /* Deeper CTA blue */
    --secondary: #1D1D1F;
    /* Deep Slate */
    --accent: #5AC8FA;
    /* Sky highlight */
    --accent-rgb: 0, 122, 255;
    /* RGB for shadows */
    --success: #34C759;
    /* Apple green */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 86, 204, 0.15) 100%);
    --gradient-text: linear-gradient(to right, #007AFF, #5AC8FA);

    /* Glassmorphism & Borders */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    /* Subtle neutral border */
    --border-glow: rgba(0, 122, 255, 0.25);

    /* Effects */
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 40px -8px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(0, 122, 255, 0.15);
    --shadow-mega: 0 25px 60px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);

    /* Typography */
    --font-heading: 'Geist', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Geist', monospace;

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container-max: 1280px;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Global Selection & Scrollbar */
::selection {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-main);
}

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    border: 3px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 122, 255, 0.3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Creative Components */
.glass-panel {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth), border-color 0.4s ease;
    position: relative;
    /* overflow: hidden; Removed to fix Select dropdown issues */
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(0, 122, 255, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    /* Ensure clicks pass through */
}

.glass-panel:hover::before {
    opacity: 1;
}

.glass-panel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.2);
}

/* Modern Gradient Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
}

.btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.25), 0 1px 3px rgba(0, 122, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.35), 0 2px 6px rgba(0, 122, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(0, 122, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(0, 122, 255, 0.06);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* =============================================
   HEADER — Clean Full-Width (Agility Style)
============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 48px;
    background: #FFFFFF;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

header.scrolled {
    border-bottom-color: var(--glass-border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

header .container {
    max-width: var(--container-max);
    padding: 0;
    width: 100%;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    transition: height 0.4s var(--transition-smooth);
}

header.scrolled nav {
    height: 60px;
}

.logo img {
    height: 38px;
    width: auto;
    transition: all 0.4s var(--transition-smooth);
}

header.scrolled .logo img {
    height: 32px;
}

.logo:hover img {
    opacity: 0.8;
}

/* =============================================
   NAVIGATION LINKS — Agility Style
============================================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
    border-radius: 0;
    transition: color 0.25s ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    background: transparent;
}

.nav-links a:hover {
    color: var(--primary);
    background: transparent;
    transform: none;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    background: transparent;
}

/* Subtle underline on hover */
.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s var(--transition-smooth);
    transform-origin: center;
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
    transform: scaleX(1);
}

/* Don't show underline on CTA button */
.nav-links>li:last-child>a::after {
    display: none;
}

/* CTA Button — Last nav item */
.nav-links li:last-child a {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius-md);
    border: none;
    letter-spacing: 0.3px;
    transition: all 0.35s var(--transition-smooth);
    box-shadow: none;
    margin-left: 12px;
}

.nav-links li:last-child a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
}

/* =============================================
   DROPDOWN & MEGA MENU — Centered Panel
============================================= */
.nav-links li.dropdown {
    position: relative;
}

.dropbtn i {
    font-size: 0.55rem;
    margin-left: 6px;
    transition: transform 0.35s var(--transition-smooth);
    opacity: 0.5;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown:hover .dropbtn {
    color: var(--primary);
    background: transparent;
    font-weight: 500;
}

/* Invisible bridge between nav link and mega menu */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

/* Mega Menu — Centered dropdown panel */
.mega-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 760px;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    z-index: 1001;
    box-sizing: border-box;
}

/* Small arrow at top */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    border-radius: 3px 0 0 0;
    z-index: 0;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--glass-border);
    background: #FFFFFF;
}

.mega-item:hover {
    background: rgba(0, 122, 255, 0.03);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.06);
}

.mega-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Icon colour tints per service */
.ai-icon {
    background: rgba(139, 92, 246, 0.08);
    color: #8B5CF6;
}

.robo-icon {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
}

.drone-icon {
    background: rgba(234, 88, 12, 0.08);
    color: #EA580C;
}

.ml-icon {
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
}

.mega-item:hover .mega-icon {
    transform: scale(1.08);
}

.mega-item:hover .ai-icon {
    background: rgba(139, 92, 246, 0.15);
}

.mega-item:hover .robo-icon {
    background: rgba(0, 122, 255, 0.15);
}

.mega-item:hover .drone-icon {
    background: rgba(234, 88, 12, 0.15);
}

.mega-item:hover .ml-icon {
    background: rgba(16, 185, 129, 0.15);
}

.mega-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.mega-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.mobile-toggle {
    display: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: var(--bg-card);
    border-color: rgba(0, 122, 255, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 30% 50%, #FFFFFF 0%, #F1F5F9 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 122, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 122, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* =============================================
   PREMIUM HERO SECTION (Typography Focus)
============================================= */
.hero-premium {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 120px;
    /* Safe zone for the scroll indicator */
}

/* Subtle Animated Background Mesh */
.hero-premium-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(90, 200, 250, 0.03) 0%, transparent 40%);
    animation: rotateMesh 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotateMesh {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-premium-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* High-end small text label */
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 122, 255, 0.06);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

/* Monumental Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 32px;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #0056CC 0%, #007AFF 50%, #5AC8FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Refined Subtitle */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    max-width: 680px;
    margin: 0 auto 48px;
}

/* Premium CTAs */
.cta-group-centered {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn-premium-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--primary-dark);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 100px;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 86, 204, 0.25);
    border: 1px solid transparent;
}

.btn-premium-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    color: #FFFFFF;
}

.btn-premium-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #FFFFFF;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 100px;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-premium-secondary:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    color: var(--primary);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: arrow 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Mobile Hero */
@media (max-width: 992px) {

    /* Floating header mobile adjustments */
    header {
        left: 12px;
        right: 12px;
        width: auto;
        transform: none;
        padding: 0 12px;
    }

    header .container {
        padding: 0 8px;
    }

    header.scrolled {
        padding: 0 12px;
        width: auto;
        transform: none;
        max-width: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
        height: auto;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 300px;
    }

    .hero p.lead {
        margin: 0 auto 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* =============================================
   PREMIUM BENTO GRID (Expertise)
============================================= */
.services-premium-section {
    padding: 120px 0;
    background: #FFFFFF;
}

.section-title-premium {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
}

.bento-premium-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-premium-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-premium-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

.bento-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.bento-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.bento-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.bento-premium-card:hover .bento-arrow {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: rotate(-45deg);
    /* Elegant interaction */
}

.bento-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bento-bottom .bento-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.bento-bottom .bento-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid Spanning */
.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.row-2 {
    grid-row: span 2;
    min-height: 460px;
}

@media (max-width: 900px) {

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }

    .row-2 {
        min-height: auto;
    }
}

/* =============================================
   SHOWCASE GALLERY — Horizontal Scroll Cards
============================================= */
.showcase-section {
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

.gallery-track-wrapper {
    overflow: visible;
    padding: 20px 0;
}

.gallery-track {
    display: flex;
    gap: 32px;
    padding: 0 max(32px, calc((100vw - var(--container-max)) / 2));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

/* --- Premium Project Card --- */
.showcase-premium-section {
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-body);
}

.gallery-premium-track {
    display: flex;
    gap: 40px;
    padding: 0 max(40px, calc((100vw - var(--container-max)) / 2));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 40px;
}

.gallery-premium-track::-webkit-scrollbar {
    display: none;
}

.project-card-premium {
    flex: 0 0 460px;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.project-card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Card Image Wrapper */
.project-premium-img {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-card);
}

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

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

/* Meta Tag Badge */
.premium-meta-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Project Info */
.project-premium-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-premium-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-premium-info p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

/* Premium Button Link */
.btn-premium-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.btn-premium-link i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-link:hover i {
    transform: translateX(4px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* =============================================
   SLIDE-OVER PANEL — Case Study Detail
============================================= */
.panel-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
}

.slide-panel.active {
    transform: translateX(0);
}

.close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s;
    z-index: 10;
}

.close-panel:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.panel-content {
    padding: 0;
}

.panel-header {
    padding: 40px 36px 24px;
}

.panel-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.panel-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    line-height: 1.2;
}

.panel-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.panel-body {
    padding: 32px 36px 48px;
}

.panel-body h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.panel-body p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* =============================================
   RESPONSIVE — Showcase & Panel
============================================= */
@media (max-width: 768px) {
    .showcase-section {
        padding: 80px 0;
    }

    .project-card-cinematic {
        flex: 0 0 300px;
        min-height: 400px;
    }

    .project-img-wrapper {
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.15rem;
    }

    .slide-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .panel-header {
        padding: 30px 24px 20px;
    }

    .panel-header h2 {
        font-size: 1.5rem;
    }

    .panel-img {
        height: 200px;
    }

    .panel-body {
        padding: 24px 24px 40px;
    }
}

/* Services Section */
.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-img {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.service-h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.service-p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Page Headers */
.page-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%),
        url('../img/page-bg.jpg') center/cover;
    padding: 180px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}


/* Cards (Projects/Team/Blog) */
.project-grid,
.team-grid,
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.project-card,
.team-card,
.blog-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

.project-card:hover,
.team-card:hover,
.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.project-img,
.blog-card-img {
    height: 260px;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.project-img img,
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.project-card:hover img,
.blog-card:hover img {
    transform: scale(1.05);
}

.project-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0s;
    z-index: 2;
    pointer-events: none;
}

.project-card-cinematic:hover .project-img-wrapper::after {
    left: 200%;
    transition: left 0.8s ease-in-out;
}

.project-content,
.blog-card-content,
.team-card {
    padding: 32px;
    color: var(--text-main);
}

/* Team Avatar */
.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 24px;
    padding: 5px;
    background: var(--gradient-main);
    /* Gradient border */
}

.team-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #fff;
    /* Inner spacing */
}

/* Footer */
/* --- High-Tech Light Footer --- */
.million-dollar-footer {
    background: var(--bg-card);
    position: relative;
    padding: 100px 0 40px;
    margin-top: 150px;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    color: var(--text-main);
}

.million-dollar-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(0, 122, 255, 0.04), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.million-dollar-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.25);
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 50px;
    margin-bottom: 24px;
    filter: none;
    /* No brightness adjust needed for dark text logo */
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-card);
}

.social-btn:hover {
    background: var(--gradient-main);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
    border-color: transparent;
}

.footer-col h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
    text-shadow: none;
}

.footer-col ul li a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    left: -10px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    align-items: flex-start;
}

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

/* Footer Bottom with Developer Badge */
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.developer-badge {
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}

.developer-badge:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.dev-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-link {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.dev-link:hover {
    color: var(--primary-dark);
}

.legal-links {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
}

.legal-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --- Enhanced Homepage Sections --- */
.drone-card,
.iot-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.drone-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.card-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(15deg);
    transition: all 0.5s ease;
    z-index: 0;
}

.drone-card:hover .card-bg-icon,
.iot-card:hover .card-bg-icon {
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(0deg) scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drone-card:hover .icon-wrapper {
    background: var(--secondary);
    color: #fff;
    border-color: transparent;
}

.iot-card:hover .icon-wrapper {
    background: var(--accent);
    color: #000;
    border-color: transparent;
}

.text-link {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.drone-card:hover .text-link,
.iot-card:hover .text-link {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Section */
.trust-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-card);
}

.section-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 600;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

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

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

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: default;
    opacity: 0.6;
}

.partner-logo:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    opacity: 1;
}

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

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

/* Mobile Menu Overlay - Hidden on Desktop */
.mobile-menu-overlay {
    display: none;
}

/* Fix mega menu left/right at smaller paddings */
@media (max-width: 1200px) {
    .mega-menu {
        left: -32px;
        right: -32px;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        left: -20px;
        right: -20px;
    }
}

/* Mobile Adaptation — Header responsive padding */
@media (max-width: 1200px) {
    header {
        padding: 0 32px;
    }

    .mega-menu-content {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .mega-menu-content {
        padding: 0 20px;
    }
}

/* Mobile Adaptation */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
        /* Show hamburger */
        z-index: 1002;
        /* Above menu */
    }

    .nav-links {
        display: none;
        /* Hide original nav links */
    }

    /* New Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #FFFFFF;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 24px;
        overflow-y: auto;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Mobile Header (Logo + Close) */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-bottom: 20px;
    }

    .mobile-logo-link img {
        height: 60px;
        /* Increased logo size */
        width: auto;
    }

    /* Mobile Body */
    .mobile-menu-body {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        width: 100%;
    }

    .mobile-nav-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
    }

    .mobile-nav-container a {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: -1px;
        color: var(--text-main);
        text-decoration: none;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .mobile-menu-overlay.active .mobile-nav-container a {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered Delay for links */
    .mobile-menu-overlay.active .mobile-nav-container a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu-overlay.active .mobile-nav-container a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .mobile-menu-overlay.active .mobile-nav-container a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .mobile-menu-overlay.active .mobile-nav-container a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .mobile-menu-overlay.active .mobile-nav-container a:nth-child(5) {
        transition-delay: 0.3s;
    }

    /* Mobile Sub-menu Styles */
    .mobile-sub-nav {
        display: flex;
        flex-direction: column;
        gap: 15px !important;
        margin-top: 0;
        margin-bottom: 20px;
        background: rgba(0, 122, 255, 0.05);
        border-radius: 12px;
        padding: 15px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Sub-link styles (use !important to override main link styles) */
    .mobile-sub-link {
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: var(--text-muted) !important;
        transform: none !important;
        opacity: 1 !important;
        text-decoration: none;
    }

    .mobile-sub-link:hover {
        color: var(--primary) !important;
        transform: translateX(5px) !important;
    }

    .close-mobile-menu {
        position: static;
        /* Reset absolute */
        background: rgba(0, 0, 0, 0.05);
        border: none;
        font-size: 1.2rem;
        color: var(--text-main);
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .close-mobile-menu:hover {
        background: #eee;
        transform: rotate(90deg);
        color: var(--primary);
    }

    /* Mobile Footer */
    .mobile-menu-footer {
        width: 100%;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .mobile-socials a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-main);
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .mobile-socials a:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
        transform: translateY(-3px);
    }

    .mobile-contact-email {
        font-size: 1rem;
        color: var(--text-muted);
        font-weight: 500;
        transition: color 0.3s;
    }

    .mobile-contact-email:hover {
        color: var(--primary);
    }





    /* Mega Menu Adjustment for Mobile */
    .mega-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        transform: none;
        display: none;
        /* Hidden by default, toggled via JS */
    }

    .dropdown:hover .mega-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .dropdown.active .mega-menu {
        display: block;
    }

    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
        /* Rotate arrow */
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .mega-item {
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 10px;
    }

    .mega-menu::before {
        display: none;
    }

    /* Footer Adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .brand-desc {
        margin: 0 auto 30px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        /* Reduced from default */
        padding-top: 20px;
    }

    .developer-badge {
        width: auto;
        /* Don't stretch full width */
        max-width: none;
        justify-content: center;
        padding: 4px 12px;
        /* Compact padding */
        font-size: 0.75rem;
    }

    .dev-text {
        font-size: 0.7rem;
    }

    .dev-link {
        font-size: 0.8rem;
    }

    .copyright,
    .legal-links {
        font-size: 0.8rem;
        opacity: 0.7;
    }

    /* General Layout */
    .page-header {
        padding-top: 160px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .span-8,
    .span-4,
    .span-6 {
        grid-column: span 1;
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .service-img {
        transform: none;
        width: 100%;
    }
}

/* --- New Responsive Utilities & Classes (Replacements for Inline Styles) --- */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.ieee-link {
    color: #fff;
    text-decoration: underline;
}

.custom-border-btn {
    border: 2px solid;
    border-image: var(--gradient-main) 1;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Prevent blob overflow */
}

.decorative-blob {
    position: absolute;
    top: 20%;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--primary);
    /* Deep Purple */
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Bento Grid Images & Icons */
.bento-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bento-icon-cyan {
    color: var(--accent);
}

.bento-icon-purple {
    color: var(--primary);
}

.bento-icon-orange {
    color: #f97316;
    /* Orange */
}

.bento-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.bento-desc {
    opacity: 0.8;
    max-width: 90%;
    /* Adjusted for better fit */
}

.bento-desc-small {
    opacity: 0.8;
}

.text-link-cyan {
    color: var(--accent);
}

/* =============================================
   PAGE HEADER & BREADCRUMBS
============================================= */
.page-header {
    padding: 180px 0 80px;
    /* Increased top padding to clear fixed header */
    text-align: center;
    background: linear-gradient(180deg, #F1F5F9 0%, var(--bg-dark) 100%);
    position: relative;
}

.service-hero {
    padding: 180px 0 100px;
    /* Consistent top padding */
    text-align: center;
    position: relative;
    /* Backgrounds handled by individual pages or specific classes */
}

.page-header h1,
.service-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    /* Increased from 12px */
    position: relative;
    z-index: 2;
}

.page-header-subtitle,
.service-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    /* Increased width for better readability */
    margin: 0 auto 30px;
    /* Added bottom margin for spacing before breadcrumbs */
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Specific override for service hero text color if needed, 
   but usually handled by utility classes or inline styles 
   in the PHP files. We'll ensure defaults are good. */
.service-hero p {
    color: rgba(255, 255, 255, 0.8);
    /* Assuming dark service backgrounds */
}

/* Service Hero Icon - Ensure Spacing */
.service-hero-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    display: inline-block;
}



/* Breadcrumb container — when inside page-header or service-hero,
   strip its own .container to avoid double-nesting */
.breadcrumb-container {
    padding: 0;
    margin-top: 25px !important;
    /* Force spacing */
    position: relative;
    z-index: 99;
    /* Very high z-index */
    width: 100%;
    clear: both;
    /* Ensure it clears any floating elements */
}

.page-header .breadcrumb-container .container,
.service-hero .breadcrumb-container .container {
    max-width: none;
    padding: 0;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #000 !important;
    /* Force Black */
    flex-wrap: wrap;
    font-weight: 500;
}

.breadcrumb a {
    color: #000 !important;
    /* Force Black */
    opacity: 0.7;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.breadcrumb .separator {
    opacity: 0.4;
    font-weight: 300;
    color: #000 !important;
}

.breadcrumb span:last-child {
    color: #000 !important;
    font-weight: 700;
    opacity: 1;
}

/* Breadcrumbs inside service-hero (dark bg) — override to white ONLY if needed, 
   but user asked for Black. However, on dark background black is invisible.
   I will set it to White with !important to override the specific block above if needed.
   Wait, if I put !important on the block above, I need !important here too.
*/

.service-hero .breadcrumb {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.service-hero .breadcrumb a {
    color: #fff !important;
    opacity: 0.9;
}

.service-hero .breadcrumb a:hover {
    color: var(--accent) !important;
    opacity: 1;
}

.service-hero .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6) !important;
}

.service-hero .breadcrumb span:last-child {
    color: #fff !important;
    font-weight: 700;
}

/* =============================================
   CONTACT PAGE LAYOUT
============================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-left h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-details h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-details a {
    color: var(--primary);
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--primary-dark);
}

.contact-social-large {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-btn-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.social-btn-large:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

/* =============================================
   FORM CONTROLS
============================================= */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-dark);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: #fff;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' 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 16px center;
    padding-right: 44px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =============================================
   MAP SECTION
============================================= */
.map-section {
    margin-top: 0;
}

.map-container {
    width: 100%;
    height: 400px;
    display: block;
    border: none;
    filter: grayscale(20%) contrast(1.05);
}

/* Contact Layout Mobile */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .map-container {
        height: 280px;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    text-align: center;
}

.contact-panel {
    padding: 64px;
    max-width: 800px;
    margin: 0 auto;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradient-main);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--radius-xl);
    position: relative;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 122, 255, 0.04) 0%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
}

.contact-title {
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Extra Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        /* Smaller hero text on mobile */
    }

    .hero p.lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-panel {
        padding: 40px 20px;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Service Hero Section */
.service-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            var(--bg-dark) 100%);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    /* Space for fixed header/breadcrumbs */
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    letter-spacing: -1px;
}

/* Breadcrumb Styling */
.breadcrumb {
    position: absolute;
    top: 130px;
    /* Standardized top position for all pages */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1240px;
    padding: 0 24px;
    z-index: 10;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly brighter for better visibility */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* improved contrast */
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 122, 255, 0.4);
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

/* Ensure container is relative for absolute elements if needed, but breadcrumb is absolute to body/main */
.service-hero .container,
.page-header .container {
    position: relative;
    /* padding-top removed to avoid pushing content down unnecessarily */
}

.service-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    text-shadow: none;
}

.service-hero-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    display: inline-block;
    filter: drop-shadow(0 10px 10px rgba(0, 122, 255, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Mobile Adaptation for Service Hero */
@media (max-width: 768px) {
    .service-hero {
        height: auto;
        min-height: 0;
        padding: 180px 0 80px;
        /* Adjust padding for mobile header */
    }

    .service-hero h1 {
        font-size: 2.5rem;
    }

    .service-hero p {
        font-size: 1rem;
    }

    .service-hero-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 0;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary);
}

.nav-item:hover i {
    transform: translateY(-3px);
}

/* =============================================
   HERO MODERN — Premium Page Header
============================================= */
.hero-modern {
    position: relative;
    padding: 120px 0 120px;
    background-size: cover;
    background-position: center;
    background-color: #0d0d12;
    color: #fff;
    overflow: hidden;
    margin-top: 0;
    /* Blend with header */
}

/* Overlay for text readability */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(9, 9, 11, 0.8) 100%);
    z-index: 1;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-modern-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 122, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-modern h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom right, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-modern p {
    font-size: 1.25rem;
    max-width: 680px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
}

/* Breadcrumbs in Hero */
.hero-breadcrumb-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    /* Glass effect */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-breadcrumb a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.hero-breadcrumb a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}

.hero-breadcrumb .separator {
    opacity: 0.3;
}

.hero-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* Animations included in case missing */
@keyframes float {

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

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-modern {
        padding: 100px 0 100px;
    }

    .hero-modern h1 {
        font-size: 2.5rem;
    }

    .hero-modern p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-modern-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* =============================================
   AI SERVICE PAGE — Middle Sections
============================================= */

/* --- Vision Demo Section --- */
.ai-vision-section {
    background: linear-gradient(180deg, #F8FAFC 0%, var(--bg-dark) 100%);
}

.ai-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-vision-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.ai-vision-text p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.ai-vision-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-vision-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 12px 18px;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition-smooth);
}

.ai-vision-features li:hover {
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.06);
    transform: translateX(4px);
}

.ai-vision-features li i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Vision Demo Box */
.ai-vision-demo {
    position: relative;
    background: #0d0d14;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
}

.ai-vision-demo .vision-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 122, 255, 0.015) 2px,
            rgba(0, 122, 255, 0.015) 4px);
    pointer-events: none;
    z-index: 2;
}

.ai-vision-demo .scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 122, 255, 0.3);
    z-index: 3;
    animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 85%;
    }
}

.ai-vision-demo .face-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    animation: boxPulse 2s ease-in-out infinite;
}

.ai-vision-demo .face-box i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.15);
}

@keyframes boxPulse {

    0%,
    100% {
        border-color: var(--primary);
        box-shadow: 0 0 10px rgba(0, 122, 255, 0.2);
    }

    50% {
        border-color: var(--accent);
        box-shadow: 0 0 25px rgba(0, 122, 255, 0.4);
    }
}

.ai-vision-hud {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.72rem;
    line-height: 1.8;
    text-align: right;
    z-index: 5;
    padding: 10px 14px;
    background: rgba(0, 122, 255, 0.06);
    border: 1px solid rgba(0, 122, 255, 0.12);
    border-radius: 8px;
}

.ai-vision-hud-top {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-vision-hud-top .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34C759;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* --- Capabilities Grid --- */
.ai-capabilities-section {
    background: var(--bg-card);
}

.ai-capabilities-section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.ai-capabilities-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 56px;
}

.ai-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ai-capability-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
}

.ai-capability-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
}

.ai-capability-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s var(--transition-smooth);
}

.ai-capability-card:hover img {
    transform: scale(1.05);
}

.ai-capability-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.ai-capability-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, #FFFFFF, transparent);
    z-index: 1;
}

.ai-capability-body {
    padding: 24px 28px 32px;
    text-align: center;
}

.ai-capability-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 122, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    transition: all 0.4s var(--transition-bounce);
}

.ai-capability-card:hover .ai-capability-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.ai-capability-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ai-capability-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* --- Tech Marquee --- */
.ai-tech-section {
    padding: 80px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.ai-tech-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.ai-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

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

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

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

.ai-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    margin: 0 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ai-marquee-item:hover {
    color: var(--primary);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.08);
    background: rgba(0, 122, 255, 0.03);
}

.ai-marquee-item i {
    font-size: 1.3rem;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ai-marquee-item:hover i {
    opacity: 1;
}

/* --- Responsive: AI Service Page Sections --- */
@media (max-width: 1024px) {
    .ai-vision-grid {
        gap: 40px;
    }

    .ai-capabilities-grid {
        gap: 20px;
    }

    .ai-capability-card img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .ai-vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-vision-text h2 {
        font-size: 1.8rem;
    }

    .ai-vision-demo {
        aspect-ratio: 16/10;
        max-width: 480px;
        margin: 0 auto;
    }

    .ai-capabilities-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .ai-capabilities-section h2 {
        font-size: 1.8rem;
    }

    .ai-tech-section {
        padding: 50px 0;
    }
}

/* =============================================
   ML SERVICE PAGE — Process Flowchart
============================================= */

.ml-process-section {
    background: var(--bg-card);
}

.ml-process-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.ml-process-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 64px;
}

.ml-process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

/* Horizontal connector line */
.ml-process-flow::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 0;
    opacity: 0.3;
}

.ml-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.ml-step-badge {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-card);
}

.ml-step-badge i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s var(--transition-bounce);
}

.ml-process-step:hover .ml-step-badge {
    border-color: rgba(0, 122, 255, 0.3);
    background: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.2);
}

.ml-process-step:hover .ml-step-badge i {
    color: #FFFFFF;
    transform: scale(1.1);
}

.ml-step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.ml-process-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ml-process-step p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 220px;
    margin: 0 auto;
}

/* --- Responsive: ML Process --- */
@media (max-width: 1024px) {
    .ml-process-flow {
        gap: 16px;
    }

    .ml-process-step {
        padding: 0 12px;
    }

    .ml-step-badge {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .ml-step-badge i {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .ml-process-flow {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
        gap: 40px;
    }

    .ml-process-flow::before {
        top: 0;
        bottom: 0;
        left: 48px;
        right: auto;
        width: 2px;
        height: 100%;
    }

    .ml-process-step {
        flex-direction: row;
        text-align: left;
        padding: 0;
        gap: 24px;
    }

    .ml-step-badge {
        flex-shrink: 0;
        width: 72px;
        height: 72px;
        margin-bottom: 0;
    }

    .ml-process-step h3 {
        margin-bottom: 4px;
    }

    .ml-process-step p {
        max-width: none;
    }

    .ml-process-section h2 {
        font-size: 1.8rem;
    }
}

/* =============================================
   DRONE SERVICE PAGE — Middle Sections
============================================= */

/* --- Drone Feature Cards --- */
.drone-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.drone-feature-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
}

.drone-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
}

.drone-feature-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.drone-feature-card .card-img-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s var(--transition-smooth);
}

.drone-feature-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.drone-feature-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, #FFFFFF, transparent);
    z-index: 1;
}

.drone-feature-body {
    padding: 24px 28px 32px;
    text-align: center;
}

.drone-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 122, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 18px;
    transition: all 0.4s var(--transition-bounce);
}

.drone-feature-card:hover .drone-feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.drone-feature-body h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.drone-feature-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* --- Drone Specs Table --- */
.drone-specs-section {
    background: var(--bg-card);
}

.drone-specs-section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.drone-specs-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 48px;
}

.drone-specs-table-wrap {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.drone-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.drone-specs-table thead {
    background: var(--primary);
}

.drone-specs-table thead th {
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    text-align: left;
    border: none;
}

.drone-specs-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s ease;
}

.drone-specs-table tbody tr:last-child {
    border-bottom: none;
}

.drone-specs-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

.drone-specs-table tbody td {
    padding: 18px 24px;
    font-size: 0.98rem;
    color: var(--text-muted);
    border: none;
}

.drone-specs-table tbody td:first-child {
    font-weight: 700;
    color: var(--text-main);
}

.drone-specs-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.drone-specs-table tbody tr:nth-child(even):hover {
    background: rgba(0, 122, 255, 0.03);
}

/* --- Deployed Units Gallery --- */
.drone-fleet-section h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.drone-fleet-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 48px;
}

.drone-fleet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.drone-fleet-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all 0.5s var(--transition-smooth);
    padding: 0;
}

.drone-fleet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 122, 255, 0.15);
}

.drone-fleet-visual {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8EEFF 100%);
    position: relative;
    overflow: hidden;
}

.drone-fleet-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
}

.drone-fleet-visual i {
    font-size: 2.8rem;
    color: var(--primary);
    opacity: 0.6;
    transition: all 0.4s var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.drone-fleet-card:hover .drone-fleet-visual i {
    opacity: 1;
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.25));
}

.drone-fleet-info {
    padding: 20px 20px 24px;
}

.drone-fleet-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.drone-fleet-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Responsive: Drone Page Sections --- */
@media (max-width: 1024px) {
    .drone-features-grid {
        gap: 20px;
    }

    .drone-fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .drone-specs-table thead th,
    .drone-specs-table tbody td {
        padding: 14px 18px;
    }
}

@media (max-width: 768px) {
    .drone-features-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .drone-fleet-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .drone-specs-section h2,
    .drone-fleet-section h2 {
        font-size: 1.8rem;
    }

    .drone-specs-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .drone-specs-table {
        min-width: 520px;
    }
}

@media (max-width: 480px) {
    .drone-fleet-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* =============================================
   SEO ARTICLE CONTENT SECTIONS — Premium UI
============================================= */
.seo-content {
    padding: 100px 0 80px;
    position: relative;
    background: var(--bg-dark);
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.25), transparent);
}

.seo-content .container {
    max-width: 960px;
}

/* ---- Typography ---- */
.seo-content h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 60px 0 22px;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.25;
    position: relative;
    padding-bottom: 16px;
}

.seo-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), rgba(0, 122, 255, 0.3));
}

.seo-content h2:first-of-type {
    margin-top: 0;
}

.seo-content h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-main);
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-content h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.seo-content p {
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 22px;
}

/* ---- Lists ---- */
.seo-content ul,
.seo-content ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 28px;
}

.seo-content ul li,
.seo-content ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    font-size: 1.03rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.seo-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.3);
}

/* ---- Links ---- */
.seo-content a:not(.btn) {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.seo-content a:not(.btn):hover {
    border-bottom-color: var(--primary);
    color: var(--primary-dark);
    text-decoration: none;
}

.seo-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ---- Intro highlight block ---- */
.seo-intro {
    font-size: 1.15rem !important;
    line-height: 1.95 !important;
    color: var(--text-main) !important;
    border-left: 4px solid var(--primary);
    padding: 28px 30px;
    background: rgba(0, 122, 255, 0.04);
    border-radius: 0 16px 16px 0;
    margin-bottom: 50px !important;
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-left: 4px solid var(--primary);
    position: relative;
}

.seo-intro::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* =============================================
   FAQ SECTION — Premium Accordion
============================================= */
.faq-section {
    margin-top: 70px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-section>h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-section>h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 122, 255, 0.25);
    background: rgba(0, 122, 255, 0.03);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.faq-item.active {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.04);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    cursor: pointer;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
    gap: 16px;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: rgba(0, 122, 255, 0.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 26px 24px;
}

.faq-answer p {
    font-size: 0.99rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* =============================================
   SEO CTA — Premium Card Block
============================================= */
.seo-cta {
    margin-top: 70px;
    padding: 60px 48px;
    text-align: center;
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06) 0%, rgba(0, 122, 255, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.seo-cta::before {
    content: '';
    position: absolute;
    top: -80%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.06) 0%, transparent 55%);
    pointer-events: none;
    animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {

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

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

.seo-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.25), transparent, rgba(0, 122, 255, 0.12));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.seo-cta h2 {
    margin: 0 0 16px !important;
    font-size: 1.9rem;
    position: relative;
    padding-bottom: 0;
    color: var(--text-main);
}

.seo-cta h2::after {
    display: none;
}

.seo-cta p {
    margin-bottom: 32px !important;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-size: 1.08rem;
    color: var(--text-muted);
}

.seo-cta .btn {
    position: relative;
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ---- Image suggestions (hidden in production) ---- */
.seo-media-placeholder {
    display: none;
}

/* =============================================
   FAQ SECTION
============================================= */
.faq-section {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    user-select: none;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    width: 32px;
    height: 32px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}

.faq-item.active {
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.08);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 30px 24px;
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* =============================================
   SEO CONTENT — Tablet (max 1024px)
============================================= */
@media (max-width: 1024px) {
    .seo-content {
        padding: 80px 0 60px;
    }

    .seo-content h2 {
        font-size: 1.85rem;
        margin: 48px 0 18px;
    }

    .seo-content h3 {
        font-size: 1.3rem;
    }
}

/* =============================================
   SEO CONTENT — Mobile (max 768px)
============================================= */
@media (max-width: 768px) {
    .seo-content {
        padding: 60px 0 50px;
    }

    .seo-content .container {
        padding: 0 20px;
    }

    .seo-content h2 {
        font-size: 1.55rem;
        margin: 40px 0 16px;
        padding-bottom: 14px;
    }

    .seo-content h2::after {
        width: 45px;
        height: 2px;
    }

    .seo-content h3 {
        font-size: 1.18rem;
        margin: 30px 0 12px;
    }

    .seo-content h3::before {
        height: 18px;
        width: 3px;
    }

    .seo-content p {
        font-size: 0.97rem;
        line-height: 1.8;
    }

    .seo-content ul li,
    .seo-content ol li {
        font-size: 0.96rem;
        padding-left: 24px;
    }

    .seo-intro {
        padding: 20px 22px;
        font-size: 1.02rem !important;
        line-height: 1.8 !important;
        border-radius: 0 12px 12px 0;
        margin-bottom: 36px !important;
    }

    .faq-section {
        margin-top: 50px;
        padding-top: 40px;
    }

    .faq-item {
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 0.97rem;
        gap: 12px;
    }

    .faq-question i {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 18px;
    }

    .faq-answer p {
        font-size: 0.93rem;
    }

    .seo-cta {
        padding: 40px 24px;
        border-radius: 16px;
        margin-top: 50px;
    }

    .seo-cta h2 {
        font-size: 1.45rem;
    }

    .seo-cta p {
        font-size: 0.98rem;
    }

    .seo-cta .btn {
        font-size: 0.98rem;
        padding: 12px 28px;
    }
}

/* =============================================
   SEO CONTENT — Small Mobile (max 480px)
============================================= */
@media (max-width: 480px) {
    .seo-content {
        padding: 45px 0 40px;
    }

    .seo-content .container {
        padding: 0 16px;
    }

    .seo-content h2 {
        font-size: 1.35rem;
    }

    .seo-content h3 {
        font-size: 1.08rem;
    }

    .seo-intro {
        padding: 16px 18px;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 0.93rem;
    }

    .seo-cta {
        padding: 32px 20px;
    }

    .seo-cta h2 {
        font-size: 1.3rem;
    }
}

/* =============================================
   PREMIUM TRUST SIGNALS
============================================= */
.trust-premium-section {
    padding: 80px 0;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-label-premium {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.marquee-premium-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Elegant fade out on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-premium-content {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: marqueePremiumScroll 30s linear infinite;
}

.partner-premium-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: #000000;
    opacity: 0.3;
    letter-spacing: -0.02em;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.partner-premium-logo:hover {
    opacity: 0.8;
}

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

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

/* =============================================
   PREMIUM CONTACT CTA
============================================= */
.contact-premium-section {
    padding: 120px 0;
    background: #FAFAFA;
}

.premium-cta-box {
    background: var(--primary-dark);
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
    border-radius: 32px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 86, 204, 0.2);
}

/* Decorative Inner Glow */
.premium-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(90, 200, 250, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.contact-premium-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.contact-premium-title .text-gradient {
    background: linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-premium-desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.premium-cta-box .btn-premium-primary {
    background: #FFFFFF;
    color: var(--primary-dark);
    position: relative;
    z-index: 2;
}

.premium-cta-box .btn-premium-primary:hover {
    background: var(--bg-body);
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}