/**
 * Neural Core Hero Section Styles
 * Separated from inline styles for better performance and maintainability
 * Following best practices from TODO-CLEANUP.md
 */

/* ========================================================================
   HERO SECTION - 3D CUBE ANIMATION
   ======================================================================== */

.hero-section.neural-core-hero {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Hero Content Layout */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 80px);
    width: 100%;
    max-width: none;
    padding: calc(var(--header-height) + 40px) 0vw 0 2vw;
    margin: 0;
}

.hero-text-content {
    flex: 1 1 60%;
    max-width: 900px;
    padding-left: 160px;
    padding-right: 60px;
}

.hero-visual-content {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-height: 500px;
    padding: 60px;
    padding-right: 80px;
}

/* Hero Typography */
.hero-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 24px;
    display: block;
}

.hero-heading.neural-h1 {
    color: #ffffff;
}

/* Decorative line under heading */
.hero-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--neural-orange, #d97706);
    font-weight: 300;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

/* 3D Cube Styles */
.hero-cube {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    padding-right: 40px;
}

.hero-cube .neural-cube-3d {
    width: 200px;
    height: 200px;
    animation: neuralCubeSpinEnhanced 20s linear infinite;
    will-change: transform;
}

.hero-cube .neural-cube-face {
    width: 200px;
    height: 200px;
    background: #000000;
    border: 2px solid;
    border-image: linear-gradient(135deg, #3c1361 0%, #8B5CF6 33%, #d97706 66%, #ff966c 100%) 1;
    box-shadow: 
        0 0 40px rgba(60, 19, 97, 0.8),
        0 0 80px rgba(116, 238, 221, 0.3),
        inset 0 0 40px rgba(60, 19, 97, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-cube .cube-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(60, 19, 97, 0.8));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

/* Cube Face Transforms */
.hero-cube .neural-cube-face--front  { transform: rotateY(0deg) translateZ(100px); }
.hero-cube .neural-cube-face--back   { transform: rotateY(180deg) translateZ(100px); }
.hero-cube .neural-cube-face--right  { transform: rotateY(90deg) translateZ(100px); }
.hero-cube .neural-cube-face--left   { transform: rotateY(-90deg) translateZ(100px); }
.hero-cube .neural-cube-face--top    { transform: rotateX(90deg) translateZ(100px); }
.hero-cube .neural-cube-face--bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Cube Animations */
@keyframes neuralCubeSpinEnhanced {
    0% { 
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); 
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg) rotateZ(45deg);
    }
    50% { 
        transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg); 
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg) rotateZ(135deg);
    }
    100% { 
        transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); 
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(60, 19, 97, 0.8));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 35px rgba(116, 238, 221, 0.6));
        transform: scale(1.05);
    }
}

/* ========================================================================
   FULLSCREEN SECTIONS
   ======================================================================== */

.fullscreen-section-1 {
    width: 100vw;
    min-height: 400vh; /* Extended for scroll-based animations */
    background: #000000;
}

.fullscreen-section-2,
.fullscreen-section-3 {
    width: 100vw;
    height: 100vh;
    background: #000000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-text-content {
        padding-left: 60px;
        padding-right: 40px;
    }
    
    .hero-visual-content {
        padding: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: calc(100vh - 60px);
        padding: 40px 20px;
    }
    
    .hero-text-content {
        flex: none;
        max-width: 100%;
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .hero-visual-content {
        flex: none;
        width: 100%;
        min-height: 300px;
        padding: 20px;
    }
    
    .hero-heading {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 24px;
    }
    
    .hero-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-cube .neural-cube-3d {
        width: 150px;
        height: 150px;
    }
    
    .hero-cube .neural-cube-face {
        width: 150px;
        height: 150px;
    }
    
    .hero-cube .neural-cube-face--front  { transform: rotateY(0deg) translateZ(75px); }
    .hero-cube .neural-cube-face--back   { transform: rotateY(180deg) translateZ(75px); }
    .hero-cube .neural-cube-face--right  { transform: rotateY(90deg) translateZ(75px); }
    .hero-cube .neural-cube-face--left   { transform: rotateY(-90deg) translateZ(75px); }
    .hero-cube .neural-cube-face--top    { transform: rotateX(90deg) translateZ(75px); }
    .hero-cube .neural-cube-face--bottom { transform: rotateX(-90deg) translateZ(75px); }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.75rem;
        padding-bottom: 16px;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .hero-cube .neural-cube-3d {
        width: 120px;
        height: 120px;
    }
    
    .hero-cube .neural-cube-face {
        width: 120px;
        height: 120px;
        box-shadow: 
            0 0 20px rgba(60, 19, 97, 0.6),
            0 0 40px rgba(116, 238, 221, 0.2);
    }
    
    .hero-cube .neural-cube-face--front  { transform: rotateY(0deg) translateZ(60px); }
    .hero-cube .neural-cube-face--back   { transform: rotateY(180deg) translateZ(60px); }
    .hero-cube .neural-cube-face--right  { transform: rotateY(90deg) translateZ(60px); }
    .hero-cube .neural-cube-face--left   { transform: rotateY(-90deg) translateZ(60px); }
    .hero-cube .neural-cube-face--top    { transform: rotateX(90deg) translateZ(60px); }
    .hero-cube .neural-cube-face--bottom { transform: rotateX(-90deg) translateZ(60px); }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) and (hover: none) {
    /* Reduce animation complexity on touch devices */
    .hero-cube .neural-cube-3d {
        animation-duration: 30s; /* Slower rotation for less CPU usage */
    }
    
    .hero-cube .cube-logo {
        animation: none; /* Disable glow animation on mobile */
        filter: drop-shadow(0 0 15px rgba(60, 19, 97, 0.6));
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-cube .neural-cube-3d,
    .hero-cube .cube-logo {
        animation: none;
    }
    
    .hero-cube .neural-cube-3d {
        transform: rotateX(25deg) rotateY(25deg);
    }
}