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

:root {
    /* Material Design 3 Color System - Light Theme (matching React Native app) */
    --md-sys-color-primary: rgb(0, 95, 175);
    --md-sys-color-on-primary: rgb(255, 255, 255);
    --md-sys-color-primary-container: rgb(212, 227, 255);
    --md-sys-color-on-primary-container: rgb(0, 28, 58);

    --md-sys-color-secondary: rgb(84, 95, 113);
    --md-sys-color-on-secondary: rgb(255, 255, 255);
    --md-sys-color-secondary-container: rgb(216, 227, 248);
    --md-sys-color-on-secondary-container: rgb(17, 28, 43);

    --md-sys-color-tertiary: rgb(112, 86, 117);
    --md-sys-color-on-tertiary: rgb(255, 255, 255);
    --md-sys-color-tertiary-container: rgb(249, 217, 255);
    --md-sys-color-on-tertiary-container: rgb(40, 19, 45);

    --md-sys-color-error: rgb(186, 26, 26);
    --md-sys-color-on-error: rgb(255, 255, 255);
    --md-sys-color-error-container: rgb(255, 218, 214);
    --md-sys-color-on-error-container: rgb(65, 0, 2);

    --md-sys-color-background: rgb(253, 252, 255);
    --md-sys-color-on-background: rgb(26, 28, 30);

    --md-sys-color-surface: rgb(253, 252, 255);
    --md-sys-color-on-surface: rgb(26, 28, 30);
    --md-sys-color-surface-variant: rgb(224, 226, 236);
    --md-sys-color-on-surface-variant: rgb(67, 71, 78);

    --md-sys-color-outline: rgb(116, 119, 127);
    --md-sys-color-outline-variant: rgb(196, 198, 208);

    --md-sys-color-surface-container-lowest: rgb(255, 255, 255);
    --md-sys-color-surface-container-low: rgb(247, 247, 251);
    --md-sys-color-surface-container: rgb(241, 242, 246);
    --md-sys-color-surface-container-high: rgb(236, 236, 240);
    --md-sys-color-surface-container-highest: rgb(230, 231, 234);

    /* Material Design 3 Elevation Shadows */
    --md-sys-elevation-level1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);

    /* Material Design 3 Typography Scale */
    --md-sys-typescale-display-large-font: 'Roboto', sans-serif;
    --md-sys-typescale-display-large-size: 57px;
    --md-sys-typescale-display-large-weight: 400;
    --md-sys-typescale-display-large-line-height: 64px;

    --md-sys-typescale-headline-large-font: 'Roboto', sans-serif;
    --md-sys-typescale-headline-large-size: 32px;
    --md-sys-typescale-headline-large-weight: 400;
    --md-sys-typescale-headline-large-line-height: 40px;

    --md-sys-typescale-headline-medium-font: 'Roboto', sans-serif;
    --md-sys-typescale-headline-medium-size: 28px;
    --md-sys-typescale-headline-medium-weight: 400;
    --md-sys-typescale-headline-medium-line-height: 36px;

    --md-sys-typescale-title-large-font: 'Roboto', sans-serif;
    --md-sys-typescale-title-large-size: 22px;
    --md-sys-typescale-title-large-weight: 400;
    --md-sys-typescale-title-large-line-height: 28px;

    --md-sys-typescale-title-medium-font: 'Roboto', sans-serif;
    --md-sys-typescale-title-medium-size: 16px;
    --md-sys-typescale-title-medium-weight: 500;
    --md-sys-typescale-title-medium-line-height: 24px;

    --md-sys-typescale-body-large-font: 'Roboto', sans-serif;
    --md-sys-typescale-body-large-size: 16px;
    --md-sys-typescale-body-large-weight: 400;
    --md-sys-typescale-body-large-line-height: 24px;

    --md-sys-typescale-body-medium-font: 'Roboto', sans-serif;
    --md-sys-typescale-body-medium-size: 14px;
    --md-sys-typescale-body-medium-weight: 400;
    --md-sys-typescale-body-medium-line-height: 20px;

    --md-sys-typescale-label-large-font: 'Roboto', sans-serif;
    --md-sys-typescale-label-large-size: 14px;
    --md-sys-typescale-label-large-weight: 500;
    --md-sys-typescale-label-large-line-height: 20px;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --md-sys-color-primary: rgb(165, 200, 255);
        --md-sys-color-on-primary: rgb(0, 49, 95);
        --md-sys-color-primary-container: rgb(0, 71, 134);
        --md-sys-color-on-primary-container: rgb(212, 227, 255);

        --md-sys-color-secondary: rgb(188, 199, 220);
        --md-sys-color-on-secondary: rgb(39, 49, 65);
        --md-sys-color-secondary-container: rgb(61, 71, 88);
        --md-sys-color-on-secondary-container: rgb(216, 227, 248);

        --md-sys-color-tertiary: rgb(220, 184, 255);
        --md-sys-color-on-tertiary: rgb(64, 40, 71);
        --md-sys-color-tertiary-container: rgb(88, 63, 94);
        --md-sys-color-on-tertiary-container: rgb(249, 217, 255);

        --md-sys-color-error: rgb(255, 180, 171);
        --md-sys-color-on-error: rgb(105, 0, 5);
        --md-sys-color-error-container: rgb(147, 0, 10);
        --md-sys-color-on-error-container: rgb(255, 218, 214);

        --md-sys-color-background: rgb(26, 28, 30);
        --md-sys-color-on-background: rgb(227, 226, 230);

        --md-sys-color-surface: rgb(26, 28, 30);
        --md-sys-color-on-surface: rgb(227, 226, 230);
        --md-sys-color-surface-variant: rgb(67, 71, 78);
        --md-sys-color-on-surface-variant: rgb(195, 198, 207);

        --md-sys-color-outline: rgb(141, 145, 153);
        --md-sys-color-outline-variant: rgb(67, 71, 78);

        --md-sys-color-surface-container-lowest: rgb(21, 22, 24);
        --md-sys-color-surface-container-low: rgb(34, 36, 39);
        --md-sys-color-surface-container: rgb(38, 40, 43);
        --md-sys-color-surface-container-high: rgb(49, 51, 54);
        --md-sys-color-surface-container-highest: rgb(60, 62, 65);
    }
}

/* Manual theme override classes */
body[data-theme="light"] {
    --md-sys-color-primary: rgb(0, 95, 175);
    --md-sys-color-on-primary: rgb(255, 255, 255);
    --md-sys-color-primary-container: rgb(212, 227, 255);
    --md-sys-color-on-primary-container: rgb(0, 28, 58);

    --md-sys-color-secondary: rgb(84, 95, 113);
    --md-sys-color-on-secondary: rgb(255, 255, 255);
    --md-sys-color-secondary-container: rgb(216, 227, 248);
    --md-sys-color-on-secondary-container: rgb(17, 28, 43);

    --md-sys-color-tertiary: rgb(112, 86, 117);
    --md-sys-color-on-tertiary: rgb(255, 255, 255);
    --md-sys-color-tertiary-container: rgb(249, 217, 255);
    --md-sys-color-on-tertiary-container: rgb(40, 19, 45);

    --md-sys-color-error: rgb(186, 26, 26);
    --md-sys-color-on-error: rgb(255, 255, 255);
    --md-sys-color-error-container: rgb(255, 218, 214);
    --md-sys-color-on-error-container: rgb(65, 0, 2);

    --md-sys-color-background: rgb(253, 252, 255);
    --md-sys-color-on-background: rgb(26, 28, 30);

    --md-sys-color-surface: rgb(253, 252, 255);
    --md-sys-color-on-surface: rgb(26, 28, 30);
    --md-sys-color-surface-variant: rgb(224, 226, 236);
    --md-sys-color-on-surface-variant: rgb(67, 71, 78);

    --md-sys-color-outline: rgb(116, 119, 127);
    --md-sys-color-outline-variant: rgb(196, 198, 208);

    --md-sys-color-surface-container-lowest: rgb(255, 255, 255);
    --md-sys-color-surface-container-low: rgb(247, 247, 251);
    --md-sys-color-surface-container: rgb(241, 242, 246);
    --md-sys-color-surface-container-high: rgb(236, 236, 240);
    --md-sys-color-surface-container-highest: rgb(230, 231, 234);
}

body[data-theme="dark"] {
    --md-sys-color-primary: rgb(165, 200, 255);
    --md-sys-color-on-primary: rgb(0, 49, 95);
    --md-sys-color-primary-container: rgb(0, 71, 134);
    --md-sys-color-on-primary-container: rgb(212, 227, 255);

    --md-sys-color-secondary: rgb(188, 199, 220);
    --md-sys-color-on-secondary: rgb(39, 49, 65);
    --md-sys-color-secondary-container: rgb(61, 71, 88);
    --md-sys-color-on-secondary-container: rgb(216, 227, 248);

    --md-sys-color-tertiary: rgb(220, 184, 255);
    --md-sys-color-on-tertiary: rgb(64, 40, 71);
    --md-sys-color-tertiary-container: rgb(88, 63, 94);
    --md-sys-color-on-tertiary-container: rgb(249, 217, 255);

    --md-sys-color-error: rgb(255, 180, 171);
    --md-sys-color-on-error: rgb(105, 0, 5);
    --md-sys-color-error-container: rgb(147, 0, 10);
    --md-sys-color-on-error-container: rgb(255, 218, 214);

    --md-sys-color-background: rgb(26, 28, 30);
    --md-sys-color-on-background: rgb(227, 226, 230);

    --md-sys-color-surface: rgb(26, 28, 30);
    --md-sys-color-on-surface: rgb(227, 226, 230);
    --md-sys-color-surface-variant: rgb(67, 71, 78);
    --md-sys-color-on-surface-variant: rgb(195, 198, 207);

    --md-sys-color-outline: rgb(141, 145, 153);
    --md-sys-color-outline-variant: rgb(67, 71, 78);

    --md-sys-color-surface-container-lowest: rgb(21, 22, 24);
    --md-sys-color-surface-container-low: rgb(34, 36, 39);
    --md-sys-color-surface-container: rgb(38, 40, 43);
    --md-sys-color-surface-container-high: rgb(49, 51, 54);
    --md-sys-color-surface-container-highest: rgb(60, 62, 65);
}

body {
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    font-weight: var(--md-sys-typescale-body-large-weight);
    line-height: var(--md-sys-typescale-body-large-line-height);
    color: var(--md-sys-color-on-background);
    background-color: var(--md-sys-color-background);
    padding-top: 80px;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navigation */
.navbar {
    background: var(--md-sys-color-surface);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--md-sys-elevation-level2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    box-shadow: var(--md-sys-elevation-level3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    font-weight: 500;
    color: var(--md-sys-color-primary);
    margin: 0;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu:hover {
    background: var(--md-sys-color-surface-container-high);
}

.hamburger-menu .material-symbols-outlined {
    font-size: 28px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--md-sys-color-surface-container-high);
}

.theme-toggle .material-symbols-outlined {
    font-size: 24px;
}

.language-switcher {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    padding: 8px 12px;
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-btn:hover {
    background: var(--md-sys-color-surface-container-high);
}

.lang-dropdown-btn .material-symbols-outlined {
    font-size: 20px;
}

.lang-dropdown-btn .dropdown-arrow {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--md-sys-color-surface-container);
    border-radius: 12px;
    box-shadow: var(--md-sys-elevation-level2);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.lang-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.lang-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline-variant);
    border-radius: 4px;
}

.lang-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-outline);
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    color: var(--md-sys-color-on-surface);
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    text-decoration: none;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-option:hover {
    background: var(--md-sys-color-surface-container-highest);
}

.lang-option.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.lang-option.active:hover {
    background: var(--md-sys-color-secondary-container);
}

.lang-icon {
    font-size: 20px;
    color: var(--md-sys-color-on-surface-variant);
}

.lang-option.active .lang-icon {
    color: var(--md-sys-color-on-secondary-container);
}

.lang-name {
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: var(--md-sys-color-surface);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--md-sys-typescale-display-large-font);
    font-size: 48px;
    font-weight: var(--md-sys-typescale-display-large-weight);
    line-height: 1.2;
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
}

.hero-text p {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    line-height: var(--md-sys-typescale-title-large-line-height);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 32px;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--md-sys-elevation-level1);
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level2);
    background: var(--md-sys-color-surface-container-highest);
}

.store-button .material-symbols-outlined,
.store-button .apple-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--md-sys-color-primary);
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
}

.store-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.cta .store-button {
    background: var(--md-sys-color-surface);
    border-color: var(--md-sys-color-primary);
}

.cta .store-button:hover {
    background: var(--md-sys-color-surface-container);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 280px;
    width: 100%;
    overflow: visible;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--md-sys-elevation-level3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--md-sys-elevation-level2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:hover {
    background: var(--md-sys-color-primary-container);
    box-shadow: var(--md-sys-elevation-level3);
}

.carousel-btn .material-symbols-outlined {
    font-size: 24px;
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--md-sys-color-outline-variant);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-indicator:hover {
    background: var(--md-sys-color-outline);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--md-sys-color-primary);
    width: 24px;
    border-radius: 4px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--md-sys-color-surface-container-low);
}

.section-title {
    text-align: center;
    font-family: var(--md-sys-typescale-headline-large-font);
    font-size: var(--md-sys-typescale-headline-large-size);
    font-weight: var(--md-sys-typescale-headline-large-weight);
    line-height: var(--md-sys-typescale-headline-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--md-sys-color-surface-container);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--md-sys-elevation-level1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--md-sys-elevation-level3);
    background: var(--md-sys-color-surface-container-high);
}

.feature-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-icon {
    font-size: 32px;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
}

.feature-card h3 {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    font-weight: var(--md-sys-typescale-title-large-weight);
    line-height: var(--md-sys-typescale-title-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.feature-card p {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    text-align: center;
}

.cta h2 {
    font-family: var(--md-sys-typescale-headline-large-font);
    font-size: var(--md-sys-typescale-headline-large-size);
    font-weight: var(--md-sys-typescale-headline-large-weight);
    line-height: var(--md-sys-typescale-headline-large-line-height);
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 16px;
}

.cta p {
    font-family: var(--md-sys-typescale-title-medium-font);
    font-size: var(--md-sys-typescale-title-medium-size);
    line-height: var(--md-sys-typescale-title-medium-line-height);
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 32px;
}

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

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--md-sys-color-surface);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--md-sys-color-surface-container);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--md-sys-elevation-level1);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 12px;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    border-width: 2px;
    padding: 15px;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--md-sys-color-on-surface-variant);
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: var(--md-sys-color-surface);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    padding: 0 4px;
    color: var(--md-sys-color-primary);
}

.btn-primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    padding: 16px 32px;
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: var(--md-sys-elevation-level1);
}

.btn-primary:hover {
    background: var(--md-sys-color-primary);
    box-shadow: var(--md-sys-elevation-level2);
}

.btn-primary:active {
    box-shadow: var(--md-sys-elevation-level1);
}

/* Footer */
.footer {
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
    padding: 32px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer p {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    color: var(--md-sys-color-on-surface-variant);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--md-sys-color-tertiary);
}

/* Privacy Policy Page */
.privacy-content {
    margin-top: 80px;
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.privacy-card {
    background: var(--md-sys-color-surface);
    padding: 24px;
    border-radius: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Iubenda embedded content styling */
.privacy-card a.iubenda-embed {
    display: block;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
}

/* Override iubenda default styles to match Material Design */
.privacy-card .iubenda-embed h1,
.privacy-card .iubenda-embed h2,
.privacy-card .iubenda-embed h3 {
    font-family: var(--md-sys-typescale-headline-medium-font);
    color: var(--md-sys-color-on-surface);
}

.privacy-card .iubenda-embed p,
.privacy-card .iubenda-embed li {
    font-family: var(--md-sys-typescale-body-large-font);
    color: var(--md-sys-color-on-surface);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .nav-content {
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger-menu {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--md-sys-color-surface);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--md-sys-elevation-level2);
    }

    .nav-menu.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 20px;
        border-radius: 0;
    }

    .language-switcher {
        padding: 0 20px;
        margin-top: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Carousel mobile adjustments */
    .carousel-container {
        max-width: 240px;
    }

    .carousel-prev {
        left: -16px;
    }

    .carousel-next {
        right: -16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn .material-symbols-outlined {
        font-size: 20px;
    }

    .store-button {
        font-size: 14px;
    }

    .store-label {
        font-size: 9px;
    }

    .store-name {
        font-size: 14px;
    }

    /* Privacy policy mobile adjustments */
    .privacy-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .app-button img {
        height: 40px;
    }

    .lang-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}
