/* ===========================
   Hero Section - Fully Responsive
   =========================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(500px, 70vh, 700px);
    background: #fff;
    overflow: hidden;
    padding: clamp(40px, 8vw, 80px) 20px;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1280px;
    width: 100%;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
    margin: 0 auto;
}

/* ===========================
   Hero Left Column
   =========================== */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    padding-right: 20px;
     background:#fff;;
}

.hero-left h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 clamp(1rem, 3vw, 1.5rem) 0;
    letter-spacing: -0.02em;
}

.hero-left p {
    color: #334155;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 550px;
    margin: 0 0 clamp(1.5rem, 4vw, 2rem) 0;
    line-height: 1.6;
}

/* ===========================
   Hero Buttons
   =========================== */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: center;
}

.hero-buttons .cta-button,
.hero-buttons .secondary-button {
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1.2rem, 3vw, 1.5rem);
    border-radius: 8px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-buttons .secondary-button {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.hero-buttons .secondary-button:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ===========================
   Hero Right Column
   =========================== */
.hero-right {
    position: relative;
    background: url('../assets/hero.png') center/contain no-repeat;
    border-radius: clamp(12px, 2vw, 20px);
    min-height: clamp(300px, 50vh, 550px);
    box-shadow: none;
    background-color: #fff; /* same as hero background */
}

/* ===========================
   Video Modal - Fully Responsive
   =========================== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.video-modal .video-content {
    background: #fff;
    border-radius: clamp(8px, 2vw, 12px);
    max-width: 95vw;
    max-height: 95vh;
    padding: clamp(16px, 3vw, 24px);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-modal video {
    width: 100%;
    max-width: 900px;
    max-height: 70vh;
    border-radius: clamp(6px, 1.5vw, 8px);
    background: #000;
    display: block;
}

#close-video-modal {
    position: absolute;
    top: clamp(8px, 2vw, 12px);
    right: clamp(12px, 3vw, 20px);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #fff;
    cursor: pointer;
    width: clamp(32px, 6vw, 40px);
    height: clamp(32px, 6vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

#close-video-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

#close-video-modal:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===========================
   Tablet Responsive (768px - 1024px)
   =========================== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .hero-left {
        padding-right: 10px;
    }

    .hero-right {
        min-height: 400px;
    }
}

/* ===========================
   Mobile Responsive (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-left {
        padding-right: 0;
        align-items: center;
    }

    .hero-left h1 {
        max-width: 100%;
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        text-align: center;
    }

    .hero-right {
        min-height: 350px;
        order: -1; /* Move image to top on mobile */
    }
}

/* ===========================
   Small Mobile (max-width: 480px)
   =========================== */
@media (max-width: 480px) {
    .hero {
        padding: 30px 16px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-left h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-left p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        width: 100%;
        max-width: 100%;
        padding: 12px 24px;
    }

    .hero-right {
        min-height: 280px;
        border-radius: 12px;
    }

    .video-modal .video-content {
        padding: 12px;
    }

    .video-modal video {
        max-height: 60vh;
    }

    #close-video-modal {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

/* ===========================
   Extra Small Mobile (max-width: 360px)
   =========================== */
@media (max-width: 360px) {
    .hero {
        padding: 24px 12px;
    }

    .hero-left h1 {
        font-size: 1.5rem;
    }

    .hero-left p {
        font-size: 0.95rem;
    }

    .hero-right {
        min-height: 240px;
    }

    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        font-size: 0.875rem;
        padding: 10px 20px;
    }
}

/* ===========================
   Large Desktop (min-width: 1440px)
   =========================== */
@media (min-width: 1440px) {
    .hero {
        min-height: 700px;
    }

    .hero-container {
        max-width: 1400px;
    }

    .hero-right {
        min-height: 550px;
    }
}

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

.hero-left h1,
.hero-left p,
.hero-buttons {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-left p {
    animation-delay: 0.1s;
}

.hero-buttons {
    animation-delay: 0.2s;
}

/* ===========================
   Touch Device Optimizations
   =========================== */
@media (hover: none) and (pointer: coarse) {
    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        min-height: 48px; /* Touch-friendly size */
    }

    #close-video-modal {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===========================
   Dark Mode Support (Optional)
   =========================== */
@media (prefers-color-scheme: dark) {
    .hero {
        background: #1e293b;
    }

    .hero-left h1 {
        color: #f1f5f9;
    }

    .hero-left p {
        color: #cbd5e1;
    }
}

/* ===========================
   Reduced Motion
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .hero-left h1,
    .hero-left p,
    .hero-buttons,
    .hero-right {
        animation: none;
    }

    .hero-buttons .cta-button:hover,
    .hero-buttons .secondary-button:hover,
    .hero-right:hover,
    #close-video-modal:hover {
        transform: none;
    }
}
