/* CSS Variables - Material 3 */
:root {
    --color-primary: #C85A54;
    --color-on-primary: #FFFFFF;
    --color-primary-container: #D67B6F;
    --color-on-primary-container: #2C3E50;
    --color-secondary: #2C3E50;
    --color-on-secondary: #FFFFFF;
    --color-secondary-container: #4A6B7C;
    --color-on-secondary-container: #FFFFFF;
    --color-tertiary: #E74C3C;
    --color-on-tertiary: #FFFFFF;
    --color-background: #F0F0F0;
    --color-on-background: #2C3E50;
    --color-surface: #FFFFFF;
    --color-on-surface: #2C3E50;
    --color-surface-variant: #FFFFFF;
    --color-on-surface-variant: #2C3E50;
    --color-error: #E74C3C;
    --color-on-error: #FFFFFF;
    --color-error-container: #FFEBEE;
    --color-on-error-container: #E74C3C;

    /* Brand aliases (optioneel) */
    --brand-red: #C85A54;
    --brand-navy: #2C3E50;
    --brand-red-accent: #E74C3C;

    /* Aliases zodat bestaande CSS blijft werken */
    --primary: var(--color-primary);
    --secondary: var(--color-secondary);
    --accent: var(--color-tertiary);
    --background: var(--color-background);
    --surface: var(--color-surface);
    --text: var(--color-on-surface);
    --text-secondary: var(--color-on-surface-variant);
    --border: var(--color-on-surface-variant);
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-container));
}

[data-theme="dark"] {
    --color-primary: #C85A54;
    --color-on-primary: #FFFFFF;
    --color-secondary: #2C3E50;
    --color-on-secondary: #FFFFFF;
    --color-tertiary: #E74C3C;
    --color-on-tertiary: #FFFFFF;
    --color-background: #1A1A1A;
    --color-on-background: #F0F0F0;
    --color-surface: #2A2A2A;
    --color-on-surface: #F0F0F0;
    --color-surface-variant: #2A2A2A;
    --color-on-surface-variant: #F0F0F0;

    --primary: var(--color-primary);
    --secondary: var(--color-secondary);
    --accent: var(--color-tertiary);
    --background: var(--color-background);
    --surface: var(--color-surface);
    --text: var(--color-on-surface);
    --text-secondary: var(--color-on-surface-variant);
    --border: var(--color-on-surface-variant);
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-on-background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.nav-logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--color-on-primary);
    box-shadow: 0 8px 32px rgba(200, 90, 84, 0.30);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200, 90, 84, 0.40);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--color-on-surface-variant);
    color: var(--color-on-surface-variant);
}

.cta-button.secondary:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-2px);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    margin-bottom: 20px;
}

.belt-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.belt {
    width: 30px;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
}

.white-belt { background: #FFFFFF; }
.yellow-belt { background: #FFD700; }
.orange-belt { background: #FF8C00; }
.green-belt { background: #32CD32; }

.video-player {
    flex: 1;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-on-primary);
    font-size: 2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.option.correct {
    background: var(--primary);
    color: var(--color-on-primary);
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(200, 90, 84, 0.20);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--color-on-primary);
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--surface);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    color: var(--color-on-primary);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: var(--background);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.screenshot-card {
    text-align: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    margin: 0 auto 2rem;
    background: var(--surface);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border);
}

.screen-content {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.lesson-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.lesson-item.active {
    background: var(--primary);
    color: var(--text);
}

.lesson-item i {
    color: var(--primary);
}

.lesson-item.active i {
    color: var(--color-on-primary);
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    color: var(--text);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.user-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.belt-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: auto;
}

.stat {
    text-align: center;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.screenshot-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screenshot-card p {
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--surface);
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 200px;
}

.store-button:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.store-button i {
    font-size: 2rem;
    color: var(--primary);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.qr-code {
    display: inline-block;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    color: var(--primary);
}

.qr-code p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--background);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--color-on-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--surface);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Carousel mobile fixes */
    .carousel-container {
        padding: 0 40px;
        max-width: 100%;
    }
    
    .carousel-slide {
        padding: 0 10px;
    }
    
    .carousel-slide h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .carousel-slide p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .phone-frame {
        width: 220px;
        height: 440px;
        margin: 0 auto;
    }
    
    /* Container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Section padding */
    .hero, .features, .how-it-works, .screenshots, .download {
        padding: 60px 0;
    }
    
    /* Section titles */
    .section-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .phone-frame {
        width: 180px;
        height: 360px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .features-grid {
        padding: 0 15px;
    }
    
    .steps-container {
        padding: 0 15px;
    }
    
    /* Carousel adjustments for very small screens */
    .carousel-container {
        padding: 0 30px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-button.prev {
        left: 2px;
    }
    
    .carousel-button.next {
        right: 2px;
    }
    
    .carousel-slide h3 {
        font-size: 1rem;
    }
    
    .carousel-slide p {
        font-size: 0.8rem;
    }
    
    /* Button adjustments */
    .hero-buttons .cta-button {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Download buttons */
    .store-button {
        min-width: 180px;
        padding: 0.8rem 1.5rem;
    }
    
    .store-button i {
        font-size: 1.5rem;
    }
    
    .store-name {
        font-size: 1rem;
    }
    
    .store-label {
        font-size: 0.7rem;
    }
}

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

.feature-card,
.step,
.screenshot-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Screenshot Images */
.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-image:hover {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Hero Screenshot */
.hero-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-screenshot:hover {
    transform: scale(1.02);
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    text-align: center;
    padding: 0 20px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--color-on-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary);
}

.dot:hover {
    background: var(--primary);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-button.prev {
        left: 5px;
    }
    
    .carousel-button.next {
        right: 5px;
    }
}

/* Video styling in carousel */
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.carousel-slide video:hover {
    transform: scale(1.02) translateZ(0);
}

/* Hero video optimizations */
.hero-screenshot {
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.hero-screenshot:hover {
    transform: scale(1.02) translateZ(0);
}

/* Video Lightbox */
.video-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-video-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-video-lightbox:hover,
.close-video-lightbox:focus {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive video lightbox */
@media (max-width: 768px) {
    .video-lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close-video-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Additional mobile fixes */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Better touch targets */
    .cta-button, .store-button, .carousel-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve text readability */
    p {
        line-height: 1.6;
    }
    
    /* Better spacing for mobile */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Fix video sizing in hero */
    .hero-screenshot {
        border-radius: 15px;
    }
    
    /* Better carousel dots for touch */
    .dot {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
    
    /* Improve navigation */
    .nav-menu li {
        padding: 10px 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 160px;
        height: 320px;
    }
    
    .phone-frame {
        width: 160px;
        height: 320px;
    }
    
    .carousel-container {
        padding: 0 25px;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
} 