/* ============================================
   IAC PREMIUM VISUAL LAYER v1.0
   Elevates the design to world-class level
   ============================================ */

/* ---- A. ANIMATED HERO BACKGROUND ---- */
.hero {
    background: linear-gradient(135deg, #020B18 0%, #081B34 30%, #0F2847 60%, #081B34 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 12s ease infinite;
}

@keyframes heroGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

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

/* Radial glow pulse behind hero content */
.hero::before {
    background: radial-gradient(ellipse at 70% 40%, rgba(212, 175, 55, 0.12) 0%, rgba(30, 64, 175, 0.06) 40%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

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

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

/* ---- B. FLOATING ORBS ---- */
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.08);
    top: 10%;
    right: 15%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.hero-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: rgba(30, 64, 175, 0.1);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.hero-orb:nth-child(3) {
    width: 150px;
    height: 150px;
    background: rgba(212, 175, 55, 0.06);
    top: 60%;
    right: 40%;
    animation-delay: 4s;
    animation-duration: 14s;
}

@keyframes orbFloat {

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

    25% {
        opacity: 0.7;
        transform: translate(30px, -20px) scale(1.1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        opacity: 0.8;
        transform: translate(15px, 15px) scale(1.05);
    }
}

/* ---- C. PREMIUM GLASSMORPHISM CARDS ---- */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(181, 146, 43, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(181, 146, 43, 0.1),
        0 0 60px rgba(181, 146, 43, 0.04);
    transform: translateY(-6px);
}

.card::before {
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold-dim));
    background-size: 200% 100%;
    animation: shimmerGold 3s ease infinite paused;
}

.card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes shimmerGold {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ---- D. CARD ICON GLOW ---- */
.card .card-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card:hover .card-icon.gold {
    box-shadow: 0 8px 24px rgba(181, 146, 43, 0.2);
}

.card:hover .card-icon.blue {
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}

.card:hover .card-icon.green {
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
}

/* ---- E. HERO CARD PREMIUM ---- */
.hero-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 80px rgba(212, 175, 55, 0.06);
    transform: translateY(-4px);
}

.hero-card::before {
    background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold-dim), transparent);
    background-size: 200% 100%;
    animation: shimmerGold 4s ease infinite;
}

/* ---- F. CTA BUTTON ENHANCEMENTS ---- */
.hero .cta.primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #9A7B1F 0%, #D4AF37 50%, #B5922B 100%);
    background-size: 200% 200%;
    animation: ctaGlow 3s ease infinite;
    box-shadow:
        0 4px 20px rgba(181, 146, 43, 0.3),
        0 0 40px rgba(181, 146, 43, 0.1);
    letter-spacing: 0.04em;
}

@keyframes ctaGlow {

    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 0 4px 20px rgba(181, 146, 43, 0.3), 0 0 40px rgba(181, 146, 43, 0.1);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 6px 28px rgba(181, 146, 43, 0.4), 0 0 60px rgba(181, 146, 43, 0.15);
    }
}

.hero .cta.primary:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero .cta.secondary {
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero .cta.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---- G. SECTION VISUAL SEPARATORS ---- */
.section {
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 40%, #F8FAFC 100%);
}

.section:nth-child(odd) {
    background: #FFFFFF;
}

/* Decorative gradient divider between sections */
.section+.section::before {
    content: '';
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(181, 146, 43, 0.3) 30%, rgba(30, 64, 175, 0.15) 70%, transparent 100%);
}

/* ---- H. SECTION HEADINGS ---- */
.section h2 {
    position: relative;
}

.section h2::after {
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), rgba(30, 64, 175, 0.4));
    background-size: 200% 100%;
    animation: shimmerGold 4s ease infinite;
    height: 3px;
    border-radius: 2px;
}

/* ---- I. LINK ARROW ENHANCED ---- */
.link-arrow {
    position: relative;
    overflow: hidden;
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.link-arrow:hover::after {
    width: 100%;
}

/* ---- J. STEP PROCESS ENHANCEMENT ---- */
.step {
    border-left: 2px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s ease;
}

.step:hover {
    border-left-color: var(--gold-light);
    background: linear-gradient(90deg, rgba(181, 146, 43, 0.03), transparent 60%);
    padding-left: 4.5rem;
}

/* ---- K. HERO SEARCH GLOW ---- */
.hero-search input {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search input:focus {
    border-color: var(--gold-light);
    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.15),
        0 0 30px rgba(212, 175, 55, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.01);
}

/* ---- L. BADGE PULSE (ACTIVE STATUS) ---- */
.badge.active {
    position: relative;
}

.badge.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 6px;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: statusPulse 2s ease infinite;
}

.badge.active {
    padding-left: 1.125rem;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
    }
}

/* ---- M. METRIC COUNTER ANIMATION ---- */
.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9A7B1F 0%, #D4AF37 40%, #B5922B 80%, #D4AF37 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metricShimmer 4s ease infinite;
}

@keyframes metricShimmer {
    0% {
        background-position: 0% 50%;
    }

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

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

/* ---- N. HEADER PREMIUM ---- */
.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 12px rgba(0, 0, 0, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.02);
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}

/* ---- O. FOOTER PREMIUM ---- */
.site-footer {
    background: linear-gradient(135deg, #020B18 0%, #081B34 40%, #0F2847 100%);
    position: relative;
}

.site-footer::before {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), rgba(30, 64, 175, 0.5), var(--gold-dim));
    background-size: 200% 100%;
    animation: shimmerGold 6s ease infinite;
}

/* ---- P. SCROLL REVEAL REFINEMENTS ---- */
[data-scroll] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="in-view"] {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Q. DIRECTORY CARD PREMIUM ---- */
.directory-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-card:hover {
    border-color: rgba(181, 146, 43, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(181, 146, 43, 0.08);
    transform: translateX(4px);
}

.directory-card:hover::before {
    background: linear-gradient(180deg, var(--gold-dim), var(--gold-light));
}

/* ---- R. FORM PREMIUM ---- */
.form-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow:
        0 0 0 3px rgba(30, 64, 175, 0.08),
        0 4px 12px rgba(30, 64, 175, 0.04);
    transform: translateY(-1px);
}

/* ---- S. EYEBROW TAG GLOW ---- */
.hero .eyebrow {
    position: relative;
    animation: eyebrowGlow 3s ease infinite;
}

@keyframes eyebrowGlow {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    }
}

/* ---- T. BANNER PREMIUM ---- */
.banner {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.04), rgba(30, 64, 175, 0.08));
    border: 1px solid rgba(30, 64, 175, 0.12);
    border-left: 4px solid var(--blue);
    transition: all 0.3s ease;
}

.banner:hover {
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.06);
    transform: translateX(2px);
}

/* ---- U. CONSENT BANNER PREMIUM ---- */
.consent-banner {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ---- V. PAGE HERO ANIMATED ---- */
.page-hero {
    background: linear-gradient(135deg, #020B18 0%, #081B34 30%, #0F2847 60%, #081B34 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 12s ease infinite;
}

/* ---- W. CUSTOM CURSOR DOT (desktop only) ---- */
@media (pointer: fine) {
    .cursor-dot {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--gold-light);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        mix-blend-mode: difference;
        transition: transform 0.15s ease, opacity 0.3s ease;
        opacity: 0;
    }

    .cursor-dot.visible {
        opacity: 1;
    }

    .cursor-dot.hovering {
        transform: scale(3);
        background: rgba(212, 175, 55, 0.5);
    }
}

/* ---- X. GRID PATTERN BACKGROUND ---- */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 70%);
}

/* ---- Y. TOAST PREMIUM ---- */
.toast {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---- Z. REDUCED MOTION OVERRIDE ---- */
@media (prefers-reduced-motion: reduce) {

    .hero,
    .page-hero {
        animation: none;
        background-size: 100% 100%;
    }

    .hero::before {
        animation: none;
    }

    .hero-orb {
        animation: none;
        opacity: 0.3;
    }

    .card::before {
        animation: none;
    }

    .hero-card::before {
        animation: none;
    }

    .hero .cta.primary {
        animation: none;
    }

    .metric-value {
        animation: none;
    }

    .site-footer::before {
        animation: none;
    }

    .hero .eyebrow {
        animation: none;
    }

    .badge.active::before {
        animation: none;
    }

    .cursor-dot {
        display: none;
    }
}