:root {
    --contact-accent: #f57c00;
    --contact-accent-soft: #ffa94d;
    --contact-deep: #06263f;
    --contact-ink: #f6fbff;
}

.contact-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    padding: 180px 0 90px;
    background:
        radial-gradient(900px 550px at 12% 18%, rgba(255, 183, 77, 0.2), transparent 62%),
        radial-gradient(850px 500px at 88% 12%, rgba(79, 168, 255, 0.22), transparent 58%),
        linear-gradient(130deg, #041a2f 0%, #082d49 55%, #0a3756 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 4;
}

.contact-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 86%);
    animation: contactGridShift 16s linear infinite;
    opacity: 0.4;
}

.contact-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.contact-hero-glow-1 {
    width: 300px;
    height: 300px;
    left: -80px;
    top: 140px;
    background: radial-gradient(circle, rgba(255, 169, 77, 0.4), rgba(255, 169, 77, 0.02));
    animation: floaty 7s ease-in-out infinite;
}

.contact-hero-glow-2 {
    width: 360px;
    height: 360px;
    right: -90px;
    top: 90px;
    background: radial-gradient(circle, rgba(85, 193, 255, 0.35), rgba(85, 193, 255, 0.02));
    animation: floaty 8.5s ease-in-out infinite reverse;
}

.contact-hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    pointer-events: none;
}

.contact-hero-orbit-1 {
    width: 220px;
    height: 220px;
    top: 165px;
    left: 7%;
    animation: spinSlow 18s linear infinite;
}

.contact-hero-orbit-2 {
    width: 260px;
    height: 260px;
    top: 150px;
    right: 10%;
    animation: spinSlow 23s linear infinite reverse;
}

.contact-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffe3c6;
    background: rgba(255, 140, 0, 0.16);
    border: 1px solid rgba(255, 190, 120, 0.5);
    margin-bottom: 16px;
}

.contact-hero-title {
    color: var(--contact-ink);
    line-height: 1.1;
    margin-bottom: 18px;
    text-wrap: balance;
}

.contact-hero-subtitle {
    color: rgba(246, 251, 255, 0.84);
    font-size: 1.08rem;
    max-width: 640px;
    margin-bottom: 28px;
}

.contact-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-hero-meta a {
    color: #e9f5ff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.contact-hero-meta a:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(255, 181, 97, 0.8);
    box-shadow: 0 10px 25px rgba(245, 124, 0, 0.28);
}

.contact-hero-art {
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    backdrop-filter: blur(7px);
}

.contact-art-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    gap: 8px;
}

.contact-art-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd8aa;
}

.contact-art-body {
    padding: 22px 18px;
    display: grid;
    gap: 12px;
}

.contact-art-node {
    background: rgba(7, 29, 49, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    color: #f1f8ff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulseCard 5.2s ease-in-out infinite;
}

.contact-art-node:nth-child(2) {
    animation-delay: 0.45s;
}

.contact-art-node:nth-child(3) {
    animation-delay: 0.9s;
}

.contact-art-node i {
    color: var(--contact-accent-soft);
}

.contact-hero-pulse-card {
    position: absolute;
    width: 140px;
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.contact-hero-pulse-1 {
    left: 5%;
    bottom: 52px;
    animation: floaty 6s ease-in-out infinite;
}

.contact-hero-pulse-2 {
    right: 5%;
    bottom: 70px;
    animation: floaty 7.6s ease-in-out infinite reverse;
}

.contact-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b6e7ff;
    box-shadow: 0 0 0 0 rgba(182, 231, 255, 0.7);
    animation: beacon 2.2s ease-out infinite;
    margin-bottom: 9px;
}

.contact-pulse-line {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 182, 113, 0.9), rgba(149, 225, 255, 0.5));
    margin-bottom: 8px;
}

.contact-pulse-line.short {
    width: 66%;
}

.contact-trail-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 197, 122, 0.95) 0%, rgba(255, 197, 122, 0.24) 52%, rgba(255, 197, 122, 0) 72%);
    animation: trailFade 0.9s ease-out forwards;
    z-index: 5;
}

@keyframes contactGridShift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(55px, 55px, 0);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@keyframes beacon {
    0% {
        box-shadow: 0 0 0 0 rgba(182, 231, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 0 14px rgba(182, 231, 255, 0);
    }
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.15);
    }
}

@keyframes pulseCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 991.98px) {
    .contact-hero-section {
        min-height: auto;
        padding: 152px 0 72px;
    }

    .contact-hero-title {
        font-size: calc(1.65rem + 1.2vw);
    }

    .contact-hero-pulse-card {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .contact-hero-meta a {
        width: 100%;
        text-align: center;
    }

    .contact-hero-grid {
        opacity: 0.22;
    }
}
