﻿/* ========== HERO SECTION STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00000040;
}

/* VIDEO BACKGROUND LAYER */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #0B1A2E, #030712);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    color: #fff;
    animation: fadeUp 1s ease-out;
}

/* Company badge */
.company-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .company-badge i {
        margin-right: 8px;
        color: #ffc107;
    }

/* Main Heading */
.hero-title {
    font-size: clamp(2.2rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFE6B0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

    .hero-title span {
        background: linear-gradient(120deg, #FFD966, #FFA500);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

/* Dynamic rotating words */
.dynamic-text {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 500;
    margin-bottom: 1.8rem;
    min-height: 3.5rem;
    color: #f0f0f0;
}

.typed-cursor {
    font-size: 1.8rem;
    color: #ffb347;
    opacity: 1;
    animation: blink 0.7s infinite;
}

/* Description */
.hero-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 400;
    color: #f5f5f5;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(95deg, #FF9800, #FF5722);
    color: white;
    box-shadow: 0 8px 20px rgba(255,87,34,0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(255,87,34,0.4);
        background: linear-gradient(95deg, #FF5722, #FF9800);
    }

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    backdrop-filter: blur(4px);
}

    .btn-outline:hover {
        background: white;
        color: #FF5722;
        border-color: white;
        transform: translateY(-3px);
    }

/* Scroll indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-align: center;
    cursor: pointer;
    animation: bounce 2s infinite;
}

    .scroll-down .mouse {
        width: 28px;
        height: 46px;
        border: 2px solid white;
        border-radius: 20px;
        margin: 0 auto;
        position: relative;
    }

        .scroll-down .mouse::before {
            content: "";
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 10px;
            background: white;
            border-radius: 2px;
            animation: scrollWheel 1.5s infinite;
        }

    .scroll-down span {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 1px;
    }

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero {
        min-height: 550px;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 4rem);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-content {
        width: 95%;
        padding: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .dynamic-text {
        margin-bottom: 1rem;
        min-height: 3rem;
    }

    .scroll-down {
        bottom: 15px;
    }

    .company-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
    }

    .hero-buttons {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        justify-content: center;
    }

    .company-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.8rem;
    }

    .hero-description {
        padding: 0 10px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        transform: scale(0.85);
    }

    .scroll-down {
        display: none;
    }
}

/* High-end retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video {
        image-rendering: -webkit-optimize-contrast;
    }
}
