﻿/* ===== HERO SECTION BASE ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 900px;
    overflow: hidden;
    background: #000;
    color: #fff;
    margin-top: 0;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
        visibility: visible;
    }

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
    transition: transform 10s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.25) 100% );
    z-index: 1;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text-wrapper {
    max-width: 800px;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.title-line {
    display: block;
    color: #ffffff;
    font-size: 3.5rem;
    animation: titleSlideIn 1s ease-out 0.5s both;
}

.subtitle-line {
    display: block;
    color: #ffd700;
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 0.3rem;
    animation: subtitleSlideIn 1s ease-out 0.7s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeIn 1s ease 0.9s both;
}

/* ===== HERO BUTTONS ===== */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    animation: fadeIn 1s ease 1.1s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: white;
    opacity: 1 !important;
    visibility: visible !important;
}

    .btn-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
        z-index: -1;
    }

    .btn-hero:hover::before {
        left: 100%;
    }

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
}

.btn-arrow {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Explore Products Button */
.btn-explore {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: 2px solid #27ae60;
}

    .btn-explore:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(39, 174, 96, 0.6);
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }

        .btn-explore:hover .btn-icon {
            background: white;
            color: #27ae60;
            transform: rotate(15deg);
        }

        .btn-explore:hover .btn-arrow {
            background: white;
            color: #27ae60;
            transform: translateX(5px);
        }

/* Contact Us Button */
.btn-contact {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    border: 2px solid #2980b9;
}

    .btn-contact:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(41, 128, 185, 0.6);
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }

        .btn-contact:hover .btn-icon {
            background: white;
            color: #2980b9;
            transform: rotate(15deg);
        }

        .btn-contact:hover .btn-arrow {
            background: white;
            color: #2980b9;
            transform: translateX(5px);
        }

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    position: absolute;
    bottom: 250px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-prev:hover,
    .slider-next:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: white;
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    }

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.dot-visual {
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slider-dot.active .dot-visual {
    width: 14px;
    height: 14px;
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.slider-dot:hover .dot-visual {
    background: white;
    transform: translate(-50%, -50%) scale(1.3);
}

/* ===== HERO STATISTICS ===== */
.hero-statistics {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-top: 3px solid #ffd700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .stat-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: #ffd700;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }

.stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotate(15deg) scale(1.1);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 3px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 320px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    opacity: 0.8;
    animation: bounce 2s infinite;
    text-align: center;
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    position: relative;
    margin: 0 auto 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #ffd700;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-6px);
    }

    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .title-line {
        font-size: 3rem;
    }

    .subtitle-line {
        font-size: 2.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-controls {
        bottom: 270px;
    }

    .scroll-indicator {
        bottom: 340px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 750px;
        max-height: 850px;
    }

    .hero-content {
        padding-top: 120px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .title-line {
        font-size: 2.6rem;
    }

    .subtitle-line {
        font-size: 2.1rem;
    }

    .hero-description {
        font-size: 1.15rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-hero {
        min-width: 250px;
        justify-content: center;
    }

    .slider-controls {
        bottom: 300px;
        gap: 20px;
    }

    .hero-statistics {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        max-height: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .title-line {
        font-size: 2.2rem;
    }

    .subtitle-line {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .btn-hero {
        padding: 14px 25px;
        font-size: 0.95rem;
        min-width: 220px;
    }

    .btn-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .btn-text {
        font-size: 0.95rem;
    }

    .slider-controls {
        bottom: 320px;
        gap: 15px;
    }

    .slider-prev,
    .slider-next {
        width: 45px;
        height: 45px;
    }

    .slider-dot {
        width: 40px;
        height: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .title-line {
        font-size: 1.9rem;
    }

    .subtitle-line {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .slider-controls {
        bottom: 350px;
        flex-direction: column;
        gap: 10px;
    }

    .hero-statistics {
        padding: 15px 0;
    }

    .btn-hero {
        min-width: 200px;
    }
}

/* Ensure buttons are always visible */
.btn-hero {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

/* Fix for statistics section overlapping */
@media (max-height: 700px) {
    .hero-section {
        min-height: 650px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .subtitle-line {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        margin-top: 1.5rem;
    }

    .slider-controls {
        bottom: 280px;
    }

    .scroll-indicator {
        bottom: 360px;
    }
}

/* Ensure proper z-index layering */
.hero-content {
    z-index: 10;
}

.slider-controls {
    z-index: 20;
}

.scroll-indicator {
    z-index: 20;
}

.hero-statistics {
    z-index: 15;
}

/* Image loading animation */
.hero-image {
    transition: opacity 0.5s ease;
}

    .hero-image:not(.loaded) {
        opacity: 0;
    }

    .hero-image.loaded {
        opacity: 1;
    }
