/* Stint - F1 Fitness Tracking Website Styles - Enhanced & Modernized */

/* ===== CSS Variables ===== */
:root {
    /* Stint Brand Colors */
    --stint-yellow: #E4FE00;
    --stint-yellow-bright: #F0FF33;
    --dark-teal: #006b60;
    --medium-teal: #649b92;
    --light-cyan: #c3fcf2;

    /* Backgrounds */
    --bg-dark-1: #3B3B3B;
    --bg-dark-2: #292929;
    --bg-darker: #1a1a1a;
    --bg-black: #0a0a0a;

    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 2rem;

    /* Effects */
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Racing Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(228, 254, 0, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(228, 254, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(0, 107, 96, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(228, 254, 0, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background */
nav, main, footer {
    position: relative;
    z-index: 1;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Navigation Bar ===== */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--stint-yellow), transparent) 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, var(--stint-yellow) 0%, var(--stint-yellow-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all var(--transition-speed) var(--transition-smooth);
    filter: drop-shadow(0 0 20px rgba(228, 254, 0, 0.4));
}

.nav-brand .logo-text:hover {
    filter: drop-shadow(0 0 30px rgba(228, 254, 0, 0.7));
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stint-yellow), transparent);
    transition: width var(--transition-speed) var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--stint-yellow);
}

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

/* ===== Hero Section ===== */
.hero {
    padding: var(--section-padding);
    padding-top: 6rem;
    padding-bottom: 6rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(circle at center, rgba(228, 254, 0, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s var(--transition-smooth);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 7rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--stint-yellow) 0%, var(--stint-yellow-bright) 50%, var(--stint-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    filter: drop-shadow(0 0 40px rgba(228, 254, 0, 0.5));
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(228, 254, 0, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 60px rgba(228, 254, 0, 0.7));
        transform: scale(1.02);
    }
}

.hero-subtitle {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--medium-teal), var(--light-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem;
    line-height: 1.9;
    font-weight: 400;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 107, 96, 0.4), rgba(100, 155, 146, 0.4));
    padding: 1.25rem 2.5rem;
    border-radius: 60px;
    border: 2px solid var(--stint-yellow);
    box-shadow: 
        0 8px 30px rgba(0, 107, 96, 0.4),
        0 0 60px rgba(228, 254, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(228, 254, 0, 0.1), transparent);
    transition: left 0.5s;
}

.coming-soon:hover::before {
    left: 100%;
}

.coming-soon:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 107, 96, 0.5),
        0 0 80px rgba(228, 254, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.coming-soon-badge {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--stint-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.coming-soon-year {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.2s both;
}

.feature-card {
    background: rgba(26, 26, 26, 0.4);
    border: 2px solid rgba(228, 254, 0, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-smooth);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(228, 254, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-smooth);
}

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

.feature-card:hover {
    border-color: var(--stint-yellow);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(228, 254, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 26, 0.7);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0);
    transition: transform var(--transition-speed) var(--transition-smooth);
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--stint-yellow);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

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

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 107, 96, 0.3), rgba(10, 10, 10, 0.8));
    padding: var(--section-padding);
    text-align: center;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--stint-yellow), transparent) 1;
    margin: 4rem 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(228, 254, 0, 0.02) 10px,
            rgba(228, 254, 0, 0.02) 20px
        );
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--stint-yellow), var(--stint-yellow-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.cta-section p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ===== Content Pages ===== */
.content-page {
    padding: var(--section-padding);
    padding-top: 4rem;
    min-height: 70vh;
}

.content-page h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--stint-yellow), var(--stint-yellow-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.2;
    filter: drop-shadow(0 0 30px rgba(228, 254, 0, 0.3));
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 4rem;
    font-style: italic;
}

.content-section {
    background: rgba(26, 26, 26, 0.4);
    border-left: 4px solid var(--dark-teal);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--stint-yellow), var(--dark-teal));
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.content-section:hover::before {
    opacity: 1;
}

.content-section:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--stint-yellow);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 1.6rem;
    color: var(--medium-teal);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-section a {
    color: var(--stint-yellow);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
}

.content-section a:hover {
    color: var(--light-cyan);
    text-decoration: underline;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all var(--transition-speed);
}

.feature-list li:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

.feature-list li::before {
    content: '▸';
    color: var(--stint-yellow);
    font-size: 1.3rem;
    position: absolute;
    left: 0;
    top: 0.95rem;
    transition: transform var(--transition-speed);
}

.feature-list li:hover::before {
    transform: translateX(4px);
}

.feature-list li strong {
    color: var(--stint-yellow);
    font-weight: 700;
}

.content-section ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.content-section ol li {
    counter-increment: item;
    color: var(--text-secondary);
    padding: 1rem 0 1rem 4rem;
    position: relative;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all var(--transition-speed);
}

.content-section ol li:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

.content-section ol li::before {
    content: counter(item);
    background: linear-gradient(135deg, var(--dark-teal), var(--medium-teal));
    color: var(--stint-yellow);
    font-weight: 700;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0.85rem;
    border: 2px solid var(--stint-yellow);
    box-shadow: 0 4px 12px rgba(0, 107, 96, 0.4);
    transition: all var(--transition-speed);
}

.content-section ol li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(228, 254, 0, 0.4);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-black);
    padding: 3.5rem 0 2.5rem;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--stint-yellow), transparent) 1;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(228, 254, 0, 0.5), transparent);
    box-shadow: 0 0 20px rgba(228, 254, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, var(--stint-yellow), var(--stint-yellow-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(228, 254, 0, 0.3));
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--stint-yellow);
    transition: width var(--transition-speed) var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--stint-yellow);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-brand .logo-text {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: 0.15em;
    }

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

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

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

    .content-page h1 {
        font-size: 2.8rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .cta-section p {
        font-size: 1.2rem;
    }

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

    .coming-soon {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 2rem;
    }
}

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

    .container {
        padding: 0 1.25rem;
    }

    .content-section {
        padding: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .nav-brand .logo-text {
        font-size: 1.6rem;
    }
    
    .content-page h1 {
        font-size: 2.2rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Selection ===== */
::selection {
    background: var(--stint-yellow);
    color: var(--bg-black);
}

::-moz-selection {
    background: var(--stint-yellow);
    color: var(--bg-black);
}
