/* ══════════════════════════════════════════════
   Hero Slider
   ══════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--hero-glow-1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, var(--hero-glow-2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, var(--hero-glow-1) 0%, transparent 50%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1.2; }
}

/* ── Hero Background Images ── */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-bg-img.active {
    opacity: 1;
}

[data-theme="dark"] .hero-bg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.88) 0%,
        rgba(10, 10, 15, 0.75) 40%,
        rgba(10, 10, 15, 0.6) 100%
    );
}

[data-theme="light"] .hero-bg-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 247, 250, 0.92) 0%,
        rgba(245, 247, 250, 0.8) 40%,
        rgba(245, 247, 250, 0.65) 100%
    );
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* ── Slider ── */
.hero-slider {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
}

.hero-slide {
    display: none;
    animation: fadeSlide 0.8s ease;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

/* ── Slider Controls ── */
.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot.active {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
}

.hero-dot:hover {
    background: rgba(0, 180, 216, 0.5);
}

.hero-arrows {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.hero-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 180, 216, 0.1);
}

/* ── Slide progress bar ── */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 5;
    transition: width 0.3s linear;
}

@media (max-width: 768px) {
    .hero-arrows { display: none; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Floating Icons ── */
.hero-float {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    animation: float 6s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: -120px; left: 0; animation-delay: 0s; }
.float-icon:nth-child(2) { top: -40px; left: 100px; animation-delay: 1s; }
.float-icon:nth-child(3) { top: 40px; left: -20px; animation-delay: 2s; }
.float-icon:nth-child(4) { top: 120px; left: 80px; animation-delay: 3s; }
.float-icon:nth-child(5) { top: 0; left: 200px; animation-delay: 1.5s; }
.float-icon:nth-child(6) { top: 80px; left: 180px; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@media (max-width: 1024px) {
    .hero-float { display: none; }
}
