/* Global Hero Sections - Reusable across all pages */
.hero-section {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--space-dark), var(--deep-space));
    color: white;
    margin-top: 80px; /* Account for fixed header */
    padding: 0 20px;
    /* ADD ONLY THIS LINE to prevent conflicts */
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 2; /* Above particles */
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--starlight), var(--cyber-aqua));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--cyber-aqua-glow);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

.scroll-down:hover {
    color: var(--cyber-aqua);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Optional: Grid Background Enhancement */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(var(--glass) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 700px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .scroll-down {
        bottom: 20px;
        font-size: 1.3rem;
    }
}

/* Page-specific hero variations */
.solutions-hero {
    /* Inherits all .hero-section styles */
}

.consulting-hero {
    /* Consulting page specific styles */
}

.services-hero {
    /* Services page specific styles */
}
