/* ==================== HERO PARALLAX - PROMPT 7 (Lightweight) ==================== */

/* Hero container */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PARALLAX LAYERS ===== */

/* Background layer - yavaş hareket */
.hero-background,
.hero::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    will-change: transform;
    transform: translateZ(0);
    z-index: 0;
}

/* Midground layer - orta hız */
.hero-midground {
    position: relative;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
}

/* Foreground layer - normal hız */
.hero-content,
.hero-search,
.hero-title {
    position: relative;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
}

/* ===== 3D DEPTH EFFECT ===== */

/* Background moves slower (0.5x scroll speed) */
.hero[data-parallax] .hero-background,
.hero[data-parallax]::before {
    transform: translateY(var(--parallax-bg, 0));
}

/* Midground moves medium (0.3x scroll speed) */
.hero[data-parallax] .hero-midground {
    transform: translateY(var(--parallax-mid, 0));
}

/* Foreground moves normal (0x - stays in place) */
.hero[data-parallax] .hero-content {
    transform: translateY(0);
}

/* ===== DEPTH SHADOWS ===== */

.hero-content {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-title {
    transform: translateZ(50px);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* ===== PARALLAX SCALE EFFECT ===== */

.hero-background {
    transform: scale(1.1); /* Slight scale to prevent gaps */
    transition: transform 0.1s linear;
}

/* ===== SMOOTH PARALLAX ANIMATION ===== */

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-float {
    animation: parallaxFloat 6s ease-in-out infinite;
}

/* ===== DECORATIVE ELEMENTS ===== */

/* Floating shapes for depth */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.1);
    will-change: transform;
}

.hero-shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    transform: translateY(var(--parallax-shape-1, 0));
}

.hero-shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    transform: translateY(var(--parallax-shape-2, 0));
}

.hero-shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    transform: translateY(var(--parallax-shape-3, 0));
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    /* Disable parallax on mobile for better performance */
    .hero[data-parallax] .hero-background,
    .hero[data-parallax] .hero-midground {
        transform: none !important;
    }
    
    .hero-shape {
        display: none;
    }
}

/* ===== PERFORMANCE ===== */

.hero,
.hero-background,
.hero-midground,
.hero-content {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    .hero[data-parallax] * {
        transform: none !important;
        animation: none !important;
    }
}

