/* _hero.css - REFINED CLASS-BASED SYSTEM */

/* =================
   HERO SECTION - CLASS-BASED SYSTEM ONLY
   ================= */

/* Base hero section styling - CLASS-BASED */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Full-width override for hero sections */
.hero-section.full-width {
    max-width: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
}

/* =================
   LAYOUT FOUNDATION - CONSISTENT ACROSS ALL LAYOUTS
   ================= */

.hero-container {
    max-width: var(--hero-max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-4xl) 0;
}

.hero-content-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-large));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.hero-content-centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content-centered-inner {
    max-width: 800px;
}

/* =================
   ENHANCED IMPRESSIVE TYPOGRAPHY
   ================= */

.hero-title {
    font-family: var(--typography-font-headings-family);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--color-text-inverted);
    margin-bottom: var(--spacing-lg);
    line-height: 0.9;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 20%, #ffffff 40%, #e2e8f0 60%, #ffffff 80%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
    text-shadow: none;
    position: relative;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 0px rgba(255, 255, 255, 0)); }
    100% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4)); }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(0.5); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 300;
}

/* Typography variants */
.hero-title-large {
    font-size: var(--font-size-5xl);
}

.hero-title-fullscreen {
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.1em;
}

.hero-title-parallax {
    font-size: clamp(3rem, 6vw, 6rem);
    transform: translateZ(50px);
}

.hero-title-minimal {
    font-size: var(--font-size-4xl);
    color: var(--color-headings);
    text-shadow: none;
    background: linear-gradient(135deg, var(--color-headings), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-modern {
    font-size: clamp(3rem, 6vw, 6rem);
    background: linear-gradient(135deg, #fff, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.hero-description-fullscreen {
    font-size: var(--font-size-xl);
    max-width: 900px;
}

.hero-description-minimal {
    color: var(--color-text-secondary);
    text-shadow: none;
}

.hero-description-modern {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

/* =================
   STUNNING CTA BUTTONS - IMPRESSIVE EFFECTS
   ================= */

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-2xl);
}

.hero-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius-2xl);
    transition: all var(--duration-normal) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(var(--blur-normal));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left var(--duration-slow) var(--ease-out);
    z-index: -1;
}

.hero-cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--duration-normal) ease-out, height var(--duration-normal) ease-out;
    z-index: -1;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover::after {
    width: 300px;
    height: 300px;
}

.hero-cta-btn.primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-primary) 100%);
    background-size: 200% 200%;
    color: var(--color-text-inverted);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-cta-btn.primary:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 48px rgba(0, 123, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

.hero-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-inverted);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-cta-btn i {
    transition: transform var(--duration-normal) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1em;
}

.hero-cta-btn:hover i {
    transform: translateX(4px) scale(1.1);
}

.hero-cta-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* =================
   LAYOUT VARIATIONS - STANDARDIZED PROFESSIONAL SYSTEM
   ================= */

/* Layout 1: Slideshow Carousel - Modern Professional */
.hero-layout-slideshow {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.hero-layout-slideshow .hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-layout-slideshow .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: all var(--duration-ultra-slow) var(--ease-smooth);
    z-index: 1;
}

.hero-layout-slideshow .hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-layout-slideshow .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-layout-slideshow .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
}

.hero-layout-slideshow .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-full);
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 20;
    backdrop-filter: blur(var(--blur-normal));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-layout-slideshow .hero-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(var(--scale-normal));
    box-shadow: var(--shadow-glow);
}

.hero-layout-slideshow .hero-prev {
    left: var(--spacing-xl);
}

.hero-layout-slideshow .hero-next {
    right: var(--spacing-xl);
}

.hero-layout-slideshow .hero-dots {
    position: absolute;
    bottom: var(--spacing-3xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-md);
    z-index: 20;
}

.hero-layout-slideshow .hero-dot {
    width: 15px;
    height: 15px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-normal);
}

.hero-layout-slideshow .hero-dot.active {
    background: white;
    transform: scale(var(--scale-medium));
    box-shadow: var(--shadow-glow);
}

/* Layout 2: Video Background - Immersive Professional */
.hero-layout-video {
    position: relative;
    height: 100vh;
    overflow: hidden;
    width: 100%;
}

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

.hero-layout-video .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
}

.hero-layout-video .hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-layout-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

/* Layout 3: Split Screen - Premium Professional */
.hero-layout-split .hero-split-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-layout-split .hero-split-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-layout-split .hero-split-content {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-4xl);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-layout-split .hero-split-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate var(--duration-glacial) linear infinite;
}

.hero-layout-split .hero-split-content .hero-content-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: none;
    background: transparent; /* FIXED: Remove background for split layout */
    backdrop-filter: none; /* FIXED: Remove backdrop filter */
    border: none; /* FIXED: Remove border */
    box-shadow: none; /* FIXED: Remove box shadow */
}

.hero-layout-split .hero-split-media {
    position: relative;
    overflow: hidden;
    background: var(--color-background-light);
}

.hero-layout-split .hero-split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) contrast(1.1);
    transition: var(--transition-slow);
}

.hero-layout-split .hero-split-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-layout-split .hero-split-media:hover .hero-split-image {
    transform: scale(var(--scale-normal));
    filter: grayscale(0%) contrast(1.2);
}

/* Layout 4: Minimal Glass - STUNNING MODERN DESIGN */
.hero-layout-minimal {
    background: linear-gradient(135deg,
        var(--color-background-primary) 0%,
        var(--color-background-secondary) 25%,
        var(--color-primary-alpha-light) 50%,
        var(--color-background-secondary) 75%,
        var(--color-background-primary) 100%);
    background-size: 400% 400%;
    animation: gradientFlow 8s ease-in-out infinite;
    position: relative;
    width: 100%;
    overflow: hidden;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.hero-layout-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(220, 53, 69, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 60% 40%, rgba(108, 117, 125, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: floatingOrbs 12s ease-in-out infinite;
}

@keyframes floatingOrbs {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-layout-minimal .hero-minimal-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 100%;
    background-size: cover;
    background-position: center;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.hero-layout-minimal .hero-content-inner {
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-4xl) var(--spacing-2xl);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.25) 100%);
    border-radius: var(--border-radius-3xl);
    backdrop-filter: blur(30px);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-layout-minimal .hero-content-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Layout 5: Parallax Motion - MESMERIZING EFFECTS */
.hero-layout-parallax {
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.hero-layout-parallax .hero-parallax-container {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-layout-parallax .hero-parallax-bg,
.hero-layout-parallax .parallax-element {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    will-change: transform;
    filter: brightness(0.4) contrast(1.3) saturate(1.2);
    animation: parallaxFloat 20s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(0.5deg); }
    50% { transform: scale(1.1) rotate(-0.5deg); }
    75% { transform: scale(1.05) rotate(0.3deg); }
}

.hero-layout-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-layout-parallax .hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-3xl);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    z-index: 10;
    animation: scrollPulse 3s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero-layout-parallax .scroll-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.hero-layout-parallax .scroll-arrow {
    font-size: var(--font-size-2xl);
    animation: bounceArrow 2s ease-in-out infinite;
}

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

/* Layout 6: Centered Glass - Premium Elegant */
.hero-layout-centered .hero-centered-container {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-layout-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--opacity-heavy));
    z-index: 2;
}

.hero-layout-centered .hero-content-inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-large));
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-4xl) var(--spacing-3xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
}

/* Layout 7: Gradient Flow - Dynamic Modern */
.hero-layout-gradient .hero-gradient-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(-45deg, var(--color-primary) 0%, var(--color-secondary) 25%, var(--color-accent, var(--color-primary)) 50%, var(--color-primary) 75%, var(--color-secondary) 100%);
    background-size: 400% 400%;
    animation: gradientShift var(--duration-glacial) ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-layout-gradient .hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Layout 8: Motion Sequence - Animated Professional */
.hero-layout-motion .hero-motion-container {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.hero-layout-motion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    animation: gradientMove var(--duration-ultra-slow) ease-in-out infinite;
}

/* Layout 9: Fullscreen Impact - Maximum Presence */
.hero-layout-fullscreen .hero-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-layout-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-layout-fullscreen .hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Layout 10: Contemporary Shapes - Ultra Modern */
.hero-layout-contemporary .hero-contemporary-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent, var(--color-primary)) 100%);
    width: 100%;
}

.hero-layout-contemporary .hero-contemporary-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: blur(3px) brightness(0.4);
    transform: scale(1.1);
    animation: slowZoom var(--duration-glacial) ease-in-out infinite alternate;
}

.hero-layout-contemporary .hero-contemporary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-layout-contemporary .hero-contemporary-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-layout-contemporary .shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 212, 255, 0.2));
    backdrop-filter: blur(var(--blur-large));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-layout-contemporary .shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    border-radius: var(--border-radius-full);
    animation: float var(--duration-ultra-slow) ease-in-out infinite;
}

.hero-layout-contemporary .shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing calc(var(--duration-glacial) * 0.6) ease-in-out infinite;
}

.hero-layout-contemporary .shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    transform: rotate(45deg);
    animation: rotate calc(var(--duration-glacial) * 0.75) linear infinite;
}

/* =================
   OVERLAY COMPONENTS - CONSISTENT ACROSS ALL LAYOUTS
   ================= */

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--opacity-prominent));
    z-index: 2;
}

.hero-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, var(--opacity-opaque));
    z-index: 2;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, var(--opacity-prominent)) 0%, rgba(0, 0, 0, var(--opacity-moderate)) 100%);
    z-index: 2;
}

/* =================
   ANIMATION INTEGRATION - CLASS-BASED ONLY
   ================= */

/* Hero section always visible */
.hero-section {
    opacity: 1;
    transform: none;
}

.hero-section.section-animate {
    opacity: 1;
    transform: none;
}

/* Hero content stagger animation */
.hero-section .hero-content-inner.stagger-container .stagger-item {
    opacity: 0;
    transform: translateY(var(--scroll-offset-small));
    transition: all var(--duration-normal) var(--ease-smooth);
    transition-delay: calc(var(--stagger-index, 0) * var(--stagger-base));
}

.hero-section .stagger-container.in-view .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button animations */
.hero-section .hero-cta-btn.hover-lift {
    transition: all var(--duration-normal) var(--ease-smooth);
}

.hero-section .hero-cta-btn.hover-lift:hover {
    transform: translateY(calc(-1 * var(--translate-normal))) scale(var(--scale-normal));
    box-shadow: var(--shadow-xl);
}

/* Ripple effect */
.hero-section .ripple {
    position: relative;
    overflow: hidden;
}

.hero-section .ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--duration-slow) var(--ease-out), height var(--duration-slow) var(--ease-out);
}

.hero-section .ripple:active::before {
    width: 300px;
    height: 300px;
}

/* =================
   RESPONSIVE DESIGN - FIXED MOBILE ISSUES
   ================= */

@media (max-width: 768px) {
    /* Fix hero section mobile display */
    .hero-section {
        min-height: 100vh;
        height: auto;
    }

    /* Fix hero content mobile positioning */
    .hero-content {
        min-height: 100vh;
        padding: var(--spacing-2xl) 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content-inner {
        padding: var(--spacing-xl) var(--spacing-md);
        margin: var(--spacing-md);
        width: calc(100% - var(--spacing-lg));
        max-width: none;
    }

    /* Fix typography mobile sizes */
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }

    .hero-description {
        font-size: var(--font-size-base);
        line-height: 1.5;
        margin-bottom: var(--spacing-xl);
    }

    /* Fix CTA buttons mobile layout */
    .hero-cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
    }

    .hero-cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
        margin: 0 auto;
    }

    /* Fix split layout mobile */
    .hero-layout-split .hero-split-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .hero-layout-split .hero-split-content {
        padding: var(--spacing-xl);
        min-height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-layout-split .hero-split-media {
        min-height: 40vh;
        order: -1; /* Image first on mobile */
    }

    /* Fix minimal layout mobile */
    .hero-layout-minimal .hero-content-inner {
        padding: var(--spacing-xl) var(--spacing-lg);
        margin: var(--spacing-md);
        background: rgba(255, 255, 255, 0.95);
    }

    /* Fix parallax scroll indicator mobile */
    .hero-layout-parallax .hero-scroll-indicator,
    .hero-layout-fullscreen .hero-scroll-indicator {
        bottom: var(--spacing-xl);
        font-size: var(--font-size-sm);
    }

    .hero-layout-parallax .scroll-arrow,
    .hero-layout-fullscreen .scroll-arrow {
        font-size: var(--font-size-xl);
    }

    /* Fix carousel navigation mobile */
    .hero-nav {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-sm);
    }

    .hero-nav.hero-prev {
        left: var(--spacing-md);
    }

    .hero-nav.hero-next {
        right: var(--spacing-md);
    }

    .hero-dots {
        bottom: var(--spacing-2xl);
        gap: var(--spacing-sm);
    }

    .hero-dot {
        width: 12px;
        height: 12px;
    }

    /* Fix video layout mobile */
    .hero-layout-video .hero-video-container {
        height: 100vh;
    }

    /* Fix centered layout mobile */
    .hero-layout-centered .hero-content-inner {
        padding: var(--spacing-xl) var(--spacing-lg);
        margin: var(--spacing-md);
        background: rgba(255, 255, 255, 0.15);
    }

    /* Fix contemporary shapes mobile - hide complex shapes */
    .hero-layout-contemporary .shape {
        display: none;
    }

    /* Fix fullscreen mobile */
    .hero-layout-fullscreen .hero-fullscreen-container {
        position: relative;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile fixes */
    .hero-content-inner {
        padding: var(--spacing-lg) var(--spacing-sm);
        margin: var(--spacing-sm);
    }

    .hero-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-xs);
    }

    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
        max-width: 240px;
    }

    .hero-layout-split .hero-split-content {
        padding: var(--spacing-lg);
    }

    .hero-nav {
        width: 40px;
        height: 40px;
    }

    .hero-dots {
        bottom: var(--spacing-lg);
    }
}

/* =================
   ACCESSIBILITY
   ================= */

@media (prefers-reduced-motion: reduce) {
    .hero-section .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-section .hero-cta-btn:hover {
        transform: none;
    }

    .layout-type-hero-carousel .hero-slide {
        animation: none;
        transition: none;
    }

    .layout-type-hero-parallax .hero-parallax-bg,
    .layout-type-hero-parallax .parallax-element {
        background-attachment: scroll;
        position: absolute;
        transform: none;
    }
}

.hero-cta-btn:focus,
.hero-nav:focus,
.hero-dot:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--color-primary-alpha-visible);
}

/* =================
   PERFORMANCE OPTIMIZATIONS
   ================= */

.hero-section .scroll-animate,
.hero-section .stagger-item,
.hero-section .hero-cta-btn,
.hero-section .hero-nav {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* =================
   ANIMATION KEYFRAMES
   ================= */

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(calc(-1 * var(--translate-medium)));
    }
    60% {
        transform: translateY(calc(-1 * var(--translate-small)));
    }
}