:root {
            --primary: #4361ee;
            --secondary: #3a0ca3;
            --accent: #7209b7;
            --light: #f8f9fa;
            --dark: #212529;
            --success: #4cc9f0;
            --warning: #f72585;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }
        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--light);
            overflow-x: hidden;
            width: 100%;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        /* Header & Navigation */
        header {
            position: relative;
            color: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
            overflow: hidden;
        }
        .header-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
        }
        .header-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: -1;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            position: relative;
            z-index: 1;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 1.4rem;
            font-weight: 700;
        }
        .logo i {
            color: var(--accent);
        }
        nav ul {
            display: flex;
            list-style: none;
            gap: 5px;
            font-size: 0.85rem;
            font-weight: 400;
        }
        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 5px;
            font-size: 0.85rem;
        }
        nav a:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        .nav-buttons {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        .nav-buttons .btn {
            font-size: 0.8rem;
        }
        .btn {
            padding: 10px 20px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        .btn-outline {
            background: transparent;
            border: 2px solid white;
            color: white;
        }
        .btn-outline:hover {
            background: white;
            color: var(--primary);
        }
        .btn-primary {
            background: var(--accent);
            color: white;
        }
        .btn-primary:hover {
            background: #5a08a0;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        .language-selector {
            position: relative;
            margin-left: 15px;
        }
        .language-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .language-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            color: var(--dark);
            border-radius: 5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 200px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            z-index: 1001;
        }
        .language-dropdown.show {
            display: block;
        }
        .language-option {
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .language-option:hover {
            background: var(--light-gray);
        }
 /* Hamburger Menu - Always visible on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: relative;
    
}

/* Hamburger lines */
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    z-index: 10002; /* Above hero text (z-index: 1) and video overlay */
}
        /* Hero Section */
        .hero {
            padding: 100px 0;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
        }
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: -1;
        }
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            /* z-index: 1; */
        }
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            line-height: 1.2;
        }
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }
        .hero-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
        }
        .hero-buttons .btn,
        .hero-buttons a,
        .hero-buttons a.btn,
        .hero-buttons a.btn-primary,
        .hero-buttons a.btn-outline,
        .hero-buttons a.btn-large {
            text-decoration: none !important;
        }
        
        .hero-buttons a:hover,
        .hero-buttons a.btn:hover,
        .hero-buttons a.btn-primary:hover,
        .hero-buttons a.btn-outline:hover,
        .hero-buttons a.btn-large:hover {
            text-decoration: none !important;
        }
        
        .hero-buttons a span,
        .hero-buttons a.btn span {
            text-decoration: none !important;
        }
        
        .btn-large,
        a.btn-large {
            text-decoration: none !important;
        }
        
        .btn-large:hover,
        a.btn-large:hover {
            text-decoration: none !important;
        }
        
        .btn,
        a.btn {
            text-decoration: none !important;
        }
        
        .btn:hover,
        a.btn:hover {
            text-decoration: none !important;
        }
        .btn-large {
            padding: 15px 30px;
            font-size: 1.1rem;
        }
        /* Video Generator Section */
        .video-generator {
            padding: 80px 0;
            background: white;
        }
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }
        .section-title p {
            color: var(--gray);
            max-width: 600px;
            margin: 0 auto;
        }
        .generator-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
            max-width: 900px;
            margin: 0 auto;
        }
        .input-section {
            background: var(--light);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            width: 100%;
        }
        .form-group {
            margin-bottom: 25px;
        }
        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--dark);
        }
        .form-control {
            width: 100%;
            padding: 15px;
            border: 1px solid var(--light-gray);
            border-radius: 10px;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }
        .aspect-ratio-selector, .template-selector {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .aspect-option, .template-option {
            flex: 1;
            min-width: 120px;
            text-align: center;
            padding: 12px;
            border: 2px solid var(--light-gray);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .template-option {
            min-width: 100px;
            flex: 0 1 calc(33.333% - 10px);
        }
        .aspect-option:hover, .template-option:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
        }
        .aspect-option.active, .template-option.active {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.1);
            box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
        }
        .aspect-option i, .template-option i {
            font-size: 1.5rem;
            margin-bottom: 8px;
            display: block;
        }
        .template-option span {
            font-size: 0.9rem;
            font-weight: 500;
        }
        .file-upload {
            border: 2px dashed var(--light-gray);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .file-upload:hover {
            border-color: var(--primary);
        }
        .file-upload i {
            font-size: 2.5rem;
            color: var(--gray);
            margin-bottom: 15px;
        }
        .file-upload p {
            color: var(--gray);
            margin-bottom: 10px;
        }
        .file-upload small {
            color: var(--gray);
        }
        #file-list {
            margin-top: 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .file-item {
            background: var(--light-gray);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .file-item i {
            cursor: pointer;
            color: var(--warning);
        }
        .preview-section {
            background: var(--light);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            width: 100%;
        }
        
        .variants-section {
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            width: 100%;
            margin-top: 20px;
        }
        
        .template-selection-section {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            width: 100%;
            margin-top: 20px;
        }
        .preview-placeholder {
            text-align: center;
            color: var(--gray);
        }
        .preview-placeholder i {
            font-size: 4rem;
            margin-bottom: 20px;
            color: var(--light-gray);
        }
        .preview-video {
            width: 100%;
            border-radius: 10px;
            display: none;
            background-color: #000;
            object-fit: contain;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .preview-video[style*="display: block"] {
            display: block !important;
        }
        .generate-btn {
            width: 100%;
            margin-top: 20px;
            padding: 15px;
            font-size: 1.1rem;
            background: var(--gradient);
        }
        .generate-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(67, 97, 238, 0.3);
        }
        .generate-btn:disabled {
            background: var(--gray);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        /* Demo Section */
        .demo {
            padding: 80px 0;
            background: var(--light);
        }
        .demo-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
            border-bottom: 1px solid var(--light-gray);
        }
        .demo-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            font-size: 1rem;
            font-weight: 600;
            color: var(--gray);
            cursor: pointer;
            position: relative;
        }
        .demo-tab.active {
            color: var(--primary);
        }
        .demo-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--primary);
            border-radius: 3px 3px 0 0;
        }
        .demo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            justify-content: center;
            justify-items: center;
            max-width: 1000px;
            margin: 0 auto;
        }
        .demo-item {
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: white;
            overflow: hidden;
            position: relative;
        }
        .demo-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        .demo-item.portrait {
            aspect-ratio: 9/16;
            max-width: 100%;
        }
        .demo-item.landscape {
            aspect-ratio: 16/9;
        }
        .demo-item img, .demo-item video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            background: #000;
        }
        /* Fullscreen video styles */
        video:fullscreen,
        video:-webkit-full-screen,
        video:-moz-full-screen,
        video:-ms-fullscreen {
            object-fit: contain !important;
            background: #000 !important;
        }
        /* Portrait videos in fullscreen - maintain portrait orientation */
        video.portrait-video:fullscreen,
        video.portrait-video:-webkit-full-screen,
        video.portrait-video:-moz-full-screen,
        video.portrait-video:-ms-fullscreen {
            width: calc(100vh * 9 / 16) !important;
            height: 100vh !important;
            max-width: calc(100vh * 9 / 16) !important;
            max-height: 100vh !important;
            min-width: calc(100vh * 9 / 16) !important;
            min-height: 100vh !important;
            object-fit: contain !important;
            aspect-ratio: 9 / 16 !important;
            margin: 0 auto !important;
        }
        /* Ensure portrait videos maintain aspect ratio */
        video[data-aspect-ratio="9/16"]:fullscreen,
        video[data-aspect-ratio="9/16"]:-webkit-full-screen,
        video[data-aspect-ratio="9/16"]:-moz-full-screen,
        video[data-aspect-ratio="9/16"]:-ms-fullscreen {
            width: calc(100vh * 9 / 16) !important;
            height: 100vh !important;
            max-width: calc(100vh * 9 / 16) !important;
            max-height: 100vh !important;
            min-width: calc(100vh * 9 / 16) !important;
            min-height: 100vh !important;
            object-fit: contain !important;
            aspect-ratio: 9 / 16 !important;
            margin: 0 auto !important;
        }
        /* Landscape videos in fullscreen - maintain landscape orientation */
        video.landscape-video:fullscreen,
        video.landscape-video:-webkit-full-screen,
        video.landscape-video:-moz-full-screen,
        video.landscape-video:-ms-fullscreen {
            width: 100vw !important;
            height: calc(100vw * 9 / 16) !important;
            max-width: 100vw !important;
            max-height: calc(100vw * 9 / 16) !important;
            min-width: 100vw !important;
            min-height: calc(100vw * 9 / 16) !important;
            object-fit: contain !important;
            aspect-ratio: 16 / 9 !important;
            margin: auto 0 !important;
        }
        video[data-aspect-ratio="16/9"]:fullscreen,
        video[data-aspect-ratio="16/9"]:-webkit-full-screen,
        video[data-aspect-ratio="16/9"]:-moz-full-screen,
        video[data-aspect-ratio="16/9"]:-ms-fullscreen {
            width: 100vw !important;
            height: calc(100vw * 9 / 16) !important;
            max-width: 100vw !important;
            max-height: calc(100vw * 9 / 16) !important;
            min-width: 100vw !important;
            min-height: calc(100vw * 9 / 16) !important;
            object-fit: contain !important;
            aspect-ratio: 16 / 9 !important;
            margin: auto 0 !important;
        }
        video.landscape-video:fullscreen,
        video.landscape-video:-webkit-full-screen,
        video.landscape-video:-moz-full-screen,
        video.landscape-video:-ms-fullscreen {
            width: 100vw !important;
            height: auto !important;
            max-width: 100vw !important;
            max-height: 100vh !important;
        }
        .demo-item .demo-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            color: white;
            padding: 20px;
            transform: translateY(0);
            transition: transform 0.3s ease;
        }
        .demo-item:hover .demo-overlay {
            transform: translateY(0);
        }
        .demo-item .demo-overlay h3 {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
        .demo-item .demo-overlay p {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        .demo-item-container {
            position: relative;
            height: 100%;
        }
        .demo-play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: rgba(67, 97, 238, 0.9);
            border: 3px solid white;
            color: white;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            opacity: 1;
        }
        .demo-play-button:hover {
            background: rgba(67, 97, 238, 1);
            transform: translate(-50%, -50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }
        .demo-play-button:active {
            transform: translate(-50%, -50%) scale(0.95);
        }
        .demo-item video.playing + .demo-play-button {
            opacity: 0.8;
        }
        .demo-item:hover .demo-play-button {
            opacity: 1;
        }
        .demo-item video.paused + .demo-play-button {
            opacity: 1;
        }
        /* Tutorials Section */
        .tutorials-section {
            padding: 80px 0;
            background: white;
        }
        .tutorials-section .section-title {
            margin-bottom: 50px;
        }
        .tutorials-portrait-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            max-width: 100%;
            margin: 0 auto 40px;
        }
        .tutorials-landscape-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            max-width: 100%;
            margin: 0 auto;
        }
        .tutorials-section .demo-item.portrait {
            aspect-ratio: 9/16;
            width: 100%;
        }
        .tutorials-section .demo-item.landscape {
            aspect-ratio: 16/9;
            width: 100%;
        }
        /* Features Section */
        .features {
            padding: 80px 0;
            background: white;
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .feature-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            text-align: center;
            transition: transform 0.3s ease;
        }
        .feature-card:hover {
            transform: translateY(-10px);
        }
        .feature-icon {
            width: 70px;
            height: 70px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
        }
        .feature-icon i {
            font-size: 1.8rem;
            color: white;
        }
        .feature-card h3 {
            margin-bottom: 15px;
            color: var(--dark);
        }
        .feature-card p {
            color: var(--gray);
        }
        /* Pricing Section */
        .pricing {
            padding: 80px 0;
            background: var(--light);
        }
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .pricing-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
            position: relative;
        }
        .pricing-card:hover {
            transform: translateY(-10px);
        }
        .pricing-card.popular {
            border: 2px solid var(--primary);
            transform: scale(1.05);
        }
        .pricing-card.popular:hover {
            transform: scale(1.05) translateY(-10px);
        }
        .popular-badge {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--primary);
            color: white;
            padding: 8px 20px;
            font-size: 0.8rem;
            font-weight: 600;
            border-bottom-left-radius: 15px;
        }
        .pricing-header {
            padding: 30px;
            text-align: center;
            background: var(--gradient);
            color: white;
        }
        .pricing-header h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }
        .pricing-header .price {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 5px;
        }
        .pricing-header .period {
            opacity: 0.8;
        }
        .pricing-features {
            padding: 30px;
        }
        .pricing-features ul {
            list-style: none;
        }
        .pricing-features li {
            padding: 10px 0;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .pricing-features li:last-child {
            border-bottom: none;
        }
        .pricing-features i {
            color: var(--success);
        }
        .pricing-action {
            padding: 0 30px 30px;
            text-align: center;
        }
        .pricing-action .btn {
            width: 100%;
            padding: 14px 24px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .pricing-action .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
        }
        .pricing-action .btn-primary {
            background: var(--gradient);
            color: white;
            border: none;
        }
        .pricing-action .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }
        .pricing-action .btn-outline:hover {
            background: var(--primary);
            color: white;
        }
        /* Auth Modals */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .modal.show {
            display: flex;
        }
        .modal-content {
            background: white;
            width: 90%;
            max-width: 380px;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
        }
        .close-modal {
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 1.4rem;
            cursor: pointer;
            color: var(--gray);
        }
        .modal-title {
            text-align: center;
            margin-bottom: 18px;
            font-size: 1.4rem;
            color: var(--primary);
        }
        .auth-form .form-group {
            margin-bottom: 16px;
        }
        .auth-form .form-group label {
            font-size: 0.9rem;
            margin-bottom: 6px;
        }
        .auth-form .form-control {
            padding: 10px 12px;
            font-size: 0.95rem;
        }
        .auth-form .btn {
            width: 100%;
            margin-top: 8px;
            padding: 10px;
            font-size: 0.95rem;
        }
        .auth-switch {
            text-align: center;
            margin-top: 15px;
            font-size: 0.9rem;
            color: var(--gray);
        }
        .auth-switch a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        .error-message {
            color: var(--warning);
            font-size: 0.85rem;
            margin-top: 4px;
            display: none;
        }
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 60px 0 30px;
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-column h3 {
            margin-bottom: 20px;
            font-size: 1.2rem;
        }
        .footer-column ul {
            list-style: none;
        }
        .footer-column ul li {
            margin-bottom: 10px;
        }
        .footer-column a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
        }
        .footer-column a:hover {
            color: white;
        }
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
        }
        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
        }
        /* Hero Section Before Footer */
        .hero-footer {
            position: relative;
            height: 70vh;
            overflow: hidden;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .hero-footer-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
            filter: blur(5px);
            -webkit-filter: blur(5px);
            transform: scale(1.05);
            will-change: filter;
        }
        .hero-footer-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: -1;
        }
        .hero-footer-content {
            max-width: 800px;
            padding: 0 20px;
            position: relative;
            z-index: 1;
        }
        .hero-footer h2 {
            font-size: 3rem;
            margin-bottom: 20px;
            line-height: 1.2;
        }
        .hero-footer p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }
        /* Enhanced Card Styles */
        .demo-item {
            position: relative;
            overflow: hidden;
        }
        .demo-item .demo-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 20px;
            transform: translateY(0);
            transition: all 0.3s ease;
        }
        .demo-item:hover .demo-overlay {
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            padding-bottom: 25px;
        }
        .demo-item .demo-overlay h3 {
            font-size: 1.2rem;
            margin-bottom: 8px;
            font-weight: 600;
        }
        .demo-item .demo-overlay p {
            font-size: 0.9rem;
            opacity: 0.9;
            line-height: 1.4;
        }
        .demo-item {
            position: relative;
        }
        .demo-item::before {
            content: '✓ Success';
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--success);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        /* Responsive Styles */
        @media (max-width: 992px) {
            .generator-container {
                max-width: 100%;
                padding: 0 15px;
            }
            
            .variants-section {
                padding: 30px 20px;
            }
            
            #variantsGrid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
                gap: 20px !important;
            }
           
            .hero h1 {
                font-size: 2.8rem;
            }
           
            .demo-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
           
            .pricing-grid {
                grid-template-columns: 1fr;
            }
           
            .pricing-card.popular {
                transform: none;
            }
           
            .pricing-card.popular:hover {
                transform: translateY(-10px);
            }
        }
        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: rgba(0, 0, 0, 0.9);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }
           
            .hamburger {
                display: flex;
            }
           
            .nav-buttons .btn {
                display: none;
            }
           
            .hero h1 {
                font-size: 2.2rem;
            }
           
            .hero p {
                font-size: 1rem;
            }
           
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
           
            .section-title h2 {
                font-size: 2rem;
            }
           
            .demo-tabs {
                flex-wrap: wrap;
            }
           
            .demo-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .tutorials-portrait-row {
                grid-template-columns: repeat(2, 1fr) !important;
                max-width: 100% !important;
            }
           
            .hero-footer h2 {
                font-size: 2.2rem;
            }
           
            .hero-footer p {
                font-size: 1rem;
            }
        }
        @media (max-width: 576px) {
            .header-container {
                padding: 10px 0;
            }
           
            .logo {
                font-size: 1.5rem;
            }
           
            .hero {
                padding: 70px 0;
            }
           
            .video-generator, .features, .demo, .pricing, .tutorials-section {
                padding: 50px 0;
            }
           
            .input-section, .preview-section, .variants-section, .template-selection-section {
                padding: 20px;
            }
            
            .variants-section {
                padding: 25px 15px;
            }
            
            #variantsGrid {
                grid-template-columns: 1fr !important;
                gap: 15px !important;
            }
            
            #videoEditor > div {
                grid-template-columns: 1fr !important;
            }
           
            .demo-grid {
                grid-template-columns: 1fr;
            }
            
            .tutorials-portrait-row {
                grid-template-columns: 1fr !important;
                max-width: 100% !important;
            }
           
            .aspect-ratio-selector {
                flex-direction: column;
            }
            
            .generate-btn {
                width: 100% !important;
                max-width: 100% !important;
            }
           
            .hero-footer {
                height: 60vh;
            }
        }
        /* Loading Animation */
        /* Processing Modal */
        .processing-modal {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            background: rgba(0, 0, 0, 0.85) !important;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 99999 !important;
            backdrop-filter: blur(5px);
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .processing-modal[style*="flex"] {
            display: flex !important;
        }
        
        .processing-modal-content {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }
        
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .processing-spinner {
            margin-bottom: 20px;
        }
        
        .processing-spinner .spinner {
            width: 60px;
            height: 60px;
            border: 5px solid var(--light-gray);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .processing-modal-content h3 {
            color: var(--dark);
            margin-bottom: 10px;
            font-size: 1.5rem;
        }
        
        .processing-time {
            color: var(--gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
        }
        
        .processing-status {
            margin-bottom: 20px;
            min-height: 40px;
        }
        
        .status-message {
            color: var(--primary);
            font-weight: 500;
            font-size: 1rem;
            margin: 0;
            animation: fadeIn 0.5s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .processing-progress {
            width: 100%;
            height: 8px;
            background: var(--light-gray);
            border-radius: 10px;
            overflow: hidden;
            margin-top: 20px;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--gradient);
            border-radius: 10px;
            width: 0%;
            transition: width 0.3s ease;
            animation: progressPulse 2s ease-in-out infinite;
        }
        
        @keyframes progressPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        .loader {
            display: none;
            width: 50px;
            height: 50px;
            border: 5px solid var(--light-gray);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Success Message */
        .success-message {
            display: none;
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 10px;
            margin-top: 20px;
            text-align: center;
        }
        .user-info {
            display: none;
            align-items: center;
            gap: 10px;
            color: white;
        }
        .user-avatar {
            width: 35px;
            height: 35px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        .logout-btn {
            background: transparent;
            border: 1px solid white;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.8rem;
        }
       
        .hero-header {
            position: relative;
            height: 100vh;
            overflow: hidden;
            color: white;
        }
        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -2;
            filter: blur(5px);
            -webkit-filter: blur(5px);
            transform: scale(1.05);
            will-change: filter;
        }
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: -1;
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 50px;
            position: relative;
            z-index: 1;
        }
        .hero-content {
            position: relative;
            text-align: center;
            top: 40%;
            transform: translateY(-50%);
            z-index: -1;
           
        }
        .hero-content h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.2;
        }
        .hero-content p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            color: #f1f1f1;
            line-height: 1.6;
        }
        /* Mobile Navigation Menu - Ensure it appears above hero */
@media (max-width: 567px) {
 nav ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1001; /* Below hamburger but above hero content */
  border-radius: 0 0 10px 10px;
}

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    /* Optional: Animate hamburger to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Remove border-radius from Google login button */
#googleLoginBtn,
#googleLoginBtn *,
#googleLoginBtn div[role="button"],
#googleLoginBtn iframe,
#googleLoginBtn > div,
#googleLoginBtn > div > div,
#googleLoginBtn > div > iframe {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Optimize Google button container */
#googleLoginBtn {
    border-radius: 0 !important;
    overflow: hidden;
    position: relative;
}

/* Ensure Google's rendered button has no border-radius */
#googleLoginBtn iframe {
    border-radius: 0 !important;
    border: none !important;
}
