/* ========================================
   5. HERO SECTION - WITH VIDEO POPUP
   ======================================== */

.hero {
    background: linear-gradient(135deg,
            rgba(244, 247, 250, 0.3) 0%,
            rgba(36, 167, 55, 0.1) 50%,
            rgba(240, 129, 0, 0.1) 100%);
    background: linear-gradient(100deg, rgba(244, 247, 250, 0.20) 19.97%, rgba(36, 167, 55, 0.10) 63.91%, rgba(240, 129, 0, 0.10) 92.87%);
    padding-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--container-padding);
    align-items: center;
}

.hero-content {
    flex: 1;
    animation: slideInLeft 0.8s ease forwards;
    transition: opacity 0.6s, transform 0.6s;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    line-height: 1.5;
}

.emoji {
    font-size: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent) 100%);
    color: var(--bg-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    box-shadow: 0 4px 16px rgba(255, 37, 101, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-btn::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.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 37, 101, 0.4);
}

.cta-icon {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-base);
}

.cta-btn:hover .cta-icon {
    transform: rotate(90deg);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 140px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--success) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:nth-child(1) {
    background: rgba(89, 184, 166, 0.1);
}

.stat-card:nth-child(2) {
    background: rgba(121, 89, 184, 0.1);
}

.stat-card:nth-child(3) {
    background: rgba(184, 89, 122, 0.1);
}

.stat-card:nth-child(4) {
    background: rgba(184, 168, 89, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    transition: transform var(--transition-base);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-title {
    font-size: var(--font-size-base);
    font-weight: 700;
}

.stat-card:nth-child(1) .stat-title {
    color: #45A18F;
}

.stat-card:nth-child(2) .stat-title {
    color: #7959B8;
}

.stat-card:nth-child(3) .stat-title {
    color: #B34C70;
}

.stat-card:nth-child(4) .stat-title {
    color: #726731;
}

.stat-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    display: flex;
    flex: 1;
    position: relative;
    justify-content: flex-end;
    min-width: 560px;
    align-items: center;
    animation: slideInRight 0.8s ease forwards;
    -webkit-background-clip: text;
    background-clip: text;
    background-color: var(--accent);
    height: 480px;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    -webkit-mask-image: url("https://wdtninos.wpengine.com/wp-content/uploads/2022/10/custom-shape-bg-layer1a.svg");
    mask-image: url("https://wdtninos.wpengine.com/wp-content/uploads/2022/10/custom-shape-bg-layer1a.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    overflow: hidden;
    z-index: -1;
    background-color: inherit;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
    padding: 24px 0 0 0;
    cursor: pointer;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 97%;
    -webkit-mask-image: url("https://wdtninos.wpengine.com/wp-content/uploads/2022/10/custom-shape-bg-layer1a.svg");
    mask-image: url("https://wdtninos.wpengine.com/wp-content/uploads/2022/10/custom-shape-bg-layer1a.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
    overflow: hidden;
}

/* ========================================
   VIDEO PLAY BUTTON - NEW
   ======================================== */

.hero-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.hero-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(244, 124, 42, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(244, 124, 42, 0.4);
    transition: all var(--transition-base);
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    pointer-events: all;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.hero-play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
    animation: none;
    box-shadow: 0 12px 32px rgba(244, 124, 42, 0.5);
}

.hero-play-btn svg {
    width: 36px;
    height: 36px;
    fill: white;
    margin-left: 4px;
}

/* ========================================
   VIDEO POPUP MODAL - NEW
   ======================================== */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-close:hover {
    background: white;
    transform: rotate(90deg);
}

.video-close svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 2;
}

/* ========================================
   HIDE ELFSIGHT WIDGET TEXT - NEW
   ======================================== */

/* Hide Elfsight branding link */
a[href*="elfsight.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Alternative selectors for Elfsight branding */
.es-widget-branding,
.feed-powered-by-es,
.elfsight-widget-link,
[class*="elfsight"][class*="branding"] {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any "Free Widget" or "Powered by" text */
a[href*="utm_source=websites"]:contains("Free"),
a[href*="utm_campaign=free-widget"] {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-play-btn {
        width: 60px;
        height: 60px;
    }

    .hero-play-btn svg {
        width: 28px;
        height: 28px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-close {
        top: -35px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-play-btn {
        width: 50px;
        height: 50px;
    }

    .hero-play-btn svg {
        width: 24px;
        height: 24px;
    }
}