/* Reset and Base Styles */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #555;
    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --surface: #ffffff;
    --primary: #8b5cf6;
    --primary-light: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-tertiary: #d1d5db;
    --accent-primary: #a855f7;
    --accent-secondary: #3b82f6;
    --border: #374151;
    --shadow: rgba(0, 0, 0, 0.4);
    --surface: #1f2937;
    --primary: #a78bfa;
    --primary-light: rgba(167, 139, 250, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Prevent white flash on page load - improved version */
body.loading .header,
body.loading main,
body.loading .footer {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Language flash prevention - hide translatable elements until proper language is loaded */
body.loading [data-key] {
    visibility: hidden;
}

body.loaded [data-key] {
    visibility: visible;
    transition: opacity 0.1s ease-in-out;
}

body.loaded .header,
body.loaded main,
body.loaded .footer {
    opacity: 1;
}

/* Prevent navigation button jumping */
.nav-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link.active {
    color: var(--accent-primary);
    font-weight: 600;
}

body.loaded {
    opacity: 1;
}

/* Apply dark theme immediately if stored */
html[data-theme="dark"] {
    background-color: #0f0f0f;
}

html[data-theme="dark"] body {
    background-color: #0f0f0f;
    color: #ffffff;
}

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

/* Header */
.header {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navigation {
    display: flex;
    gap: 2rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Button - Simple Icon Button */
.theme-button {
    background: none;
    border: 2px solid var(--border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
}

.theme-button:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.theme-button .theme-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.theme-button:hover .theme-icon {
    transform: rotate(15deg);
}

/* Footer theme button - smaller size */
.footer-controls .theme-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-controls .theme-button .theme-icon {
    font-size: 1.2rem;
}

/* Navigation link styles moved to prevent flash section above */

/* Language transition smoothing */
body.language-changing {
    pointer-events: none;
}

body.language-changing [data-key] {
    transition: opacity 0.15s ease-in-out;
}

/* Prevent layout shift during translations */
[data-key] {
    transition: opacity 0.1s ease-in-out;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile menu - hidden by default on all devices */
.mobile-menu {
    display: none;
}

/* Header styles continue... */
.hero {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #333;
    border-radius: 15px;
    z-index: 10;
}

.app-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.check-icon {
    background: #10b981;
    top: 80px;
    right: 40px;
}

.minus-icon {
    background: #3b82f6;
    top: 180px;
    left: 40px;
}

.grid-icon {
    background: #8b5cf6;
    bottom: 100px;
    right: 40px;
}

/* Apps Section */
.apps-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

/* About Section - Homepage */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-tertiary);
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-tertiary);
}

.about-text p {
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-illustration {
    display: flex;
    justify-content: center;
}

.developer-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.dev-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
    color: var(--accent-primary);
}

.dev-icon:hover {
    transform: translateY(-5px);
}

.dev-icon span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* About Page - Full Page */
.about-page {
    padding: 120px 0 80px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-page .about-content {
    max-width: 1200px;
    gap: 6rem;
}

.about-block {
    margin-bottom: 3rem;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.about-block p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-tertiary);
}

.developer-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.dev-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.dev-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow);
}

.dev-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.dev-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dev-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.apps-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.app-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.app-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon-container.red {
    background: #ef4444;
}

.app-icon-container.green {
    background: #10b981;
}

.app-icon-container.blue {
    background: #3b82f6;
}

.app-icon-shape {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.app-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-category {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.app-description {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.app-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    justify-content: center;
}

.app-link.app-store {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.app-link.google-play {
    background: linear-gradient(135deg, #34A853 0%, #137333 100%);
}

.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-link.app-store:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
}

.app-link.google-play:hover {
    background: linear-gradient(135deg, #137333 0%, #34A853 100%);
}

/* App Policies Section */
.app-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.policy-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.policy-link:hover {
    color: #8b5cf6;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Dark mode specific styling for policy links */
[data-theme="dark"] .policy-link {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}
[data-theme="dark"] .policy-link:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: #a78bfa;
    color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

/* Simple text links for policy content */
.text-link {
    color: #8b5cf6;
    text-decoration: underline;
    text-decoration-color: rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.text-link:hover {
    color: #7c3aed;
    text-decoration-color: #7c3aed;
}

/* Dark mode styling for text links */
[data-theme="dark"] .text-link {
    color: #a78bfa;
    text-decoration-color: rgba(167, 139, 250, 0.4);
}

[data-theme="dark"] .text-link:hover {
    color: #c4b5fd;
    text-decoration-color: #c4b5fd;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.app-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.app-subtitle {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.policy-content {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    line-height: 1.7;
    max-width: none;
    font-size: 0.95rem;
}

.policy-content h2 {
    color: #8b5cf6;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.policy-content h3 {
    color: #a855f7;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Dark mode enhancements for policy pages */
[data-theme="dark"] .privacy-terms {
    background: var(--bg-primary);
    color: #f9fafb;
}

[data-theme="dark"] .policy-content h2 {
    color: #a78bfa;
}

[data-theme="dark"] .policy-content h3 {
    color: #c084fc;
}

[data-theme="dark"] .policy-content {
    background: var(--bg-secondary);
    border-color: #374151;
}

[data-theme="dark"] .app-header {
    border-color: #374151;
}

[data-theme="dark"] .app-header h1 {
    color: #f9fafb;
}

[data-theme="dark"] .app-subtitle {
    color: #d1d5db;
}

.coming-soon-badge {
    margin-top: 1rem;
}

.coming-soon-badge span {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.app-card.coming-soon {
    position: relative;
    overflow: hidden;
}

.app-card.coming-soon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Privacy & Terms Section */
.privacy-terms {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.privacy-terms h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tab-button.active {
    background: #8b5cf6;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #f3f4f6;
    color: #333;
}

.tab-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.tab-panel p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 100%);
    padding: 3rem 0 1rem 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.footer-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Language Selector - Simple Dropdown */
.language-selector {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
    min-width: 140px;
    text-align: center;
}

.language-selector:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.language-selector:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .language-selector {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Hide hero section on mobile devices */
@media (max-width: 992px) {
    section.hero,
    section#hero,
    .hero,
    #hero {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-brand {
        text-align: center !important;
    }
    
    .footer-brand h3 {
        text-align: center !important;
    }
    
    .footer-brand p {
        text-align: center !important;
    }
    
    .controls {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
        z-index: 1001; /* Higher than mobile menu */
        background: none;
        padding: 0;
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }
    
    .navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: 0.3s;
    }
    
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        z-index: 999; /* Below controls */
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 2rem;
        box-shadow: -5px 0 15px var(--shadow);
    }
    
    .mobile-menu.active {
        display: block;
        transform: translateX(0);
    }
    
    .mobile-menu ul {
        list-style: none;
        margin-top: 3rem;
    }
    
    .mobile-menu ul li {
        margin-bottom: 1rem;
    }
    
    .mobile-menu ul li a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        display: block;
        padding: 1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-menu ul li a:hover {
        background: var(--bg-tertiary);
        color: var(--accent-primary);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

/* Small mobile devices (up to 500px) - Fix logo overflow */
@media (max-width: 500px) {
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    .apps-section h2,
    .privacy-terms h2 {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .app-card {
        flex-direction: column;
        text-align: center;
    }
    
    .app-links {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .app-link {
        width: 200px;
    }
    
    .app-policies {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .policy-link {
        width: 180px;
        justify-content: center;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .app-header h1 {
        font-size: 2rem;
    }
    
    .app-icon-container {
        margin: 0 auto 1rem;
    }
    
    .tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .tab-button {
        text-align: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-controls {
        align-items: center;
    }
    
    .control-group {
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .developer-icons {
        flex-direction: row;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .mobile-menu ul li a {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .mobile-menu {
        padding: 0.75rem;
        padding-top: 1.25rem;
    }
    
    .mobile-menu ul li a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

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

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

.app-card,
.tab-content {
    animation: fadeInUp 0.6s ease-out;
}
