/**
 * Swyfttrade - Hero Slider
 * Smooth, Silky Hero Carousel - Fixed Alignment
 */

.hero-slider {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 90vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 90vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(30px);
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-30px);
}

.hero-slide-content {
    position: relative;
    z-index: 100;
    width: 100%;
    padding: 3rem 0 12rem;
}

/* Background Patterns for Each Slide - Premium Subtle Gradients */
.hero-bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
}

.hero-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
}

.hero-bg-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 0;
}

/* Hero Background Animations - Enhanced with Globe Orbs and Animated Lines */

/* Animated Globe Orbs */
.hero-globe-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.hero-globe-orb {
    position: absolute !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 30%, rgba(17, 119, 58, 0.8) 0%, rgba(17, 119, 58, 0.6) 20%, rgba(17, 119, 58, 0.4) 35%, rgba(17, 119, 58, 0.2) 50%, transparent 75%) !important;
    filter: blur(4px) !important;
    animation: orbFloat 20s ease-in-out infinite !important;
    box-shadow: 0 0 200px rgba(17, 119, 58, 0.7), inset 0 0 150px rgba(17, 119, 58, 0.3) !important;
    border: 2px solid rgba(17, 119, 58, 0.3) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0.9 !important;
    z-index: 2 !important;
}

.hero-globe-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}

.hero-globe-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 3%;
    animation-delay: 5s;
}

.hero-globe-orb:nth-child(3) {
    width: 450px;
    height: 450px;
    top: 35%;
    right: 2%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(-40px, 50px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(50px, -40px) scale(0.95);
        opacity: 0.7;
    }
    75% {
        transform: translate(-30px, -50px) scale(1.05);
        opacity: 0.75;
    }
}

/* Animated Lines Grid */
.hero-animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(17, 119, 58, 0.8), rgba(17, 119, 58, 1), rgba(17, 119, 58, 0.8), transparent);
    animation: lineMove 15s linear infinite;
    box-shadow: 0 0 10px rgba(17, 119, 58, 0.5);
}

.hero-line-horizontal {
    height: 2px;
    width: 100%;
    left: 0;
}

.hero-line-vertical {
    width: 2px;
    height: 100%;
    top: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 119, 58, 0.8), rgba(17, 119, 58, 1), rgba(17, 119, 58, 0.8), transparent);
}

.hero-line-horizontal:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.hero-line-horizontal:nth-child(2) {
    top: 50%;
    animation-delay: 3s;
}

.hero-line-horizontal:nth-child(3) {
    top: 80%;
    animation-delay: 6s;
}

.hero-line-vertical:nth-child(4) {
    left: 25%;
    animation-delay: 1.5s;
}

.hero-line-vertical:nth-child(5) {
    left: 50%;
    animation-delay: 4.5s;
}

.hero-line-vertical:nth-child(6) {
    left: 75%;
    animation-delay: 7.5s;
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hero-line-vertical {
    animation-name: lineMoveVertical;
}

@keyframes lineMoveVertical {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Animated Shapes - Simplified */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(17, 119, 58, 0.05);
    filter: blur(80px);
}

.hero-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
}

.hero-shape:nth-child(2) {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 15%;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 70%;
}

.hero-shape:nth-child(4) {
    width: 280px;
    height: 280px;
    bottom: 30%;
    left: 50%;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

@keyframes shapePulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Grid Pattern Overlay - Subtle */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(17, 119, 58, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 119, 58, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* Slider Navigation - Fixed Position */
.hero-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(17, 119, 58, 0.2);
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(17, 119, 58, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-nav-dot:hover {
    background: rgba(17, 119, 58, 0.5);
    transform: scale(1.2);
}

.hero-nav-dot.active {
    background: var(--gradient-gold);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(17, 119, 58, 0.4);
}

/* Arrow Navigation - Removed for premium design */

/* Content Animation - Fixed to show stats */
.hero-slide.active .hero-content .badge {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content p {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content .stat-value {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content .stat-label {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

.hero-slide.active .hero-content .btn {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

/* Ensure content is visible when active */
.hero-slide.active .hero-content > * {
    opacity: 1;
}

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

/* Wavy Bottom - Fixed Position - Below buttons */
.hero-wavy-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-wavy-bottom svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-wavy-bottom path {
    fill: var(--bg-secondary);
}

/* Remove particles - too distracting */
.hero-particles {
    display: none;
}

/* Mobile: disable slide translateX — prevents horizontal page shift between slides */
@media (max-width: 768px) {
    .hero-slide,
    .hero-slide.active,
    .hero-slide.prev {
        transform: none !important;
    }
}

/* Responsive - Mobile styles moved to hero-premium.css for better organization */
