/* =============================================================================
   HERO SECTION STYLES
   ============================================================================= */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(249, 250, 251, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(240, 253, 244, 0.9) 100%);
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.layer-1 {
    background: radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
}

.layer-2 {
    background: radial-gradient(circle at 80% 20%, rgba(255, 64, 64, 0.04) 0%, transparent 50%);
}

.layer-3 {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

/* 3D Geometric Scene with Mouse Interaction */
.geometric-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.cube {
    position: absolute;
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
    animation: rotate-cube 20s linear infinite;
    transition: transform 0.1s ease-out;
}

.cube::before,
.cube::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.15), 
        rgba(16, 185, 129, 0.1), 
        rgba(255, 64, 64, 0.08));
    border: 2px solid rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cube::before {
    transform: rotateY(90deg) translateZ(60px);
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15), 
        rgba(255, 64, 64, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.cube::after {
    transform: rotateX(90deg) translateZ(60px);
    background: linear-gradient(135deg, 
        rgba(255, 64, 64, 0.15), 
        rgba(30, 58, 138, 0.1));
    border-color: rgba(255, 64, 64, 0.3);
}

/* Additional cube faces for true 3D effect */
.cube {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1), 
        rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(30, 58, 138, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(15px);
}

.cube-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    filter: drop-shadow(0 10px 30px rgba(30, 58, 138, 0.2));
}

.cube-2 {
    top: 55%;
    right: 12%;
    animation-delay: -7s;
    filter: drop-shadow(0 10px 30px rgba(16, 185, 129, 0.2));
}

.cube-3 {
    bottom: 25%;
    left: 75%;
    animation-delay: -14s;
    filter: drop-shadow(0 10px 30px rgba(255, 64, 64, 0.2));
}

/* Enhanced Floating Spheres */
.sphere {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 35%;
    right: 18%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(16, 185, 129, 0.3), 
        rgba(30, 58, 138, 0.15), 
        rgba(255, 64, 64, 0.1));
    border-radius: 50%;
    filter: blur(25px);
    animation: float-sphere 15s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

/* Additional floating elements */
.geometric-scene::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    top: 70%;
    left: 20%;
    background: radial-gradient(circle, 
        rgba(255, 64, 64, 0.2), 
        rgba(30, 58, 138, 0.1));
    border-radius: 50%;
    filter: blur(15px);
    animation: float-sphere 12s ease-in-out infinite reverse;
}

.geometric-scene::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    top: 25%;
    right: 40%;
    background: radial-gradient(circle, 
        rgba(30, 58, 138, 0.25), 
        rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    filter: blur(20px);
    animation: float-sphere 18s ease-in-out infinite;
}

/* Dynamic Spotlight with Mouse Interaction */
.dynamic-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(30, 58, 138, 0.1) 25%,
        rgba(255, 64, 64, 0.05) 50%,
        transparent 70%
    );
    mix-blend-mode: screen;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Mouse trail effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(
        200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
    letter-spacing: -1px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out 0.2s forwards;
}

.hero-title b {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out 0.4s forwards;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 18px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out 0.6s forwards;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 64, 64, 0.3);
}

/* Animations */
@keyframes rotate-cube {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes float-sphere {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-50px) scale(1.1); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .geometric-scene {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 14px;
    }
}