/* =========================================
   HERO SECTION STYLES
   ========================================= */

.hero {
    position: relative; /* Required for overlay and video positioning */
    overflow: hidden; /* Hides parts of the video that extend beyond the section */
    padding: 10rem 2rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the area without distortion */
}

/* Add a dark overlay on top of the video for text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(44, 44, 58, 0.5) 0%, rgba(18, 18, 18, 0.8) 70%);
    z-index: 2;
}

.hero-container {
    position: relative; /* Lifts content above the video and overlay */
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem; /* Increase gap to the features below */
}

.hero-features {
    position: relative; /* Lifts content above the video and overlay */
    z-index: 3;
}

/* --- LEFT SIDE CONTENT --- */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 90%;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background: transparent;
}

.btn-hero-primary {
    background-color: var(--gold);
    color: white;
    border-color: var(--gold);
}

.btn-hero-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    color: var(--gold);
    border-color: var(--gold);
}

.btn-hero-secondary:hover {
    background-color: rgba(169, 140, 70, 0.1);
    border-color: var(--gold-hover);
    color: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-arrow {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-hero:hover .btn-arrow {
    transform: translateX(4px);
}

/* --- RIGHT SIDE - THREAT MONITOR --- */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.threat-monitor {
    width: 100%;
    max-width: 600px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.5);
    padding: 2rem;
    backdrop-filter: blur(10px);

    /* Initial state for animation to prevent flicker */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.monitor-icon {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.monitor-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.monitor-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background-color: #4ade80;
}

.dot-yellow {
    background-color: #facc15;
}

.dot-red {
    background-color: #ef4444;
}

.monitor-divider {
    height: 1px;
    background-color: var(--gold);
    margin: 1rem 0;
}

.monitor-threats {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.monitor-threats::-webkit-scrollbar {
    width: 6px;
}

.monitor-threats::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.monitor-threats::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.threat-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.threat-item:last-child {
    border-bottom: none;
}

.threat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.threat-red {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.threat-gold {
    background-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.threat-green {
    background-color: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.threat-name {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.threat-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.threat-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid;
    display: inline-block;
    text-transform: uppercase;
}

.badge-blocked {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.badge-monitor {
    color: #d4af37;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.badge-active {
    color: #facc15;
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.monitor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-label {
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ade80;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

/* --- BOTTOM FEATURES --- */
.hero-features {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center; /* This ensures vertical alignment */
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

.feature-item:hover {
    border-color: var(--gold);
    background: rgba(169, 140, 70, 0.05);
    transform: translateY(-3px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(-8deg);
}

.feature-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.2;
    word-break: break-word;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .threat-monitor {
        max-width: 100%;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: row;
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-text {
        font-size: 0.75rem;
    }

    .threat-item {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .threat-time {
        display: none;
    }

    .monitor-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}