:root {
    --bg-color: #0b0f19;
    --bg-darker: #06090f;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #6366f1; /* Indigo */
    --accent-alt: #14b8a6; /* Teal */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(15, 23, 42, 0.6);
    
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Background Blobs for depth */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}
.blob-1 { top: -100px; left: -100px; width: 500px; height: 500px; background: var(--accent); }
.blob-2 { top: 20%; right: -150px; width: 400px; height: 400px; background: #a855f7; animation-delay: -5s; }
.blob-3 { top: 70%; left: -200px; width: 600px; height: 400px; background: var(--accent-alt); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(120px, 60px); }
}

/* Typography Utilities */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }
.accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-xl { margin-top: 6rem; }

.accent-gradient {
    background: linear-gradient(135deg, var(--accent-alt), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1, h2, h3 { line-height: 1.2; }

/* Layout & Glassmorphism */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}
.glass-dark {
    background: var(--glass-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.6rem; text-decoration: none; color: var(--text-color); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-alt); }

/* Hero Section / Landing Page */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-alt);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}
.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}
.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
    line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 1rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1.05rem;
    transition: all 0.3s ease; cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}
.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.2);
}

/* Hero Visual (Floating Cards) */
.hero-visual { position: relative; height: 100%; min-height: 400px; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.floating-cards { position: relative; width: 100%; min-width: min(100%, 400px); height: 400px; max-width: 400px; margin: auto; }
.float-card {
    position: absolute;
    padding: 1.2rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: float-element 5s infinite ease-in-out alternate;
    white-space: nowrap;
}
.fc-1 { top: 15%; left: 0%; animation-delay: 0s; color: #fff; }
.fc-2 { top: 35%; right: 0%; animation-delay: -1.5s; color: var(--accent-alt); }
.fc-3 { bottom: 35%; left: 10%; animation-delay: -3s; color: #f43f5e; }
.fc-4 { bottom: 15%; right: 10%; animation-delay: -4.5s; color: #3b82f6; }

@keyframes float-element {
    0% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

/* App-Page Specific Styling */
.app-header {
    text-align: center;
    padding: 6rem 1rem 3rem;
}
.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #1e293b;
}
.store-links {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-top: auto; justify-content: center;
    margin-bottom: 2rem;
}
.store-link {
    font-size: 0.95rem; font-weight: 600; padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; border: 1px solid var(--glass-border); color: #fff; transition: all 0.3s;
}
.store-link-apple { background: rgba(255,255,255,0.1); }
.store-link-apple:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.store-link-google { background: rgba(20, 184, 166, 0.2); border-color: rgba(20, 184, 166, 0.4); }
.store-link-google:hover { background: rgba(20, 184, 166, 0.4); transform: translateY(-2px); }
.store-link-web { background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.4); }
.store-link-web:hover { background: rgba(99, 102, 241, 0.4); transform: translateY(-2px); }


/* Projects Section */
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 600px; margin-inline: auto; }
.section-title { font-size: 2.8rem; margin-bottom: 1rem; color: #fff; letter-spacing: -1px; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Cards */
.card {
    border-radius: 20px; overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.card-image-wrapper {
    position: relative; height: 220px; overflow: hidden;
}
.card-image-actual {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease;
}
.card:hover .card-image-actual { transform: scale(1.05); }

.tag {
    position: absolute; top: 1rem; right: 1rem;
    padding: 0.4rem 1rem; border-radius: 20px;
    font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #fff;
}
.card-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.6rem; margin-bottom: 1rem; color: #fff; }
.card-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; flex: 1; line-height: 1.7; }
.card-link {
    color: var(--accent-alt); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; align-self: flex-start;
    transition: transform 0.3s;
}
.card-link:hover { transform: translateX(5px); }

/* Vision Box */
.vision-box { padding: 4rem; border-radius: 24px; position: relative; overflow: hidden; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; align-items: center; }
.vision-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.vision-text strong { color: #fff; }
.vision-quote { padding: 3rem; border-radius: 16px; border-left: 4px solid var(--accent); }
.quote-text { font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; line-height: 1.5; color: #e2e8f0; }

/* Footer */
footer { padding: 3rem 0 2rem; border-top: 1px solid var(--glass-border); background: var(--bg-darker); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-content p { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; margin-left: 2rem; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }

/* Version Tooltip */
.version-tooltip { position: relative; cursor: help; }
.version-tooltip::after {
    content: attr(data-version);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.version-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }
.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero h1 { font-size: 3rem; }
    .hero .subtitle { margin: 0 auto 3rem auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { min-height: 300px; display: none; } /* Hide floating cards on mobile for cleaner look */
    .vision-grid { grid-template-columns: 1fr; gap: 2rem; }
    .vision-box { padding: 2rem; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .section-title { font-size: 2.2rem; }
    .grid { grid-template-columns: 1fr; }
}
