/* Cosmic Theme Variables */
:root {
    --cosmic-primary: #8B5CF6; /* Purple */
    --cosmic-secondary: #06B6D4; /* Cyan */
    --cosmic-accent: #10B981; /* Green */
    --cosmic-bg: #0F0F23; /* Dark Blue/Purple */
    --cosmic-surface: #1A1B3A; /* Slightly lighter surface */
    --cosmic-text: #E2E8F0; /* Off-white */
    --cosmic-text-dim: #94A3B8; /* Muted grey-blue */
    --cosmic-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Purple-blue gradient */
    --cosmic-glow: 0 0 30px rgba(139, 92, 246, 0.3); /* Purple glow */
    --border-color: rgba(139, 92, 246, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cosmic-bg);
    color: var(--cosmic-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cosmic Background */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.1) 0%, transparent 70%),
        var(--cosmic-bg);
}

/* Animated Stars */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        100px 200px #fff, 300px 100px #fff, 500px 300px #fff,
        700px 150px #fff, 900px 250px #fff, 200px 400px #fff,
        400px 50px #fff, 600px 350px #fff, 800px 80px #fff,
        150px 300px rgba(139, 92, 246, 0.8), 450px 200px rgba(16, 185, 129, 0.8),
        750px 400px rgba(6, 182, 212, 0.8);
    animation: twinkle 3s infinite ease-in-out alternate;
}

.stars::after {
    width: 1px;
    height: 1px;
    box-shadow: 
        120px 220px #fff, 320px 120px #fff, 520px 320px #fff,
        720px 170px #fff, 920px 270px #fff, 220px 420px #fff,
        420px 70px #fff, 620px 370px #fff, 820px 100px #fff;
    animation: twinkle 2s infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cosmic-primary);
    border-radius: 50%;
    animation: float 8s infinite linear;
    box-shadow: 
        200px 100px 0 rgba(139, 92, 246, 0.6),
        -100px 300px 0 rgba(16, 185, 129, 0.6),
        300px 200px 0 rgba(6, 182, 212, 0.6);
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
}

.brand-text {
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

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

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* Main Content */
main {
    padding-top: 80px; /* Space for fixed navbar */
}

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

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--cosmic-gradient);
    color: white;
    box-shadow: var(--cosmic-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--cosmic-text);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--cosmic-primary);
    transform: translateY(-2px);
}

/* Hero Section (FEConf-inspired) */
/* Hero Section (FEConf-inspired) */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-title-main {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-name-line,
.hero-role-line {
    display: block;
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-line {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--cosmic-text-dim);
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    color: var(--cosmic-text-dim);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-call-to-action {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bio Section */
.bio-section {
    padding: 6rem 0;
    background: rgba(26, 27, 58, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    color: var(--cosmic-text-dim);
}

.bio-content p {
    margin-bottom: 1.5rem;
}


/* Orbital App Navigation Hub */
.apps-orbital-hub {
    padding: 6rem 0;
    text-align: center;
}

.orbital-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.app-planet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    background: var(--cosmic-surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.app-planet:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--cosmic-glow);
    border-color: var(--cosmic-primary);
}

.app-planet.placeholder {
    opacity: 0.7;
    border-style: dashed;
}

.planet-core {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.8));
}

.planet-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.planet-tagline {
    font-size: 1.1rem;
    color: var(--cosmic-text-dim);
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: rgba(26, 27, 58, 0.3);
    border-top: 1px solid var(--border-color);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--cosmic-text-dim);
    margin-bottom: 3rem;
}

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

.contact-card {
    background: var(--cosmic-surface);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--cosmic-glow);
    border-color: var(--cosmic-primary);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.contact-info p {
    color: var(--cosmic-text-dim);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-tagline p {
    color: var(--cosmic-text-dim);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* VeggieLens App Page Specific Styles */
.app-detail-page {
    padding-top: 80px; /* Space for fixed navbar */
}

.app-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    background: rgba(26, 27, 58, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.app-overview {
    max-width: 800px;
    margin: 0 auto;
}

.app-icon-large {
    font-size: 8rem;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
    margin-bottom: 1rem;
}

.app-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.app-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    color: var(--cosmic-text-dim);
    margin-bottom: 2rem;
}

.app-metrics {
    padding: 4rem 0;
    background: var(--cosmic-surface);
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-item {
    background: rgba(15, 15, 35, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1.1rem;
    color: var(--cosmic-text-dim);
}

.app-features,
.app-about,
.app-testimonials,
.app-legal-links {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.app-features .features-grid .feature-card {
    background: rgba(26, 27, 58, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.app-about p {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.15rem;
    color: var(--cosmic-text-dim);
    text-align: center;
}


.legal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.legal-card {
    background: var(--cosmic-surface);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.legal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--cosmic-glow);
    border-color: var(--cosmic-primary);
}

.legal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.legal-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.legal-card p {
    color: var(--cosmic-text-dim);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Meet the Developer Section */
.meet-developer {
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.developer-bio {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.15rem;
    color: var(--cosmic-text-dim);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title-main {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .hero-role-line {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-call-to-action {
        flex-direction: column;
        align-items: center;
    }

    .bio-content,
    .app-about p {
        font-size: 1rem;
    }


    .orbital-grid,
    .contact-grid,
    .metrics-grid,
    .features-grid,
    .legal-links-grid {
        grid-template-columns: 1fr;
    }

    .app-planet {
        width: 100%;
        height: auto;
        padding: 2rem;
    }

    .app-icon-large {
        font-size: 6rem;
    }

    .app-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .app-tagline {
        font-size: 1.1rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Cosmic Trail Animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}