/* Ultra Modern Hero Section with Image Background */

.hero {
    margin-top: 0 !important;
    background:
        linear-gradient(135deg, rgba(15, 15, 35, 0.92) 0%, rgba(26, 26, 46, 0.88) 50%, rgba(22, 33, 62, 0.92) 100%),
        url('/img/qrcodehero.jpeg') center/cover no-repeat fixed !important;
    color: white !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 80px 60px !important;
    position: relative !important;
    overflow: hidden !important;
    background-attachment: fixed !important;
}

/* Enhanced overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(156, 39, 176, 0.15) 0%, transparent 50%);
    z-index: 1;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Centered Text content */
.hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 800px !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
}

.hero-badge::before {
    content: '✨';
    font-size: 12px;
}

/* Hide old logo */
.hero-logo {
    display: none !important;
}

/* Typography */
.hero h1 {
    font-size: 4.5rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 50%, #ffd700 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
}

.hero-subtitle {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

.hero-description {
    font-size: 1.1rem !important;
    opacity: 0.75 !important;
    margin-bottom: 40px !important;
    text-align: center !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Modern buttons */
.hero-buttons {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 32px !important;
    flex-wrap: wrap !important;
}

.hero-buttons .btn {
    position: relative !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff9800) !important;
    color: #000 !important;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4) !important;
    border: none !important;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 48px rgba(255, 193, 7, 0.5) !important;
    color: #000 !important;
}

.hero-buttons .btn-primary::after {
    content: '▶';
    font-size: 0.8rem;
    margin-left: 4px;
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(20px) !important;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Remove default secondary button after icon */
.hero-buttons .btn-secondary::after {
    content: none !important;
}

/* Change Learn More text to See Video with play icon */
a.btn-secondary[href="#how-it-works"] {
    font-size: 0 !important;
}

a.btn-secondary[href="#how-it-works"]::before {
    content: '⏵ See Video' !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    position: static !important;
    z-index: 10 !important;
}

/* Right side - Video section */
.hero-video-section {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
}

.hero-video {
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 600px !important;
}

.video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    padding: 8px;
    margin-bottom: 32px;
}

.demo-video {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    background: #000 !important;
    display: block !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    box-shadow: none !important;
}

.demo-video:hover {
    transform: scale(1.02) !important;
}

/* Video stats */
.video-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    color: white;
}

/* Hide all video and image elements */
.hero-image {
    display: none !important;
}

.hero-video {
    display: none !important;
}

.hero-video-section {
    display: none !important;
}

.video-container {
    display: none !important;
}

.demo-video {
    display: none !important;
}

.video-stats {
    display: none !important;
}

/* Modern Paint Store Challenge Section */
.problem-solution {
    padding: 120px 60px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

.problem-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.problem-solution .container {
    position: relative !important;
    z-index: 2 !important;
}

.problem-solution h2 {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 60px !important;
    background: linear-gradient(135deg, #1e293b, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative !important;
}

.problem-solution h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.cards-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.problem-card, .solution-card {
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 50px 40px !important;
    border-radius: 24px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    border: none !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.problem-card::before, .solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
}

.problem-card::before {
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
}

.solution-card::before {
    background: linear-gradient(135deg, #10b981, #3b82f6) !important;
}

.problem-card:hover, .solution-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) !important;
}

.problem-card .icon, .solution-card .icon {
    font-size: 4rem !important;
    display: block !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
}

.problem-card h3, .solution-card h3 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    position: relative !important;
}

.problem-card h3 {
    color: #dc2626 !important;
}

.solution-card h3 {
    color: #059669 !important;
}

.problem-card ul, .solution-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.problem-card li, .solution-card li {
    padding: 16px 0 !important;
    padding-left: 40px !important;
    position: relative !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.problem-card li:last-child, .solution-card li:last-child {
    border-bottom: none !important;
}

.problem-card li::before {
    content: "✖" !important;
    position: absolute !important;
    left: 0 !important;
    top: 16px !important;
    font-size: 1.2rem !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
}

.solution-card li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 16px !important;
    font-size: 1.2rem !important;
    color: #10b981 !important;
    font-weight: 600 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 80px 40px 60px !important;
        text-align: center !important;
        min-height: auto !important;
    }

    .problem-solution {
        padding: 80px 40px !important;
    }

    .problem-solution h2 {
        font-size: 2.8rem !important;
        margin-bottom: 40px !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-content {
        text-align: center !important;
        padding-right: 0 !important;
        order: 1;
    }

    .hero h1 {
        font-size: 3.5rem !important;
    }

    .hero-subtitle,
    .hero-description {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-video-section {
        padding-left: 0 !important;
        order: 2;
    }

    /* Reset video position for mobile */
    .hero .hero-video,
    .hero-description .hero-video {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 40px auto !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px !important;
    }

    .hero h1 {
        font-size: 2.8rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }

    .video-stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .problem-solution {
        padding: 60px 20px !important;
    }

    .problem-solution h2 {
        font-size: 2.2rem !important;
        margin-bottom: 30px !important;
    }

    .problem-card, .solution-card {
        padding: 30px 24px !important;
    }

    .problem-card h3, .solution-card h3 {
        font-size: 1.6rem !important;
    }

    .problem-card li, .solution-card li {
        font-size: 1rem !important;
        padding-left: 35px !important;
    }
}