/*
============================================================
AvyaWorld - Premium Design System CSS
Version: 2.0 | Node.js/Vercel Aesthetic
Tailwind CDN handles utility classes. This file = CUSTOM ONLY.
============================================================
*/

/* ============================================================
   1. CSS DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand Colors - Modern SaaS */
    --primary:       #2563EB;      /* Blue */
    --primary-dark:  #1D4ED8;
    --primary-light: #EFF6FF;
    --secondary:     #06B6D4;      /* Cyan */
    --accent:        #F97316;      /* Orange */
    --success:       #10B981;      /* Emerald */
    --purple:        #8B5CF6;      /* Violet */

    /* Neutrals */
    --dark:          #0F172A;
    --dark-2:        #1E293B;
    --gray:          #64748B;
    --light:         #F8FAFC;
    --white:         #ffffff;
    --border:        #E2E8F0;
    --border-2:      #CBD5E1;

    /* Typography */
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows - Premium, soft */
    --shadow-sm:     0 2px 4px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 8px rgba(0,0,0,0.04), 0 12px 24px rgba(0,0,0,0.04);
    --shadow-lg:     0 8px 16px rgba(0,0,0,0.04), 0 24px 48px rgba(0,0,0,0.04);
    --shadow-xl:     0 12px 24px rgba(0,0,0,0.05), 0 32px 64px rgba(0,0,0,0.05);
    --shadow-primary:0 4px 14px 0 rgba(0,112,243,0.39);

    /* Radii */
    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     12px;
    --radius-xl:     16px;
    --radius-full:   9999px;

    /* Transitions */
    --transition:    all 0.2s ease;
    --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   2. BASE & RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Removed old mobile menu CSS overrides since we now use clean Tailwind classes directly */

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x hidden causes mega menu to be clipped; controlled by .navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

img, video, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, [role="button"] { cursor: pointer; }
ul { list-style: none; }

/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-heading { font-family: var(--font-heading) !important; }

/* ============================================================
   4. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes blob {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.1); }
    66%       { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.4); }
    50%       { box-shadow: 0 0 40px rgba(37,99,235,0.7); }
}

@keyframes float-up {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes float-down {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(12px); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-border {
    0%   { transform: translateX(-50%) translateY(-50%) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-50%) scale(1.6); opacity: 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   5. ANIMATION UTILITY CLASSES
   ============================================================ */
.animate-blob          { animation: blob 7s infinite; }
.animation-delay-2000  { animation-delay: 2s; }
.animation-delay-4000  { animation-delay: 4s; }
.animate-float-up      { animation: float-up 3s ease-in-out infinite; }
.animate-float-down    { animation: float-down 3s ease-in-out infinite; }
.animate-spin-slow     { animation: spin-slow 12s linear infinite; }
.animate-pulse-glow    { animation: pulse-glow 2s ease-in-out infinite; }
.animate-fade-in-up    { animation: fadeInUp 0.6s ease forwards; }
.animate-scale-in      { animation: scaleIn 0.4s ease forwards; }

/* Legacy animation class names (preserve backward compatibility) */
.animate1 { animation: float-up 2s ease-in-out infinite alternate; }
.animate2 { animation: float-down 2s ease-in-out infinite alternate; }
.animate3 { animation: float-up 4s ease-in-out infinite alternate; }

/* AOS-compatible reveal classes (used in data-aos) */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   6. BACKGROUND EFFECTS
   ============================================================ */
.bg-light    { background-color: var(--light) !important; }
.bg-dark     { background-color: var(--dark) !important; }
.bg-white    { background-color: var(--white) !important; }
.bg-primary  { background-color: var(--primary) !important; }
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--purple));
}
.bg-gradient-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* Glass effect */
.glass {
    background: rgba(255,255,255,0.70);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
}
.glass-dark {
    background: rgba(0,0,0,0.70);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
}

/* Shimmer loading skeleton */
.shimmer-bg {
    background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hero text animation (backward compat) */
.hero-text { animation: fadeInUp 0.7s ease forwards; }

/* ============================================================
   7. TEXT UTILITIES
   ============================================================ */
.text-dark    { color: var(--dark) !important; }
.text-gray    { color: var(--gray) !important; }
.text-primary { color: var(--primary) !important; }
.text-white   { color: var(--white) !important; }
.border-border { border-color: var(--border-2) !important; }

/* ============================================================
   8. LAYOUT UTILITIES
   ============================================================ */
.section-padding { padding: 6rem 0; }
@media (max-width: 768px) { .section-padding { padding: 3.5rem 0; } }

.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   9. PREMIUM CARD — MODERN-CARD (backward compat)
   ============================================================ */
.modern-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37,99,235,0.15);
}

.modern-card:hover::before { transform: scaleX(1); }

.modern-card-number {
    font-size: 3.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: rgba(37,99,235,0.06);
    line-height: 1;
    letter-spacing: -0.04em;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.modern-card-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.modern-card-desc {
    line-height: 1.75;
    font-weight: 500;
    color: var(--gray);
    flex-grow: 1;
    font-size: 0.9375rem;
}

/* ============================================================
   10. DARK CTA SECTION
   ============================================================ */
.modern-cta-wrapper {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.modern-cta-card {
    background: var(--dark);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(15,23,42,0.25);
}
@media (min-width: 768px) { .modern-cta-card { padding: 5rem 4rem; } }

.modern-cta-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--white);
    font-family: var(--font-heading);
}

.modern-cta-desc {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    font-weight: 500;
    line-height: 1.75;
}

/* ============================================================
   11. BADGE PILLS
   ============================================================ */
.modern-badge {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* ============================================================
   12. IMAGE ANIME (TechXen shimmer hover)
   ============================================================ */
.image-anime { position: relative; overflow: hidden; }
.image-anime::after {
    content: "";
    position: absolute;
    width: 200%; height: 0%;
    left: 50%; top: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
    transition: all 0ms;
}
.image-anime:hover::after {
    height: 250%;
    transition: all 600ms linear;
    background: transparent;
}

/* ============================================================
   13. VIDEO PLAY BUTTON
   ============================================================ */
.video-play-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    cursor: pointer; flex-shrink: 0;
}
.video-play-btn::before {
    content: "";
    position: absolute; z-index: 0;
    left: 50%; top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 88px; height: 88px;
    background: rgba(37,99,235,0.2);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}
.video-play-btn::after {
    content: "";
    position: absolute; z-index: 1;
    left: 50%; top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 72px; height: 72px;
    background: var(--primary);
    border-radius: 50%;
    transition: var(--transition);
}
.video-play-btn i { position: relative; z-index: 2; color: #fff; font-size: 1.25rem; margin-left: 3px; }
.video-play-btn:hover::after { background: var(--primary-dark); transform: translateX(-50%) translateY(-50%) scale(1.08); }

/* ============================================================
   14. COUNTER ANIMATION (backward compat)
   ============================================================ */
.counter-value { display: inline-block; }

/* ============================================================
   15. TECH BADGE (NEW - for service pages)
   ============================================================ */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.tech-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
    transform: translateY(-2px);
}
.tech-badge i { font-size: 1rem; }

/* ============================================================
   16. TAG CHIP (category labels)
   ============================================================ */
.tag-chip {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   17. BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-2); font-size: 0.75rem; }
.breadcrumb .current { color: var(--dark); }

/* ============================================================
   18. TIMELINE / PROCESS STEP
   ============================================================ */
.timeline-wrapper {
    position: relative;
    padding: 1rem 0;
}
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--purple));
    opacity: 0.2;
}
@media (min-width: 768px) {
    .timeline-wrapper::before { left: 50%; transform: translateX(-50%); }
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-step .step-dot {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
    z-index: 1;
}

.timeline-step .step-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    flex: 1;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.timeline-step .step-content:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}
.timeline-step .step-content h4 {
    font-size: 1.125rem; font-weight: 800;
    color: var(--dark); margin-bottom: 0.375rem;
}
.timeline-step .step-content p {
    font-size: 0.9375rem; color: var(--gray); font-weight: 500; line-height: 1.65;
}

/* ============================================================
   19. NAVBAR — 3-Zone Layout
   ============================================================ */

/* ── Main Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    height: 80px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 9990;
    overflow: visible;

    /* 3-zone Grid layout for perfect centering */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 100%;
    padding: 0 40px;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.99);
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}

/* ── Zone 1: Logo ── */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}
.logo:hover img { transform: scale(1.04); }

/* ── Zone 2: Center Navigation ── */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
    height: 100%;
}

.nav-menu > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
    gap: 5px;
}

.nav-menu > li > a:hover,
.nav-menu > li.dropdown:hover > a { color: #2563eb; }

/* Underline indicator on hover */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 14px; right: 14px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.dropdown:hover > a::after { transform: scaleX(1); }

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 2px;
}
.nav-menu > li.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* ── Zone 3: CTA ── */
.cta-area {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 0.28s ease;
    box-shadow: 0 4px 14px rgba(37,99,235,0.32);
    white-space: nowrap;
}
.nav-cta:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37,99,235,0.42);
}
.nav-cta .cta-arrow {
    width: 22px; height: 22px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    transition: transform 0.28s ease;
}
.nav-cta:hover .cta-arrow { transform: translateX(3px); }

/* ── Responsive Navbar ── */
@media (max-width: 1024px) {
    .navbar { height: 70px; padding: 0 24px; display: flex; justify-content: space-between; }
    .nav-center { display: none; }
    .cta-area .nav-cta { display: none; }
}
@media (max-width: 768px) {
    .navbar { height: 60px; padding: 0 16px; }
    .logo img { max-height: 44px; }
}

/* ============================================================
   20. MEGA MENU — Pixel-Perfect Reference Style
   ============================================================ */

/*
 * CRITICAL: The mega menu is position:absolute relative to the
 * fixed .navbar (full viewport width). li.dropdown must be
 * position:static so the navbar is the containing block.
 * top:80px = bottom of navbar. left:50% centers in viewport.
 */
.nav-menu > li.dropdown {
    position: relative !important;
}

/* ===== EXACT MEGA MENU STYLE ===== */
.mega-menu-clean{
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    width:1300px;
    max-width:95vw;
    background:#fff;
    padding:25px 30px;
    border-radius:0;
    box-shadow:none;
    border:1px solid #e5e7eb;
    z-index:999;
    display:none;
}

.dropdown:hover .mega-menu-clean{
    display:block;
}

.mm-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.mm-col{
    padding:0 25px;
    border-right:1px solid #e5e7eb;
}

.mm-col:last-child{
    border-right:none;
}

.mm-col-head{
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:18px;
    color:#111827;
    padding-bottom:12px;
    border-bottom:1px solid #ececec;
}

.mm-links{
    list-style:none;
    margin:0;
    padding:0;
}

.mm-links li{
    margin-bottom:10px;
}

.mm-links li a{
    color:#111;
    font-size:15px;
    font-weight:500;
    text-decoration:none;
    transition:.3s;
    line-height:1.5;
}

.mm-links li a:hover{
    color:#8a2be2;
    padding-left:4px;
}

.mm-tech-row{
    margin-top:20px;
    display:flex;
    gap:12px;
    align-items:center;
}

.mm-tech-row img{
    width:38px;
    height:38px;
    object-fit:contain;
    transition:.3s;
}

.mm-tech-row img:hover{
    transform:scale(1.1);
}

@media(max-width:1200px){
    .mega-menu-clean{
        width:95vw;
    }
    .mm-grid{
        grid-template-columns:repeat(2,1fr);
    }
    .mm-col{
        min-height:auto;
        padding-bottom:30px;
    }
}

@media(max-width:768px){
    .mega-menu-clean{
        position:static;
        width:100%;
        transform:none;
        border:none;
    }
    .mm-grid{
        grid-template-columns:1fr;
    }
    .mm-col{
        border-right:none;
        border-bottom:1px solid #ddd;
        padding:20px 0;
    }
    .mm-col:last-child{
        border-bottom:none;
    }
}

/* ── We Offer small dropdown ── */
.dropdown:nth-child(3) .mega-menu {
    width: 240px;
    left: 0;
    transform: translateX(-20px) translateY(12px);
    padding: 10px 0;
    border-radius: 10px;
    position: absolute;
    top: 80px;
    border-top: 3px solid #2563eb;
}
.dropdown:nth-child(3):hover .mega-menu {
    transform: translateX(-20px) translateY(0);
    opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown:nth-child(3) .mega-column { padding: 0; border: none; }
.dropdown:nth-child(3) .mega-column ul li a {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 0;
    color: #374151;
    display: flex; align-items: center; gap: 8px;
}
.dropdown:nth-child(3) .mega-column ul li a:hover {
    background: #f3f4f6;
    color: #2563eb;
    padding-left: 26px;
}

/* Old .mega-menu (We Offer dropdown) hover */
.dropdown:hover .mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-20px) translateY(0);
    pointer-events: auto;
}
.mega-menu {
    position: absolute;
    top: 80px;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.dropdown:hover .mega-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer; padding: 6px;
    background: none; border: none;
    z-index: 1001;
}
.mobile-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) { .mobile-toggle { display: flex; } }

/* Mobile Slide Panel - Handled via Tailwind classes in header.php */

.mobile-nav-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
.mobile-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    font-size: 1rem; font-weight: 700;
    color: var(--dark); text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-nav-link .arrow-icon { font-size: 12px; color: var(--gray); transition: transform 0.3s ease; }
.mobile-nav-item.expanded .arrow-icon { transform: rotate(90deg); }

.mobile-submenu {
    display: none;
    padding: 4px 0 12px 16px;
}
.mobile-nav-item.expanded .mobile-submenu { display: block; }
.mobile-submenu a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; font-size: 0.9rem; font-weight: 600;
    color: var(--gray); text-decoration: none;
    transition: color 0.2s;
}
.mobile-submenu a:hover { color: var(--primary); }
.mobile-submenu a i { width: 18px; font-size: 12px; }

.mobile-cta-block {
    margin-top: 24px; padding: 24px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    text-align: center;
}

@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: flex; }
}
@media (min-width: 1025px) {
    .mobile-panel, .mobile-panel-overlay { display: none !important; }
}

/* ============================================================
   20. FOOTER STYLES (dark premium)
   ============================================================ */
.footer-dark {
    background: #0a0f1e;
    color: rgba(255,255,255,0.75);
    position: relative;
    overflow: hidden;
}
.footer-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--purple) 70%, transparent);
}
.footer-dark a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s ease; }
.footer-dark a:hover { color: white; }
.footer-heading {
    font-size: 0.8125rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
}
.footer-link {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9375rem; font-weight: 500;
    padding: 4px 0;
    transition: all 0.2s ease;
}
.footer-link:hover { transform: translateX(4px); color: white !important; }
.footer-link i { font-size: 11px; color: var(--primary); flex-shrink: 0; }
.footer-social {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    font-size: 1rem;
}
.footer-social:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}
.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 3rem 0 2rem;
}
.footer-newsletter input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px 0 0 12px;
    padding: 12px 20px;
    color: white;
    font-size: 14px; font-weight: 500;
    outline: none; width: 100%;
    transition: border-color 0.2s;
}
.footer-newsletter input:focus { border-color: var(--primary); }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter button {
    background: var(--primary);
    border: none; border-radius: 0 12px 12px 0;
    padding: 12px 22px;
    color: white; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: background 0.2s;
    white-space: nowrap;
}
.footer-newsletter button:hover { background: var(--primary-dark); }

/* WhatsApp Sticky */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    background: #25D366;
    color: white;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.625rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
    z-index: 50;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37,211,102,0.55);
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 96px; right: 28px;
    background: var(--dark);
    color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
    z-index: 50; cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    border: none;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); transform: translateY(-3px); }

/* Cookie Consent */
.cookie-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    z-index: 9999;
    display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: wrap;
    border-top: 1px solid rgba(37,99,235,0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { color: rgba(255,255,255,0.75); font-size: 0.875rem; font-weight: 500; flex: 1; min-width: 200px; }
.cookie-bar a { color: var(--primary); text-decoration: underline; }
.cookie-accept {
    background: var(--primary); color: white;
    border: none; border-radius: 8px;
    padding: 8px 20px; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: background 0.2s;
    white-space: nowrap;
}
.cookie-accept:hover { background: var(--primary-dark); }

/* Page Transition Overlay */
.page-transition {
    position: fixed; inset: 0;
    background: var(--primary);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.page-transition.animating { transform: translateY(0); }

/* ============================================================
   21. RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
    .modern-cta-wrapper { padding: 3rem 0; }
    .modern-cta-card    { padding: 2.5rem 1.5rem; }
    .modern-card        { padding: 1.75rem; }
}

/* ============================================================
   20. FALLBACK UTILITY CLASSES
   ============================================================ */
/* These classes ensure layout remains stable even if Tailwind CDN is slow or blocked */
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }

@media (min-width: 1024px) {
    .lg\:pt-48 { padding-top: 12rem; }
    .lg\:pb-32 { padding-bottom: 8rem; }
}

/* ============================================================
   21. PREMIUM LAYOUT CONTAINERS & HERO
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

.hero-section {
    min-height: calc(100vh - 80px);
    margin-top: 80px; /* Offset for fixed header */
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Hero grid fallback (in case Tailwind fails to load) */
.hero-section .container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-section .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-section { min-height: calc(100vh - 70px); margin-top: 70px; }
    .hero-section .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section { min-height: calc(100vh - 60px); margin-top: 60px; padding-top: 40px; }
}

/* ============================================================
   22. PREMIUM HEADER LAYOUT ZONES
   ============================================================ */
/* logo-area is defined alongside .logo above */
.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    height: 100%;
}
.cta-area {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 16px;
}

@media (max-width: 1024px) {
    .nav-center { display: none; }
    .cta-area .nav-cta { display: none; }
}




/* ============================================================
   24. PREMIUM FOOTER SAAS
   ============================================================ */
.footer-dark {
    background: #0f172a;
    color: #ffffff;
}

.footer-top-cta {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    padding: 40px 0;
    text-align: center;
}

.cta-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.cta-inner p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: #7c3aed;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-buttons .btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.footer-grid-container {
    padding-top: 50px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    font-size: 0.875rem;
}

.footer-socials a:hover {
    background: #7c3aed;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    flex-shrink: 0;
}

.contact-info span {
    display: none; /* Hide the label to save space, keeping it cleaner */
}

.contact-info p, .contact-info a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #ffffff;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.trust-badge {
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    margin: 0;
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* ============================================================
   MOBILE PANEL SLIDE OUT (Vercel Style)
   ============================================================ */
.mobile-panel-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-panel {
    position: fixed;
    top: 0; right: -400px;
    width: 100%; max-width: 340px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    padding: 2rem 1.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-panel.active {
    right: 0;
}

.mobile-nav-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    padding: 0.5rem 0;
}
.mobile-nav-link.active {
    color: var(--primary);
}
.mobile-nav-link .arrow-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.mobile-nav-link.active .arrow-icon {
    transform: rotate(90deg);
}

.mobile-submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-submenu.active {
    display: flex;
}
.mobile-submenu a {
    color: var(--gray);
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}
.mobile-submenu a:hover {
    color: var(--primary);
}
