@import url('https://fonts.googleapis.com/css2?family=Netflix+Sans:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #000000;
    font-family: 'Netflix Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.netflix-loader {
    text-align: center;
}

.loader-text {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: #e50914;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.loader-bar {
    width: clamp(150px, 40vw, 200px);
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
    animation: loading 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Main Hero Section */
.main {
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%),
                url('asset/images/bg-new.jpg') center/cover no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(15px, 4vw, 25px) clamp(20px, 5vw, 50px);
    position: relative;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
}

.logo img, .logo-img {
    height: clamp(32px, 8vw, 45px);
    width: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo img:hover, .logo-img:hover {
    transform: scale(1.05);
}

.nav-buttons {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    align-items: center;
    flex-wrap: wrap;
}

/* Language Selector Styling */
.language-selector {
    position: relative;
}

.btn-lang, .btn-sign {
    padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 20px);
    border-radius: 6px;
    font-weight: 500;
    font-size: clamp(12px, 2.5vw, 14px);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    background: none;
    outline: none;
    white-space: nowrap;
}

.btn-lang {
    background: rgba(0,0,0,0.5);
    color: white;
    border: 1px solid #666;
    appearance: none;
    padding-right: clamp(25px, 6vw, 35px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1.5 4.5h9L6 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.btn-lang:hover, .btn-lang:focus {
    border-color: white;
    background-color: rgba(0,0,0,0.7);
    transform: translateY(-1px);
}

.btn-lang option {
    background: #000;
    color: white;
    padding: 8px;
}

.btn-sign {
    background: #e50914;
    color: white;
    padding: clamp(8px, 2.5vw, 10px) clamp(16px, 4vw, 24px);
    font-weight: 600;
}

.btn-sign:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

/* Hero Content */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(30px, 8vw, 50px) clamp(15px, 4vw, 20px);
    position: relative;
    z-index: 10;
    max-width: min(800px, 90vw);
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: clamp(1.8rem, 8vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: clamp(15px, 4vw, 20px);
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: white;
    margin-bottom: clamp(10px, 3vw, 15px);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero .cta-text {
    font-size: clamp(0.9rem, 3.5vw, 1.25rem);
    margin-bottom: clamp(20px, 5vw, 30px);
    max-width: min(600px, 90vw);
    font-weight: 500;
}

.email-signup {
    display: flex;
    gap: clamp(10px, 2.5vw, 15px);
    width: 100%;
    max-width: min(600px, 90vw);
    margin: 0 auto;
    margin-top: clamp(15px, 4vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.email-input {
    flex: 1;
    min-width: clamp(200px, 50vw, 250px);
    padding: clamp(15px, 4vw, 20px) clamp(12px, 3vw, 15px);
    background: rgba(22,22,22,0.7);
    border: 1px solid #666;
    border-radius: 6px;
    color: white;
    font-size: clamp(14px, 3.5vw, 16px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #aaa;
}

.email-input:focus {
    outline: none;
    border-color: white;
    background: rgba(22,22,22,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

.get-started-btn {
    padding: clamp(15px, 4vw, 20px) clamp(20px, 5vw, 30px);
    background: #e50914;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
    flex-shrink: 0;
}

.get-started-btn:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.get-started-btn svg {
    transition: transform 0.3s ease;
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
}

.get-started-btn:hover svg {
    transform: translateX(3px);
}

/* Separator */
.separator {
    height: 8px;
    background: #222;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Feature Sections */
.feature-section {
    padding: clamp(40px, 10vw, 80px) clamp(20px, 5vw, 50px);
    display: flex;
    align-items: center;
    gap: clamp(30px, 6vw, 60px);
    max-width: 100%;
    margin: 0;
    min-height: clamp(400px, 60vh, 500px);
    width: 100%;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    background: #000;
    isolation: isolate;
    justify-content: center;
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: -1;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    color: white;
    min-width: clamp(280px, 45vw, 500px);
    z-index: 15;
    position: relative;
    max-width: min(500px, 45vw);
}

.feature-content h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 900;
    margin-bottom: clamp(15px, 4vw, 20px);
    line-height: 1.1;
}

.feature-content p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    color: #ccc;
}

.feature-media {
    flex: 1;
    position: relative;
    min-width: clamp(280px, 45vw, 500px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
    max-width: min(550px, 45vw);
}

.media-container {
    position: relative;
    width: 100%;
    max-width: min(550px, 90vw);
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
    border-radius: 8px;
}

.feature-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 20;
    max-width: 100%;
    display: block;
    background: transparent;
}

.feature-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: auto;
    z-index: 18;
    max-width: 100%;
    background: transparent;
    object-fit: cover;
    border-radius: 4px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feature-video.devices {
    width: 63%;
    top: 34%;
}

/* Video styling */
.feature-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feature-video[poster] {
    background-size: cover;
    background-position: center;
}

/* Mobile Download Animation */
.media-container.mobile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-animation {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
}

.download-box {
    background: #000;
    border: 2px solid #666;
    border-radius: 12px;
    padding: clamp(8px, 2.5vw, 12px) clamp(10px, 3vw, 16px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.5vw, 12px);
    min-width: clamp(180px, 50vw, 220px);
    max-width: clamp(200px, 55vw, 250px);
    animation: downloadPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.show-img {
    width: clamp(32px, 8vw, 40px);
    height: clamp(44px, 11vw, 56px);
    border-radius: 4px;
    background: linear-gradient(45deg, #e50914, #f40612);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(6px, 1.5vw, 8px);
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.download-text {
    flex: 1;
    min-width: 0;
    padding: 0 clamp(5px, 2vw, 8px);
}

.show-title {
    font-weight: 600;
    font-size: clamp(10px, 2.5vw, 12px);
    color: white;
    margin-bottom: clamp(2px, 0.8vw, 3px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-status {
    font-size: clamp(8px, 2vw, 10px);
    color: #0071eb;
    font-weight: 500;
    white-space: nowrap;
}

.download-spinner {
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    border: 2px solid #666;
    border-top: 2px solid #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes downloadPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Section */
.faq-section {
    padding: clamp(40px, 10vw, 80px) clamp(20px, 5vw, 50px);
    background: #000;
    width: 100%;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: -1;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.faq-container {
    max-width: min(800px, 95vw);
    margin: 0 auto;
    position: relative;
    z-index: 15;
}

.faq-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 40px);
    color: white;
}

.faq-list {
    margin-bottom: clamp(40px, 8vw, 60px);
}

.faq-item {
    margin-bottom: 8px;
    background: #2d2d2d;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 20;
}

.faq-item:hover {
    background: #3d3d3d;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(20px, 5vw, 24px);
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.faq-question h3 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: white;
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

.faq-icon {
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: clamp(24px, 6vw, 36px);
    height: clamp(24px, 6vw, 36px);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #2d2d2d;
    width: 100%;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 clamp(20px, 5vw, 24px) clamp(20px, 5vw, 24px);
}

.faq-answer p {
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    line-height: 1.5;
    color: white;
    margin-bottom: clamp(12px, 3vw, 16px);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.final-cta {
    text-align: center;
    margin-top: clamp(30px, 6vw, 40px);
}

.final-cta p {
    font-size: clamp(0.9rem, 3vw, 1.25rem);
    margin-bottom: clamp(20px, 5vw, 30px);
    font-weight: 500;
}

/* Footer */
.footer {
    background: #000;
    padding: clamp(40px, 10vw, 80px) clamp(20px, 5vw, 50px) clamp(20px, 5vw, 40px);
    border-top: 1px solid #333;
    width: 100%;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: -1;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-container {
    max-width: min(1000px, 95vw);
    margin: 0 auto;
    position: relative;
    z-index: 15;
}

.footer-contact {
    margin-bottom: clamp(30px, 6vw, 40px);
}

.footer-contact p {
    color: #999;
    font-size: clamp(14px, 3.5vw, 16px);
}

.footer-contact a {
    color: #999;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 30vw, 200px), 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin-bottom: clamp(30px, 6vw, 40px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 12px);
}

.footer-column a {
    color: #999;
    text-decoration: none;
    font-size: clamp(12px, 3vw, 14px);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.footer-language {
    margin-bottom: clamp(15px, 4vw, 20px);
}

.footer-country {
    color: #999;
    font-size: clamp(12px, 3vw, 14px);
}

/* Responsive Design - Mobile First Approach */
@media screen and (max-width: 768px) {
    .feature-section {
        flex-direction: column !important;
        text-align: center;
        gap: clamp(25px, 5vw, 30px);
    }
    
    .feature-section.reverse {
        flex-direction: column !important;
    }
    
    .email-signup {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    
    .email-input {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .get-started-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .nav-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 1.8rem);
    }
    
    .hero p {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
    
    .hero .cta-text {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
    
    .feature-content h2 {
        font-size: clamp(1.4rem, 5vw, 1.5rem);
    }
    
    .feature-content p {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
    
    .faq-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
    }
    
    .faq-question h3 {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .faq-answer p {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }
    
    .download-box {
        min-width: clamp(160px, 70vw, 180px);
        max-width: clamp(180px, 75vw, 200px);
        padding: clamp(6px, 2vw, 8px) clamp(8px, 2.5vw, 10px);
        gap: clamp(6px, 2vw, 8px);
    }
    
    .show-img {
        width: clamp(28px, 7vw, 36px);
        height: clamp(38px, 9vw, 50px);
        font-size: clamp(5px, 1.3vw, 7px);
    }
    
    .show-title {
        font-size: clamp(9px, 2.2vw, 11px);
    }
    
    .download-status {
        font-size: clamp(7px, 1.8vw, 9px);
    }
    
    .download-spinner {
        width: clamp(28px, 7vw, 36px);
        height: clamp(28px, 7vw, 36px);
        border-width: 2px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Extra Small Mobile Devices */
@media screen and (max-width: 360px) {
    .download-box {
        min-width: clamp(140px, 65vw, 160px);
        max-width: clamp(160px, 70vw, 180px);
        padding: clamp(5px, 1.8vw, 7px) clamp(7px, 2.2vw, 9px);
        gap: clamp(5px, 1.8vw, 7px);
    }
    
    .show-img {
        width: clamp(24px, 6vw, 32px);
        height: clamp(32px, 8vw, 44px);
        font-size: clamp(4px, 1.1vw, 6px);
    }
    
    .show-title {
        font-size: clamp(8px, 2vw, 10px);
    }
    
    .download-status {
        font-size: clamp(6px, 1.6vw, 8px);
    }
    
    .download-spinner {
        width: clamp(24px, 6vw, 32px);
        height: clamp(24px, 6vw, 32px);
        border-width: 1.5px;
    }
}

/* Medium Screen Optimizations */
@media screen and (min-width: 769px) and (max-width: 1199px) {
    .download-box {
        min-width: clamp(240px, 50vw, 300px);
        max-width: clamp(280px, 55vw, 340px);
        padding: clamp(12px, 2.5vw, 14px) clamp(14px, 3vw, 18px);
    }
    
    .show-img {
        width: clamp(44px, 8vw, 52px);
        height: clamp(60px, 10vw, 68px);
    }
    
    .show-title {
        font-size: clamp(13px, 2.5vw, 15px);
    }
    
    .download-status {
        font-size: clamp(11px, 2.2vw, 13px);
    }
}

/* Large Screen Optimizations */
@media screen and (min-width: 1200px) {
    .feature-section {
        gap: 80px;
    }
    
    .hero {
        max-width: 900px;
    }
    
    .email-signup {
        max-width: 700px;
    }
    
    .download-box {
        min-width: 280px;
        max-width: 320px;
        padding: 14px 18px;
    }
    
    .show-img {
        width: 48px;
        height: 64px;
    }
    
    .show-title {
        font-size: 14px;
    }
    
    .download-status {
        font-size: 12px;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero {
    animation: fadeInUp 1s ease-out;
}

.feature-section:nth-child(odd) .feature-content {
    animation: fadeInLeft 1s ease-out;
}

.feature-section:nth-child(even) .feature-content {
    animation: fadeInRight 1s ease-out;
}

.feature-section:nth-child(odd) .feature-media {
    animation: fadeInRight 1s ease-out;
}

.feature-section:nth-child(even) .feature-media {
    animation: fadeInLeft 1s ease-out;
}

/* Scroll animations */
.feature-section, .faq-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.feature-section.animate, .faq-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects */
.feature-section:hover .feature-img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.1), transparent);
    transition: left 0.5s ease;
}

.faq-item:hover::before {
    left: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f40612;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .email-input {
        background: rgba(0, 0, 0, 0.9);
        border-color: white;
    }
    
    .faq-item {
        border: 1px solid #666;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .download-spinner {
        animation: none;
    }
    
    .loading-overlay .loader-bar::after {
        animation: none;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .main {
        background-attachment: scroll;
    }
}

/* Ensure proper stacking context */
.main, .feature-section, .faq-section, .footer {
    position: relative;
    z-index: 1;
}

/* Prevent horizontal scroll on mobile */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .main, .feature-section, .faq-section, .footer {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Fix for scrolling collapse issues */
.feature-section {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.feature-media {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.feature-img {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Better centering for email signup */
.email-signup {
    position: relative;
    z-index: 10;
}

.email-input, .get-started-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Language change animation */
.language-change {
    animation: languageFade 0.3s ease-in-out;
}

@keyframes languageFade {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}