/* ============================================
   URBÁLI 360 - Hero Section Styles
   Two-column layout with connected nodes visualization
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(80px + var(--spacing-3xl)) var(--spacing-xl) var(--spacing-3xl);
    overflow: hidden;
    /* Ensure canvas doesn't overflow */
}

/* WebGL Background Container */
.hero-aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    opacity: 0.8;
    /* Slight transparency as requested */
    pointer-events: none;
}

.hero-aurora-bg canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Ensure content is above Aurora */
.hero-container,
.hero-grid {
    position: relative;
    z-index: 2;
}

/* Grid Layout: Two Columns */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Column: Content */
.hero-content {
    z-index: var(--z-base);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-lg);
}

.hero-body {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Pulse Animation for CTA Button */
.btn-pulse {
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(172, 254, 64, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(172, 254, 64, 0.6), 0 0 40px rgba(172, 254, 64, 0.3);
    }
}

.btn-pulse:hover {
    animation: pulse-glow-hover 1.5s ease-in-out infinite;
}

@keyframes pulse-glow-hover {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(172, 254, 64, 0.5), 0 0 35px rgba(172, 254, 64, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(172, 254, 64, 0.7), 0 0 50px rgba(172, 254, 64, 0.4);
    }
}

/* Right Column: Visual Element */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 500px;
}

.connected-nodes {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
}

.nodes-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(103, 157, 243, 0.3));
}

/* Connection Lines Animation - Data Flow */
.connection-line {
    stroke-dasharray: 10;
    stroke-dashoffset: 100;
    animation: flow-line 2s linear infinite;
    opacity: 0.6;
}

.line-1 {
    animation-duration: 3s;
    animation-delay: 0s;
}

.line-2 {
    animation-duration: 4s;
    animation-delay: 1s;
}

.line-3 {
    animation-duration: 2.5s;
    animation-delay: 0.5s;
}

.line-4 {
    animation-duration: 3.5s;
    animation-delay: 1.5s;
}

.line-5 {
    animation-duration: 3.2s;
    animation-delay: 0.2s;
}

.line-6 {
    animation-duration: 2.8s;
    animation-delay: 1.2s;
}

@keyframes flow-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* Nodes Styling - Breathing & Pulse */
.node {
    cursor: pointer;
    transition: all var(--transition-base);
    transform-origin: center;
    animation: node-breathe 4s ease-in-out infinite;
}

/* Different timings for organic feel */
.node:nth-child(2n) {
    animation-duration: 5s;
    animation-delay: 0.5s;
}

.node:nth-child(3n) {
    animation-duration: 6s;
    animation-delay: 1s;
}

.node:hover {
    filter: drop-shadow(0 0 15px var(--color-primary));
    transform: scale(1.2);
}

@keyframes node-breathe {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(103, 157, 243, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(172, 254, 64, 0.4));
    }
}

/* Nodes Styling */
.node {
    filter: drop-shadow(0 0 10px currentColor);
    cursor: pointer;
    transition: all var(--transition-base);
}

.node:hover {
    filter: drop-shadow(0 0 20px currentColor);
}

/* Node Labels */
.node-label {
    position: absolute;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    animation: fade-in-label 0.5s ease-in-out forwards;
}

.label-central {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.label-data {
    top: 45%;
    left: 5%;
    animation-delay: 1.7s;
}

.label-tech {
    top: 45%;
    right: 5%;
    animation-delay: 1.9s;
}

.label-results {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.1s;
}

@keyframes fade-in-label {
    to {
        opacity: 1;
    }
}

/* Particles */
.particle {
    opacity: 0;
    animation: particle-fade 4s ease-in-out infinite;
}

.particle-1 {
    animation-delay: 0s;
}

.particle-2 {
    animation-delay: 1.3s;
}

.particle-3 {
    animation-delay: 2.6s;
}

@keyframes particle-fade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        gap: var(--spacing-3xl);
    }

    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: calc(80px + var(--spacing-2xl)) var(--spacing-md) var(--spacing-2xl);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .hero-body {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 400px;
    }

    .hero-visual {
        height: 350px;
        order: -1;
        /* Move visual above content on mobile */
    }

    .connected-nodes {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: calc(80px + var(--spacing-xl)) var(--spacing-sm) var(--spacing-xl);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-body {
        font-size: var(--font-size-sm);
    }

    .hero-visual {
        height: 300px;
    }

    .connected-nodes {
        max-width: 300px;
    }

    .node-label {
        font-size: var(--font-size-xs);
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .btn-pulse {
        animation: none;
    }

    .connection-line {
        animation: none;
        stroke-dashoffset: 0;
    }

    .node-label {
        animation: none;
        opacity: 1;
    }

    .particle {
        display: none;
    }

    .node circle {
        animation: none !important;
    }
}