/**
 * ATRIH Labs — Bespoke Digital Engineering
 * Main Stylesheet
 */

*, *::before, *::after {
    scroll-behavior: smooth;
}

/* ATRIH Emerald Circuit Aura */
.ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 85% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

/* Subtle Dark Grid */
.grid-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

/* Dynamic Logo Styling & Vector Circuit Flow */
.logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, transparent 70%);
    filter: blur(14px);
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.logo-container:hover .logo-glow {
    opacity: 1;
    transform: scale(1.2);
}

.brand-vector-logo {
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.25));
}

.logo-container:hover .brand-vector-logo {
    transform: translateY(-1px) scale(1.02);
    filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.55));
}

.circuit-pulse-beam {
    stroke-dasharray: 10 18;
    animation: circuitFlow 5s linear infinite;
}

@keyframes circuitFlow {
    0% { stroke-dashoffset: 56; }
    100% { stroke-dashoffset: 0; }
}

.cyber-node-glow {
    animation: nodePulse 2.4s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 4px #10B981); }
    50% { opacity: 1; filter: drop-shadow(0 0 12px #34D399); }
}

/* Specular Surface */
.specular-card {
    background: linear-gradient(145deg, rgba(18, 21, 30, 0.8) 0%, rgba(11, 13, 19, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.specular-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.12);
}

/* Pulsing Dot */
.live-dot {
    animation: pulseEmerald 2s infinite ease-in-out;
}

@keyframes pulseEmerald {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #10B981; }
    50% { opacity: 0.35; transform: scale(1.3); box-shadow: 0 0 14px #10B981; }
}

