/* ==========================================
   TRAILMIX LANDING PAGE - SYNTHWAVE THEME
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-purple: #1a0a2e;
    --secondary-purple: #2d1b4e;
    --neon-cyan: #00d9ff;
    --neon-pink: #ff006e;
    --sunset-orange: #ff6b35;
    --sunset-yellow: #ffbe0b;
    --grid-pink: #d90368;
    --text-white: #ffffff;

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary-purple);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(217, 3, 104, 0.3) 2px, transparent 2px),
        linear-gradient(90deg, rgba(217, 3, 104, 0.3) 2px, transparent 2px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform-style: preserve-3d;
    z-index: -2;
    animation: gridPulse 4s ease-in-out infinite;
}

.grid-background::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--primary-purple), transparent);
    z-index: 1;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-white);
    box-shadow:
        100px 200px var(--neon-cyan),
        200px 100px var(--neon-pink),
        300px 300px var(--text-white),
        400px 150px var(--neon-cyan),
        500px 250px var(--text-white),
        600px 50px var(--neon-pink),
        700px 350px var(--neon-cyan),
        800px 200px var(--text-white),
        900px 100px var(--neon-pink),
        1000px 300px var(--neon-cyan),
        1100px 150px var(--text-white),
        1200px 250px var(--neon-pink),
        150px 350px var(--neon-cyan),
        250px 50px var(--text-white),
        350px 200px var(--neon-pink),
        450px 100px var(--neon-cyan),
        550px 300px var(--text-white);
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

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

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.diamond {
    position: absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--neon-pink);
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--neon-pink);
    animation: float 6s ease-in-out infinite;
}

.diamond:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.diamond:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.diamond:nth-child(3) {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
}

.diamond:nth-child(4) {
    top: 80%;
    left: 5%;
    animation-delay: 4.5s;
    border-color: var(--sunset-yellow);
    box-shadow: 0 0 20px var(--sunset-yellow);
}

@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    background: rgba(26, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sunset-yellow), var(--sunset-orange), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 190, 11, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--neon-pink);
    border-radius: 4px;
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
}

.nav-cta:hover {
    background: var(--neon-pink);
    color: var(--text-white);
    box-shadow: 0 0 25px var(--neon-pink);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
}

.logo-container {
    margin-bottom: var(--spacing-md);
    animation: logoGlow 3s ease-in-out infinite;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.6)) drop-shadow(0 0 60px rgba(255, 0, 110, 0.4));
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.6)) drop-shadow(0 0 60px rgba(255, 0, 110, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 60px rgba(0, 217, 255, 0.8)) drop-shadow(0 0 80px rgba(255, 0, 110, 0.6));
    }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--sunset-yellow), var(--sunset-orange), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.5),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-cyan);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--primary-purple);
    box-shadow:
        0 0 40px rgba(0, 217, 255, 0.8),
        inset 0 0 40px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    box-shadow:
        0 0 20px rgba(255, 0, 110, 0.5),
        inset 0 0 20px rgba(255, 0, 110, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-pink);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--primary-purple);
    box-shadow:
        0 0 40px rgba(255, 0, 110, 0.8),
        inset 0 0 40px rgba(255, 0, 110, 0.3);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--sunset-yellow), var(--sunset-orange), var(--neon-pink));
    color: var(--primary-purple);
    border: none;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.8);
}

/* Section Title */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: rgba(45, 27, 78, 0.5);
    padding: var(--spacing-md);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink)) 1;
    clip-path: polygon(10% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%, 0% 10%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.3;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 0 30px rgba(0, 217, 255, 0.4),
        0 0 50px rgba(255, 0, 110, 0.3);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.6));
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--neon-cyan);
    text-align: center;
}

.feature-card p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Stats Section */
.stats {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.8), rgba(26, 10, 46, 0.9));
    position: relative;
    z-index: 2;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    box-shadow: 0 0 20px var(--neon-pink);
}

.stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
}

.equalizer {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: flex-end;
    height: 80px;
    margin-bottom: var(--spacing-sm);
}

.bar {
    width: 12px;
    background: linear-gradient(to top, var(--neon-pink), var(--neon-cyan));
    border-radius: 2px;
    animation: bounce 1s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sunset-yellow), var(--sunset-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

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

.timeline-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.timeline-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px currentColor);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
    color: var(--neon-cyan);
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.timeline-connector {
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-pink));
    margin: 0 auto var(--spacing-md) 48px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--sunset-yellow), var(--sunset-orange), var(--neon-pink));
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--primary-purple);
    clip-path: polygon(
        0% 100%,
        0% 60%,
        10% 50%,
        20% 70%,
        30% 55%,
        40% 75%,
        50% 45%,
        60% 65%,
        70% 50%,
        80% 70%,
        90% 55%,
        100% 65%,
        100% 100%
    );
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.cta-description {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.cta-form {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.email-input {
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    min-width: 300px;
    outline: none;
}

.email-input::placeholder {
    color: rgba(26, 10, 46, 0.6);
}

.cta-note {
    text-align: center;
    color: var(--primary-purple);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary-purple);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    z-index: 2;
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 -5px 30px rgba(0, 217, 255, 0.3);
}

.footer-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(217, 3, 104, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 3, 104, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--sunset-yellow), var(--sunset-orange), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--neon-cyan);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--neon-cyan);
    color: var(--primary-purple);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero-logo {
        max-width: 300px;
    }

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

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

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

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-connector {
        margin: 0 auto var(--spacing-md);
    }

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

    .email-input {
        min-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 3rem;
    }
}

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

/* Selection */
::selection {
    background: var(--neon-cyan);
    color: var(--primary-purple);
}
