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

:root {
    /* App Colors - Matching the SwiftUI app */
    --primary: #407579;
    --secondary: #78BDBD;
    --accent: #E7BC69;
    --background: #ffffff;
    --card-background: #F6F3F0;
    --text-primary: #000000;
    --text-secondary: #407579;
    --success: #33B333;
    --warning: #E7BC69;
    --error: #CC3333;
    
    /* Dark mode colors */
    --background-dark: #1C1C1E;
    --card-background-dark: #2C2C2E;
    --text-primary-dark: #ffffff;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: var(--background-dark);
        --card-background: var(--card-background-dark);
        --text-primary: var(--text-primary-dark);
    }
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 117, 121, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Mobile responsive for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        gap: 4px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 36px;
    }
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: var(--spacing-xxl);
    background: linear-gradient(135deg, var(--background) 0%, rgba(64, 117, 121, 0.05) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.btn-outline:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Hero Highlights */
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(64, 117, 121, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(64, 117, 121, 0.2);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(64, 117, 121, 0.15);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Simple Frame Styles */
.iphone-frame {
    width: 280px;
    height: 570px;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    25% {
        transform: translateY(-10px) rotateY(2deg);
    }
    50% {
        transform: translateY(-5px) rotateY(-1deg);
    }
    75% {
        transform: translateY(-15px) rotateY(1deg);
    }
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* Screenshot Carousel Styles */
.screenshot-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: carouselEntrance 1.5s ease-out;
}

@keyframes carouselEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) rotateY(-10deg) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateZ(0px);
    }
}

.screenshot-carousel .app-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1) rotateY(5deg);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.screenshot-carousel .app-screenshot.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.screenshot-carousel .app-screenshot.entering {
    animation: slideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-carousel .app-screenshot.exiting {
    animation: slideOut 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(1.2) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
    to {
        opacity: 0;
        transform: scale(0.8) rotateY(15deg);
    }
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--card-background);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

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

/* Screenshots Section */
.screenshots {
    padding: var(--spacing-xxl) 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

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

.screenshot-card .iphone-frame {
    margin-bottom: var(--spacing-md);
}

.screenshot-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

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

/* Vision Section */
.vision {
    padding: var(--spacing-xxl) 0;
    background: var(--card-background);
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.vision-card {
    background: var(--background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--warning));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: 2rem;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Developer Section */
.developer {
    padding: var(--spacing-xxl) 0;
}

.developer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.developer-card {
    background: var(--card-background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.developer-avatar {
    margin-bottom: var(--spacing-lg);
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.developer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.developer-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.developer-bio {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.developer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--secondary);
}

.project-info {
    background: var(--card-background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.project-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Download Section */
.download {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.download-note {
    margin-top: var(--spacing-md);
    opacity: 0.7;
    font-size: 0.9rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .language-switcher {
        margin-left: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
    }
    
    .developer-content {
        grid-template-columns: 1fr;
    }
    

    
    .iphone-frame {
        width: 260px;
        height: 530px;
    }
    
    .screenshot-card .iphone-frame {
        width: 240px;
        height: 490px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .iphone-frame {
        width: 240px;
        height: 490px;
    }
    
    .screenshot-card .iphone-frame {
        width: 220px;
        height: 450px;
    }
}

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

.feature-card,
.screenshot-card,
.vision-card,
.developer-card,
.project-info {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-links a:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
} 