/* Space Theme Landing Page Styles */

:root {
    /* Deep space colors */
    --space-black: #0a0a0f;
    --space-dark: #0d0d14;
    --space-navy: #0f1729;

    /* Cosmic purples */
    --cosmic-purple: #4c1d95;
    --cosmic-purple-light: #7c3aed;
    --cosmic-purple-glow: rgba(124, 58, 237, 0.4);

    /* Nebula blues */
    --nebula-blue: #1e3a5f;
    --nebula-blue-light: #3b82f6;
    --nebula-blue-glow: rgba(59, 130, 246, 0.4);

    /* Star colors */
    --star-white: #ffffff;
    --star-warm: #fef3c7;
    --star-blue: #bfdbfe;

    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent colors */
    --accent-cyan: #22d3ee;
    --accent-pink: #f472b6;

    /* Borders and surfaces */
    --surface-dark: rgba(15, 23, 42, 0.8);
    --surface-card: rgba(15, 23, 42, 0.6);
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(124, 58, 237, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--space-black);
    overflow-x: hidden;
}

/* Star Field Canvas */
#starField {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Parallax Background Layers */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

.stars-far {
    background-image:
        radial-gradient(1px 1px at 20px 30px, var(--star-white), transparent),
        radial-gradient(1px 1px at 40px 70px, var(--star-blue), transparent),
        radial-gradient(1px 1px at 50px 160px, var(--star-white), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--star-warm), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--star-white), transparent),
        radial-gradient(1px 1px at 160px 120px, var(--star-blue), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
}

.stars-mid {
    background-image:
        radial-gradient(2px 2px at 100px 50px, var(--star-white), transparent),
        radial-gradient(2px 2px at 200px 150px, var(--star-blue), transparent),
        radial-gradient(2.5px 2.5px at 300px 250px, var(--star-warm), transparent),
        radial-gradient(2px 2px at 400px 100px, var(--star-white), transparent),
        radial-gradient(2.5px 2.5px at 150px 300px, var(--star-blue), transparent);
    background-repeat: repeat;
    background-size: 500px 400px;
    opacity: 0.9;
}

.nebula {
    background:
        /* Large purple nebula - top left */
        radial-gradient(ellipse 100% 80% at 10% 20%, rgba(76, 29, 149, 0.25), transparent 60%),
        /* Blue nebula - right side */
        radial-gradient(ellipse 80% 60% at 90% 30%, rgba(59, 130, 246, 0.2), transparent 50%),
        /* Purple cloud - center */
        radial-gradient(ellipse 120% 100% at 50% 50%, rgba(124, 58, 237, 0.15), transparent 60%),
        /* Pink accent - bottom right */
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(244, 114, 182, 0.12), transparent 50%),
        /* Deep blue - bottom left */
        radial-gradient(ellipse 70% 60% at 15% 85%, rgba(30, 58, 95, 0.25), transparent 50%),
        /* Cyan highlight - top */
        radial-gradient(ellipse 50% 40% at 60% 10%, rgba(34, 211, 238, 0.08), transparent 50%),
        /* Purple core - center top */
        radial-gradient(ellipse 40% 35% at 40% 35%, rgba(139, 92, 246, 0.18), transparent 50%);
}

/* Main Container */
.landing-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.landing-header {
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 30%, rgba(191, 219, 254, 0.4), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(254, 243, 199, 0.4), transparent),
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(76, 29, 149, 0.15), transparent),
        radial-gradient(ellipse 50% 80% at 80% 50%, rgba(59, 130, 246, 0.1), transparent),
        rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo img {
    width: 36px;
    height: 36px;
}

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

.cta-button.cta-header {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 2rem 1rem;
    background: transparent;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(76, 29, 149, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--cosmic-purple-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cosmic-purple-light);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px var(--cosmic-purple-glow);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--cosmic-purple-light) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary {
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--cosmic-purple-light) 100%);
    color: white;
    border: none;
    box-shadow: 0 0 20px var(--cosmic-purple-glow);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--cosmic-purple-glow), 0 0 60px rgba(124, 58, 237, 0.2);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.cta-secondary:hover {
    background: var(--surface-card);
    border-color: var(--cosmic-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--cosmic-purple-glow);
}

.cta-github {
    background: #2d2d2d;
    color: white;
    border: none;
    padding: 0.625rem;
}

.cta-github:hover {
    background: #3d3d3d;
    transform: translateY(-2px);
}

.cta-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
}

.features-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
    border-color: var(--cosmic-purple-light);
    box-shadow: 0 0 30px var(--cosmic-purple-glow), 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--cosmic-purple-light);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 20px var(--cosmic-purple-glow);
}

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

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

/* Showcase Section */
.showcase {
    padding: 0.5rem 2rem 4rem;
    background: transparent;
    position: relative;
}

.showcase-content {
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-image {
    width: 100%;
    margin: 0 auto;
}

.showcase-image img {
    width: 80%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--cosmic-purple-light);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.3), 0 0 120px rgba(124, 58, 237, 0.15), 0 25px 50px rgba(0, 0, 0, 0.5);
}

.showcase-image {
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 3rem 2rem;
    background: transparent;
    position: relative;
}


.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Footer */
.landing-footer {
    background: var(--space-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--cosmic-purple-light);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Scroll Animation Classes */
.feature-card,
.cta-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.animate-in,
.cta-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Shooting Star Animation */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, var(--star-white), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .features {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .showcase {
        padding: 1.5rem 1rem 3rem;
    }

    .showcase-image img {
        border-radius: 8px;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .header-content {
        padding: 1rem;
    }

    nav {
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .cta-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

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

/* Selection Colors */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(124, 58, 237, 0.4);
    color: var(--text-primary);
}
