/* WorkOS-inspired Hero Section */
.hero-section {
    background: linear-gradient(47deg, rgba(255, 255, 255, 1) 0%, rgb(244 58 9 / 15%) 100%);
    min-height: 71.5vh;
    padding: 0px 0 60px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url('../img/hero-pattern.svg'); */
    background-size: 39px auto;
    background-repeat: repeat;
    background-position: center;
    mask: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.1) 100%);
    -webkit-mask: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 0;
}


/* Background Lines */
.hero-bg-lines {
    position: absolute;
    top: 145px;
    left: 100px;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero-bg-lines.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    scale: 1.5;
}
.hero-bg-lines-r {
    position: absolute;
    top: 300px;
    left: -125px;
    right: 380px;
    bottom: 30px;
    background-image: url(../img/hero-bg-lines_right.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    scale: 1.5;
}

/* Container */
.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    padding-top: 80px;
}

/* Hero Inner Layout */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    padding-right: 20px;
}

.hero-eyebrow {
    font-family: var(--font-primary-GMB);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-heading {
    font-family: var(--font-primary-GMB);
    font-size: clamp(2rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 0.8;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Typewriter Effect */
.hero-heading-static {
    display: block;
    font-size: 1.8em;
}

.hero-heading-typed {
    color: var(--color-primary);
    /* display: inline-block; */
    min-height: 1.1em;
    font-size: 0.85em;
    font-weight: 500;
}

.typewriter-cursor {
    color: var(--color-primary);
    font-weight: 400;
    font-size: 0.85em;
    animation: blink 1s infinite;
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-paragraph {
    font-family: var(--font-primary-GLB);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    text-align: justify;
}

/* CTA Wrap */
.hero-cta-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-primary-GMB);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(244, 58, 9, 0.2);
}

.hero-btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 58, 9, 0.3);
    color: white;
    text-decoration: none;
}

.hero-secondary-btn-margin {
    margin-left: 8px;
}

.hero-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-primary-GMB);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.hero-text-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.hero-text-link-icon {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.hero-text-link:hover .hero-text-link-icon {
    transform: translateX(2px);
}

/* Hero Image Section */
.hero-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 20px;
}

/* Stylish Video Container */
.hero-video {
    position: relative;
    width: 540px;
    height: 340px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-primary-rgb, 244, 58, 9), 0.3);
    box-shadow: 
        0 20px 40px -12px rgba(var(--color-primary-rgb, 244, 58, 9), 0.3),
        0 15px 25px -8px rgba(0, 0, 0, 0.2),
        0 10px 15px rgba(var(--color-primary-rgb, 244, 58, 9), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0px) scale(1.02);
}

.hero-video:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0px) scale(1.02);
    border-radius: 32px;
    box-shadow: 
        0 20px 40px -12px rgba(var(--color-primary-rgb, 244, 58, 9), 0.3),
        0 15px 25px -8px rgba(0, 0, 0, 0.2),
        0 10px 15px rgba(var(--color-primary-rgb, 244, 58, 9), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(var(--color-primary-rgb, 244, 58, 9), 0.3);
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 31px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    transform: scale(1.01);
}

.hero-video:hover video {
    border-radius: 31px;
    transform: scale(1.01);
}

/* Glass reflection effect */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    border-radius: 32px 32px 0 0;
    z-index: 2;
    transition: all 0.4s ease;
    pointer-events: none;
}

.hero-video:hover::before {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    border-radius: 32px 32px 0 0;
}


/* Video Placeholder (fallback) */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-muted);
    font-family: var(--font-primary-GMB);
    border-radius: 31px;
    z-index: 1;
}

.video-placeholder i {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--color-primary);
    opacity: 1;
    text-shadow: 0 4px 8px rgba(var(--color-primary-rgb, 244, 58, 9), 0.3);
    transition: all 0.3s ease;
    transform: scale(1.1);
}

.video-placeholder span {
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-video:hover .video-placeholder i {
    transform: scale(1.1);
    opacity: 1;
}

.hero-video:hover .video-placeholder {
    border-radius: 31px;
}

/* Dark Theme */
[data-theme="dark"] .hero-section::before {
    background-image: url('../img/hero-pattern-dark.svg');
}

[data-theme="dark"] .hero-video {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid rgba(var(--color-redline-rgb, 158, 54, 58), 0.4);
    box-shadow: 
        0 40px 80px -12px rgba(var(--color-redline-rgb, 158, 54, 58), 0.4),
        0 25px 50px -8px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(var(--color-redline-rgb, 158, 54, 58), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-video:hover {
    box-shadow: 
        0 40px 80px -12px rgba(var(--color-redline-rgb, 158, 54, 58), 0.4),
        0 25px 50px -8px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(var(--color-redline-rgb, 158, 54, 58), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--color-redline-rgb, 158, 54, 58), 0.4);
}

[data-theme="dark"] .hero-video::before {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        transparent 100%);
}

[data-theme="dark"] .hero-video:hover::before {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        transparent 100%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-video {
        width: 100%;
        max-width: 400px;
        height: 280px;
        margin: 0 auto;
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(-8px) scale(1.02);
    }
    
    .hero-video:hover {
        transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateY(-8px) scale(1.02);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0 60px;
    }
    
    .hero-section .container {
        padding-top: 60px;
    }
    
    .hero-inner {
        gap: 40px;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-heading-static {
        font-size: 1.15em;
    }
    
    .hero-heading-typed {
        font-size: 0.85em;
    }
    
    .typewriter-cursor {
        font-size: 0.85em;
    }
    
    .hero-cta-wrap {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hero-btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-secondary-btn-margin {
        margin-left: 0;
    }
    
    .hero-video {
        width: 100%;
        max-width: 350px;
        height: 240px;
        border-radius: 24px;
        transform: perspective(600px) rotateX(0deg) translateY(-6px) scale(1.01);
        box-shadow: 
            0 20px 40px -12px rgba(0, 0, 0, 0.2),
            0 8px 16px -8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    
    .hero-video:hover {
        transform: perspective(600px) rotateX(0deg) translateY(-6px) scale(1.01);
        border-radius: 24px;
    }
    
    .hero-video::before {
        border-radius: 24px 24px 0 0;
    }
    
    .hero-video:hover::before {
        border-radius: 24px 24px 0 0;
    }
    
    .hero-video video,
    .video-placeholder {
        border-radius: 23px;
    }
    
    .hero-video:hover video,
    .hero-video:hover .video-placeholder {
        border-radius: 23px;
    }
}