/* ============================================
   MODERN UI UPGRADE — Advenno 2026
   Layered on top of existing styles.
   Does NOT override preserved hooks or selectors.
   ============================================ */

/* ── Enhanced Section Spacing ─────────────────────────────────── */
.section {
    padding: 100px 0;
}
.section-alt {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .section, .section-alt { padding: 64px 0; }
}

/* ── Modern Section Headers ───────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 16px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    padding: 6px 16px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 999px;
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* ── Premium Card System ──────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.15);
}
.card:hover::before {
    opacity: 1;
}

/* ── Glass Surface Modifier ───────────────────────────────────── */
.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Elevated CTA Band ────────────────────────────────────────── */
.cta-band {
    position: relative;
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(34, 211, 238, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* ── Enhanced Button System ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.04);
}
.btn-lg {
    padding: 14px 32px;
    font-size: 0.95rem;
}

/* ── Modern Feature Grid ──────────────────────────────────────── */
.feature-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}
.feature-card-modern {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.feature-card-modern .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}
.feature-card-modern h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card-modern p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ── Alternating Section Backgrounds ──────────────────────────── */
.section-layered {
    position: relative;
}
.section-layered::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(34, 211, 238, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ── Split Layout Section ─────────────────────────────────────── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .split-section { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Process Steps — Modern Timeline ──────────────────────────── */
.process-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 24px;
    margin-top: 48px;
}
.process-step-modern {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}
.process-step-modern:hover {
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-4px);
}
.process-step-modern .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.process-step-modern h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.process-step-modern p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Horizontal Card Slider ───────────────────────────────────── */
.card-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.2) transparent;
}
.card-slider::-webkit-scrollbar { height: 6px; }
.card-slider::-webkit-scrollbar-track { background: transparent; }
.card-slider::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.2); border-radius: 3px; }
.card-slider > .card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    .card-slider > .card { flex: 0 0 280px; }
}

/* ── Industry Grid — Enhanced ─────────────────────────────────── */
.industry-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.industry-item:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.industry-item .industry-hover-img {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.industry-item:hover .industry-hover-img {
    opacity: 0.15;
}
.industry-icon {
    font-size: 1.6rem;
    color: var(--accent-cyan);
}

/* ── Problem Cards ────────────────────────────────────────────── */
.problem-card {
    padding: 28px;
    text-align: center;
}
.problem-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin-top: 16px;
}

/* ── Selector Cards ───────────────────────────────────────────── */
.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 24px;
}
.selector-card {
    cursor: pointer;
    padding: 32px 24px;
    text-align: center;
}
.selector-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.selector-card .subtext {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.selector-hover-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
    margin-top: 0;
}
.selector-card:hover .selector-hover-content {
    max-height: 200px;
    margin-top: 16px;
}
.selector-list {
    list-style: none;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.selector-list li {
    padding: 4px 0;
}

/* ── Service Benefit Cards (Homepage) ─────────────────────────── */
.service-benefit-card {
    padding: 32px;
}
.service-benefit-card .service-icon {
    margin-bottom: 16px;
}
.service-benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.service-benefit-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 16px;
}
.text-link {
    color: var(--accent-cyan);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}
.text-link:hover {
    gap: 8px;
}

/* ── Stats Bar ────────────────────────────────────────────────── */
.stats-bar {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(139, 92, 246, 0.04));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Final CTA Card ───────────────────────────────────────────── */
.final-cta-card {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.03), rgba(139, 92, 246, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cta-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Page Hero ────────────────────────────────────────────────── */
.page-hero-enhanced {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header-content {
    max-width: 720px;
    margin: 0 auto;
}
.page-header-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}
.page-header-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Service Card (Services Page) ─────────────────────────────── */
.service-card {
    position: relative;
}
.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
    font-family: var(--font-heading);
}
[data-theme="light"] .service-number {
    color: rgba(0, 0, 0, 0.03);
}

/* ── Contact Form Enhancements ────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid rgba(34,211,238,0.08);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 16px 60px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
    .contact-card { padding: 28px; }
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    justify-content: center;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--accent-cyan);
}
.breadcrumb .separator {
    opacity: 0.4;
}

/* ── Reveal Animations ────────────────────────────────────────── */
/* NOTE: .reveal, .fade-up-reveal, .stagger-children are owned by style.css.
   We only add stagger delay enhancement here — no duplicate definitions. */
.stagger-children.active > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.active > *:nth-child(8) { transition-delay: 0.56s; }

/* ── Hover Lift Utility ───────────────────────────────────────── */
.hover-lift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

/* ── Text Gradient ────────────────────────────────────────────── */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Shimmer Text Animation ───────────────────────────────────── */
.shimmer-text {
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* ── Blog Cards ───────────────────────────────────────────────── */
.blog-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
}
.blog-card .blog-hover-img {
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.7;
}
.blog-card:hover .blog-hover-img {
    transform: scale(1.05);
    opacity: 1;
}
.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ── Pricing Page Enhancements ────────────────────────────────── */
.pricing-card-enhanced {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
}
.pricing-card-enhanced:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.pricing-card-enhanced.featured {
    border-color: rgba(34, 211, 238, 0.3);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.04), rgba(139, 92, 246, 0.04));
}

/* ── Light Theme Adjustments ──────────────────────────────────── */
[data-theme="light"] .card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.15);
}
[data-theme="light"] .stats-bar {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
}
[data-theme="light"] .final-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
}
[data-theme="light"] .industry-item:hover .industry-hover-img {
    opacity: 0.08;
}
[data-theme="light"] .problem-card,
[data-theme="light"] .selector-card {
    border-color: var(--border-color);
}

/* ══════════════════════════════════════════════════════════════
   ADVANCED MODERN UI — Phase 2
   ══════════════════════════════════════════════════════════════ */

/* ── 1. HERO ADVANCEMENTS ────────────────────────────────────── */

/* Floating gradient orbs (already used in some pages, now standardized) */
.hero-glow-orb {
    position: absolute;
    width: var(--orb-size, 400px);
    height: var(--orb-size, 400px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-color, rgba(34,211,238,0.12)) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* Spotlight behind hero headline */
.hero-spotlight {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(34,211,238,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Rotating keyword badge */
.rotating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(34,211,238,0.06);
    border: 1px solid rgba(34,211,238,0.15);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    overflow: hidden;
    position: relative;
}
.rotating-badge .badge-words {
    display: inline-block;
    position: relative;
    height: 1.3em;
    overflow: hidden;
    vertical-align: middle;
}
.rotating-badge .badge-words span {
    display: block;
    animation: rotateBadge 8s ease-in-out infinite;
}
@keyframes rotateBadge {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.3em); }
    50%, 70% { transform: translateY(-2.6em); }
    75%, 95% { transform: translateY(-3.9em); }
    100% { transform: translateY(0); }
}

/* Interactive floating mini-cards in hero */
.hero-float-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.hero-float-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    animation: floatCard 6s ease-in-out infinite;
    transition: border-color 0.3s, transform 0.3s;
}
.hero-float-card:nth-child(2) { animation-delay: -1.5s; }
.hero-float-card:nth-child(3) { animation-delay: -3s; }
.hero-float-card:nth-child(4) { animation-delay: -4.5s; }
.hero-float-card:hover {
    border-color: rgba(34,211,238,0.3);
    transform: translateY(-4px);
}
.hero-float-card i { color: var(--accent-cyan); }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── 2. CARD SYSTEM ADVANCEMENTS ─────────────────────────────── */

/* Cursor-follow glow on cards */
.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.card:hover .card-glow { opacity: 1; }

/* Expand-on-hover card content */
.card .card-expand-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}
.card:hover .card-expand-content {
    max-height: 120px;
    opacity: 1;
    margin-top: 12px;
}

/* Auto-scrolling marquee rail */
.marquee-rail {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}
.marquee-rail::before,
.marquee-rail::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-rail::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}
.marquee-rail::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}
.marquee-track {
    display: flex;
    gap: 32px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    flex-shrink: 0;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.marquee-item i { color: var(--accent-cyan); }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── 3. SECTION TRANSITIONS ──────────────────────────────────── */

/* Gradient line separator between sections */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(34,211,238,0.2), rgba(139,92,246,0.2), transparent);
    margin: 0;
    border: none;
}

/* Soft curve wave divider */
.section-wave {
    position: relative;
    margin-top: -2px;
}
.section-wave svg {
    display: block;
    width: 100%;
    height: 40px;
    fill: var(--bg-primary);
}
.section-alt .section-wave svg { fill: var(--bg-secondary); }

/* ── 4. PREMIUM CTA PANEL ────────────────────────────────────── */

.cta-panel {
    position: relative;
    padding: 60px 40px;
    background: linear-gradient(145deg, rgba(34,211,238,0.05), rgba(139,92,246,0.05));
    border: 1px solid rgba(34,211,238,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.cta-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-accent);
}
.cta-panel::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* CTA outcome badges */
.cta-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(34,211,238,0.06);
    border: 1px solid rgba(34,211,238,0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.cta-badge i { color: var(--accent-cyan); font-size: 0.75rem; }

/* Sticky mini CTA chip */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(34,211,238,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease, box-shadow 0.3s;
    pointer-events: none;
}
.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.sticky-cta:hover {
    box-shadow: 0 12px 40px rgba(34,211,238,0.45);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .sticky-cta { bottom: 16px; right: 16px; padding: 10px 20px; font-size: 0.82rem; }
}

/* ── 5. FROSTED STICKY HEADER ────────────────────────────────── */

.header-scrolled {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
[data-theme="light"] .header-scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.06) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Active nav link indicator */
.nav-link.active,
.nav-link:hover {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Nav CTA emphasis */
.nav-cta {
    background: var(--gradient-accent) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(34,211,238,0.2);
    transition: box-shadow 0.3s, transform 0.3s;
}
.nav-cta:hover {
    box-shadow: 0 6px 24px rgba(34,211,238,0.35);
    transform: translateY(-1px);
}

/* Mobile menu polish */
@media (max-width: 768px) {
    .mobile-nav-panel {
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }
    .mobile-nav-panel .nav-link {
        padding: 14px 20px;
        border-radius: var(--radius-md);
        transition: background 0.2s;
    }
    .mobile-nav-panel .nav-link:hover {
        background: rgba(34,211,238,0.06);
    }
}

/* ── 6. BUTTON SHEEN EFFECT ──────────────────────────────────── */

.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.05) 55%, transparent 60%);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover::after {
    left: 120%;
}

/* Arrow icon motion on hover */
.btn i.fa-arrow-right,
.text-link i.fa-arrow-right {
    transition: transform 0.3s ease;
}
.btn:hover i.fa-arrow-right,
.text-link:hover i.fa-arrow-right {
    transform: translateX(3px);
}

/* ── 7. COUNTER / STAT HOVER POLISH ──────────────────────────── */

.stat-item:hover .stat-number,
.adv-stat-item:hover .adv-counter {
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

/* ── 8. PREMIUM FORM STYLING ─────────────────────────────────── */
/* .contact-card styles consolidated above in Contact Form Enhancements */

/* Premium input focus states */
.contact-card input:focus,
.contact-card textarea:focus,
.contact-card select:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1), 0 0 20px rgba(34,211,238,0.05) !important;
    outline: none;
}
.contact-card input,
.contact-card textarea,
.contact-card select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── 9. PORTFOLIO OVERLAY ON HOVER ───────────────────────────── */

.portfolio-card {
    position: relative;
    overflow: hidden;
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,15,26,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-overlay-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34,211,238,0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    width: fit-content;
}
.portfolio-overlay-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.portfolio-overlay-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

/* Filter pill polish */
[data-filter] {
    transition: all 0.3s ease;
    position: relative;
}
[data-filter].active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(34,211,238,0.08);
}
[data-filter]:hover:not(.active) {
    border-color: rgba(34,211,238,0.3);
}

/* ── 10. HIGHLIGHT CALLOUT BOX ───────────────────────────────── */

.callout-box {
    padding: 20px 24px;
    background: rgba(34,211,238,0.04);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.callout-box strong { color: var(--text-primary); }

/* ── 11. ICON BULLET SYSTEM ──────────────────────────────────── */

.icon-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}
.icon-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.icon-bullets li i {
    color: var(--accent-cyan);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ── 12. FAQ ACCORDION POLISH ────────────────────────────────── */

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item[open] {
    border-color: rgba(34,211,238,0.2);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    transition: color 0.3s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-question { color: var(--accent-cyan); }
.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.faq-item[open] .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── 13. CONSISTENT HOVER DEPTH SYSTEM ───────────────────────── */
/* Level 1: subtle lift (default cards) */
/* Level 2: medium lift (important cards) */
.hover-depth-2:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(34,211,238,0.1);
}
/* Level 3: strong lift (featured/CTA cards) */
.hover-depth-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.3), 0 0 0 1px rgba(34,211,238,0.15);
}

/* ── 14. MEGA MENU POLISH ────────────────────────────────────── */

.mega-menu-panel {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.mega-menu-panel .mega-item {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}
.mega-menu-panel .mega-item:hover {
    background: rgba(34,211,238,0.06);
}
.mega-menu-panel .mega-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    padding: 8px 16px 4px;
}

/* ── MOBILE BREAKPOINTS (480px) ───────────────────────────────── */
@media (max-width: 480px) {
    .hero-float-cards { gap: 8px; margin-top: 20px; }
    .hero-float-card { padding: 8px 14px; font-size: 0.78rem; }
    .marquee-rail::before,
    .marquee-rail::after { width: 40px; }
    .marquee-item { padding: 8px 16px; font-size: 0.8rem; gap: 6px; }
    .marquee-track { gap: 16px; }
    .sticky-cta { bottom: 12px; right: 12px; padding: 10px 16px; font-size: 0.78rem; }
    .contact-card { padding: 20px; }
    .cta-badges { gap: 8px; }
    .cta-badge { padding: 6px 12px; font-size: 0.78rem; }
}

/* ── TOUCH DEVICE FALLBACKS ──────────────────────────────────── */
@media (hover: none) {
    /* Make hover-only content always visible on touch devices */
    .card .card-expand-content {
        max-height: 120px;
        opacity: 1;
        margin-top: 12px;
    }
    .portfolio-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(11,15,26,0.85) 0%, transparent 60%);
    }
    /* Disable hover-lift on touch (prevents sticky hover states) */
    .card:hover { transform: none; }
    .hero-float-card { animation: none; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none !important; }
    .hero-glow-orb { animation: none !important; }
    .hero-float-card { animation: none !important; }
    .rotating-badge .badge-words span { animation: none !important; }
    .shimmer-text { animation: none !important; }
    .btn-primary::after { display: none; }
    .sticky-cta { transition: none; }
}
