@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
    --bg-dark: #0D0012;
    --bg-gradient-end: #1A0020;
    --primary: #FF4081;
    --primary-glow: rgba(255, 64, 129, 0.4);
    --secondary: #F50057;
    --gold: #FFD700;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, var(--bg-gradient-end), var(--bg-dark));
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary); /* Fallback for browsers that don't support background-clip: text */
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Components */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.glass-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 64, 129, 0.3);
    transform: translateY(-5px);
}

/* Navigation */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(13, 0, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Language Switcher Styles */
.lang-switcher {
    position: relative;
    margin-right: 15px;
}

#lang-current {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    transition: var(--transition);
}

#lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

#lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(13, 0, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 10px;
    min-width: 160px;
    z-index: 2000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

#lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition);
}

#lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

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

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

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.iphone-mockup {
    width: 280px;
    height: 606px; /* Precise 19.5:9 ratio for 280px width */
    background: #000;
    border: 12px solid #1a1a1a;
    border-radius: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5), 0 0 40px var(--primary-glow);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Force fit to the mockup frame */
    display: block;
}

/* Dynamic Island Mockup */
.iphone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card h3 {
    margin-bottom: 12px;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--card-border);
}

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

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

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

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Section */
.gallery-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 40px 0 80px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.gallery-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-scroll {
    display: flex;
    gap: 30px;
    padding: 0 50px;
    width: max-content;
}

.gallery-item {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 6px solid #1a1a1a;
    transition: var(--transition);
}

.gallery-item span {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1rem;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item:hover img {
    box-shadow: 0 30px 60px var(--primary-glow);
    border-color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 220px;
    }
    
    .gallery-scroll {
        padding: 0 24px;
    }

    #mobile-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero p {
        margin: 0 auto 40px;
    }
    
    .iphone-mockup {
        width: 260px;
        height: 520px;
        margin-top: 40px;
    }

    #nav-download-cta-header {
        display: none; /* Hide on mobile nav bar, keep in menu or hero */
    }

    section {
        padding: 60px 0;
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
}

.mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(13, 0, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-sticky-footer.visible {
        display: block;
        transform: translateY(0);
    }
}
