/* Hero Section Styles */
:root {
    --primary: #5850ec;
    --primary-dark: #4338ca;
    --secondary: #34d399;
    --light: #f0f5ff;
    --dark: #111827;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #5850ec, #6366f1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(-3deg, #ffffff 40%, #dbe8ff 40%) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 80, 236, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    top: -400px;
    right: -400px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -300px;
    left: -300px;
    z-index: 0;
}

.floating-element {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    pointer-events: none;
}

.el1 {
    width: 60px;
    height: 60px;
    background-color: rgba(88, 80, 236, 0.1);
    top: 15%;
    right: 15%;
    animation: float 8s ease-in-out infinite, rotate 12s linear infinite;
}

.el2 {
    width: 40px;
    height: 40px;
    background-color: rgba(52, 211, 153, 0.1);
    top: 60%;
    left: 15%;
    animation: float 6s ease-in-out infinite reverse, rotate 10s linear infinite reverse;
}

.el3 {
    width: 80px;
    height: 80px;
    background-color: rgba(99, 102, 241, 0.1);
    bottom: 15%;
    right: 20%;
    animation: float 10s ease-in-out infinite, rotate 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.4s;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.demo-container {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 30px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.6s;
}

.demo-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s ease;
}

.demo-video:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #f8f9fa;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.demo-video:hover .placeholder-img {
    transform: scale(1.05);
}

.demo-video:hover .video-placeholder {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s ease;
}

.video-thumbnail-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Above other layers during loading */
    opacity: 1;
    transition: opacity 0.5s ease;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-interaction-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    cursor: default;
    pointer-events: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

.overlay-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.overlay-badge {
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.demo-cta {
    padding: 20px;
}

.cta-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: left;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.cta-box h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.cta-box p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

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

/* Typing Animation */
.typed-text {
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--dark);
    animation: blink 1s infinite;
}

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

/* Responsive styles for hero section */
@media (max-width: 992px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 42px;
    }

    .demo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-cta {
        padding: 0;
    }

    .cta-box {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .demo-video {
        transform: none;
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }

    /* Fixed video container for tablets/mobile */
    .video-placeholder {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
        background-color: #f8f9fa;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }

    .demo-video.mobile-optimized {
        height: auto;
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-lg);
    }

    .demo-video.mobile-optimized .video-placeholder {
        /* Use a more neutral background color */
        background-color: #f8f9fa;
    }

    /* Ensure video is properly displayed on mobile */
    .demo-video.mobile-optimized video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 1 !important;
        display: block !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    /* Improved mobile video container styles */
    .video-placeholder {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        background-color: #f8f9fa;
        overflow: hidden;
    }

    .video-placeholder video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .video-placeholder img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .overlay-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .overlay-content {
        bottom: 10px;
        right: 10px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-box {
        padding: 25px 20px;
    }

    .cta-box h3 {
        font-size: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }
} 