:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --play-green-start: #01875f;
    --play-green-end: #006044;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background blob effects */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.blob-1 { top: -100px; left: -100px; width: 500px; height: 500px; background: var(--gradient-start); }
.blob-2 { bottom: 40%; right: -100px; width: 600px; height: 600px; background: var(--gradient-end); }
.blob-3 { bottom: -100px; left: 20%; width: 400px; height: 400px; background: #ff007f; opacity: 0.2; }

header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover { color: var(--accent-color); }

.nav-btn {
    background: var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: background 0.3s ease !important;
}

.nav-btn:hover {
    background: var(--accent-hover);
    color: white !important;
}

main {
    flex: 1;
    padding: 0 5% 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section { padding-top: 6rem; margin-bottom: 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; letter-spacing: -1px; margin-bottom: 1rem; }
.section-header p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.subsection-title { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-secondary); border-bottom: 1px solid var(--card-border); padding-bottom: 0.5rem; }
.gradient-text { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Hero Section */
.hero { text-align: center; padding-top: 8rem; padding-bottom: 4rem; animation: fadeIn 1s ease-out; }
.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; letter-spacing: -2px; line-height: 1.1; }
.hero p { font-size: 1.3rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 3rem auto; }
.store-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.badge-link { transition: transform 0.3s ease; display: inline-block; }
.badge-link:hover { transform: translateY(-5px); }

/* About Section */
.about-content { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.about-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 3rem; flex: 1; min-width: 300px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.about-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--accent-color); }

/* App & Features Grid */
.app-grid, .features-grid, .team-grid { display: grid; gap: 2rem; }
.app-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.app-card, .feature-item, .team-member, .contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover, .feature-item:hover, .team-member:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.2); }
.app-card { text-align: center; text-decoration: none; color: var(--text-primary); display: flex; flex-direction: column; align-items: center; }
.app-icon { width: 140px; height: 140px; border-radius: 30px; margin-bottom: 1.5rem; box-shadow: 0 15px 30px rgba(0,0,0,0.4); object-fit: cover; }
.app-card h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.app-card p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; flex-grow: 1; }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: white; text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: opacity 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; }
.btn:hover { opacity: 0.9; transform: scale(1.05); }

/* Feature Items */
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.feature-item h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.feature-item p { color: var(--text-secondary); }

/* Team Section */
.team-member { text-align: center; padding: 3rem 2rem; }
.member-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.5rem auto; background-color: #334155; border: 3px solid var(--accent-color); }
.team-member h3 { font-size: 1.5rem; }
.role { color: var(--accent-color); font-weight: 600; margin-bottom: 1rem; }
.bio { color: var(--text-secondary); font-size: 0.9rem; }

/* Contact Section */
.contact-container { display: flex; gap: 4rem; align-items: center; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -1px; }
.contact-info > p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 3rem; }
.detail-item { display: flex; align-items: flex-start; margin-bottom: 2rem; }
.detail-item .icon { font-size: 2rem; margin-right: 1.5rem; }
.detail-item strong { font-size: 1.2rem; display: block; margin-bottom: 0.25rem; }
.contact-form-wrapper { flex: 1; min-width: 300px; padding: 3rem; width: 100%; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border-radius: 12px; background: rgba(15, 23, 42, 0.5); border: 1px solid var(--card-border); color: white; font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.submit-btn { width: 100%; padding: 1rem; }

/* Play Store Custom Button */
.play-store-btn { display: inline-flex; align-items: center; background: linear-gradient(135deg, var(--play-green-start), var(--play-green-end)); color: white; text-decoration: none; padding: 0.8rem 2rem; border-radius: 50px; box-shadow: 0 10px 20px rgba(1, 135, 95, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.play-store-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(1, 135, 95, 0.4); }
.play-store-btn svg { width: 30px; height: 30px; margin-right: 12px; }
.play-store-btn span { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.play-store-btn small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.play-store-btn strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }

/* Screenshots Gallery */
.screenshot-gallery { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0 3rem 0; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent-color) var(--card-bg); }
.screenshot-gallery::-webkit-scrollbar { height: 8px; }
.screenshot-gallery::-webkit-scrollbar-track { background: var(--card-bg); border-radius: 10px; }
.screenshot-gallery::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }
.screenshot-wrapper { flex: 0 0 auto; width: 280px; height: 600px; border-radius: 30px; position: relative; overflow: hidden; scroll-snap-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border: 4px solid #1e293b; background-color: #1e293b; }
.screenshot-img { width: 100%; height: 100%; object-fit: cover; background-color: #334155; }
.screenshot-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 2rem 1rem 1rem 1rem; text-align: center; font-weight: 600; font-size: 1.1rem; }

/* App Page Specifics */
.app-header { display: flex; align-items: center; gap: 4rem; margin-bottom: 5rem; background: var(--card-bg); padding: 4rem; border-radius: 30px; border: 1px solid var(--card-border); backdrop-filter: blur(12px); animation: slideUp 0.8s ease-out; flex-wrap: wrap; justify-content: center; }
.app-header-icon { width: 220px; height: 220px; border-radius: 45px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); flex-shrink: 0; }
.app-details h1 { font-size: 3.5rem; margin-bottom: 1rem; letter-spacing: -2px; }
.app-details p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.8; }

/* Legal Pages */
.legal-content { background: var(--card-bg); padding: 4rem; border-radius: 20px; border: 1px solid var(--card-border); }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--card-border); padding-bottom: 1rem; }
.legal-content h2 { margin-top: 3rem; margin-bottom: 1rem; color: var(--accent-color); font-size: 1.5rem; }
.legal-content p, .legal-content ul { margin-bottom: 1.5rem; color: var(--text-secondary); line-height: 1.8; }
.legal-content ul { padding-left: 2rem; }

footer { text-align: center; padding: 4rem 5%; border-top: 1px solid var(--card-border); background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); }
.footer-links { margin-bottom: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; margin: 0 0.5rem; font-size: 1rem; font-weight: 500; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-primary); }
.support-email { color: var(--accent-color); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.support-email:hover { text-decoration: underline; }

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

@media (max-width: 992px) {
    .contact-container, .about-content { flex-direction: column; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    header { justify-content: center; flex-direction: column; padding: 1.5rem; }
    nav { justify-content: center; gap: 1rem; }
    nav a { margin-left: 0; font-size: 0.95rem; }
    .nav-btn { width: 100%; text-align: center; margin-top: 0.5rem; }
    
    .app-header { flex-direction: column; text-align: center; padding: 2rem; gap: 2rem; }
    .app-header-icon { width: 150px; height: 150px; }
    
    .hero { padding-top: 4rem; }
    .hero h1, .app-details h1, .section-header h2, .contact-info h2 { font-size: 2.2rem; }
    
    .legal-content { padding: 2rem; }
    .contact-form-wrapper { padding: 2rem; }
}
