/* ============================================
   SCROLL EXPANSION HERO - MOBILE FIRST
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.scroll-hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Background Layer */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.1s ease-out;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(1.08px);
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Main Container */
.hero-scroll-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Media Container (Video/Image that expands) */
.hero-media-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: none;
    will-change: width, height;
}

.hero-media-wrapper video,
.hero-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay on media */
.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease-out;
    pointer-events: none;
}

/* Text Container */
.hero-text-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
}

.hero-text-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    transition: none;
    will-change: transform;
}

.hero-text-word {
    font-size: 2rem;
    font-weight: 700;
    color: #dbeafe;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-text-rokkitt {
    font-family: 'Rokkitt', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF8C42;
}

/* Subtitle text */
.hero-subtitle {
    font-size: 1rem;
    color: #FF8C42;
    margin-top: 0.5rem;
    transition: none;
    will-change: transform;
}

.hero-scroll-hint {
    font-size: 0.875rem;
    color: #bfdbfe;
    margin-top: 0.5rem;
    transition: none;
    will-change: transform;
}

/* Content Section (appears after expansion) */
.hero-content-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.7s ease-out;
    pointer-events: none;
}

.hero-content-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-content-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero-content-section p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    color: #475569;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-content-section h2 {
        color: #f1f5f9;
    }
    
    .hero-content-section p {
        color: #cbd5e1;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .hero-text-word {
        font-size: 3rem;
    }
    
    .hero-text-rokkitt {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-content-section {
        padding: 3rem 2rem;
    }
    
    .hero-content-section h2 {
        font-size: 2.25rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-scroll-container {
        padding: 0 2rem;
    }
    
    .hero-text-word {
        font-size: 3.75rem;
    }
    
    .hero-text-rokkitt {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content-section {
        padding: 5rem 2rem;
    }
}

/* Performance optimizations */
.hero-media-wrapper,
.hero-text-line,
.hero-subtitle,
.hero-scroll-hint,
.hero-background {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* SEO + AI search section */
 .seo-ai-section { 
    padding: 0 0 3rem 0; 
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff9f5 0%, #fff3eb 50%, #fff9f5 100%);
}

/* Buline mișcătoare orange */
@keyframes float-dot-1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(20px, -25px);
    }
    66% {
        transform: translate(-15px, 15px);
    }
}

@keyframes float-dot-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

@keyframes float-dot-3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, 20px);
    }
    75% {
        transform: translate(-20px, -15px);
    }
}

@keyframes float-dot-4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(25px, -20px) scale(0.9);
    }
}

.seo-ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 140, 66, 0.15) 2px, transparent 2px),
        radial-gradient(circle, rgba(255, 107, 61, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 144, 4, 0.1) 2.5px, transparent 2.5px),
        radial-gradient(circle, rgba(255, 140, 66, 0.08) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 100px 100px, 60px 60px;
    background-position: 0 0, 40px 40px, 20px 20px, 60px 60px;
    animation: float-dot-1 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.seo-ai-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 169, 77, 0.1) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 140, 66, 0.12) 2px, transparent 2px);
    background-size: 90px 90px, 110px 110px;
    background-position: 30px 30px, 70px 10px;
    animation: float-dot-2 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.seo-ai-container {
    position: relative;
    z-index: 2;
}

.seo-ai-banner { 
    border-radius: 12px; 
    padding: 2rem 1rem; 
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.88)), url('/images/k3.webp'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    text-align: center; 
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.seo-ai-container { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1.5rem 0; }
 .seo-ai-title { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; margin-bottom: 1rem; color: #0a0a0a; letter-spacing: -0.01em; }
.text-orange { color: #FF8C42; font-weight: 800; }
 .seo-ai-text { font-size: 1.0625rem; line-height: 1.9; color: #475569; }
.seo-ai-image { max-width: 64rem; margin: 0 auto 1rem; }
.seo-ai-image img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); object-fit: cover; }

/* TextGenerateEffect styles */
.textgen { white-space: normal; }
.textgen span { display: inline-block; margin-right: 0.25rem; transition: opacity .6s ease, filter .6s ease; }

/* AI Search */
ai-search { display: block; }
.ai-search { margin-top: 1.5rem; }
.ai-label { display: block; font-size: .875rem; color: #737373; margin-bottom: .5rem; }
.ai-input-wrap { display: flex; gap: .5rem; }
.ai-input-wrap input { flex: 1; height: 3rem; border: 1px solid #e5e5e5; border-radius: .5rem; padding: 0 .75rem; font-size: 1rem; }
.ai-suggestions { margin-top: .75rem; display: grid; gap: .5rem; }
.ai-suggestion { border: 1px solid #eee; border-radius: .5rem; padding: .75rem; background: #fff; }
.ai-suggestion a { color: #FF6B9D; font-weight: 700; }
