/* ===================================
   OmenCore Website - Global Styles
   Dark theme with red accents
   =================================== */

/* CSS Variables for consistent theming */
:root {
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-card: #111111;
    --color-bg-card-hover: #1a1a1a;
    --color-accent-red: #dc2626;
    --color-accent-red-light: #ef4444;
    --color-accent-red-dark: #991b1b;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-muted: #737373;
    --color-border: #262626;
    --color-border-light: #404040;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-red-glow: 0 0 20px rgba(220, 38, 38, 0.3);
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent-red);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-red-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-red);
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 1000px;
}

section {
    padding: 4rem 0;
}

/* Header Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav a:hover {
    color: var(--color-text-primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-red);
    transition: width var(--transition-base);
}

.nav a:hover::after {
    width: 100%;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all var(--transition-base);
}

.github-link:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent-red);
    box-shadow: var(--shadow-red-glow);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 1.5rem;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1.1rem;
    }
    
    .nav a::after {
        display: none;
    }
    
    .github-link {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    margin: 1rem auto 2rem;
    display: block;
    filter: drop-shadow(var(--shadow-red-glow));
}

.hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent-red);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-accent-red-light);
    box-shadow: var(--shadow-red-glow), var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--color-text-primary);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-accent-red);
    transform: translateY(-2px);
}

.btn-disabled {
    background: var(--color-bg-card);
    color: var(--color-text-muted);
    cursor: not-allowed;
    border: 1px solid var(--color-border);
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-align: center;
}

.btn-back:hover {
    color: var(--color-accent-red-light);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(17, 17, 17, 0.6) 100%);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--color-accent-red);
    box-shadow: var(--shadow-red-glow), var(--shadow-xl);
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(145deg, var(--color-bg-card-hover) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.feature-card:hover::after {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent-red-dark) 0%, var(--color-accent-red) 50%, var(--color-accent-red-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--transition-base);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-md);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.gallery-item:hover {
    border-color: var(--color-accent-red);
    box-shadow: var(--shadow-red-glow), var(--shadow-xl);
    transform: scale(1.03);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent-red), transparent);
    margin: 1.5rem auto 0;
}

.section-header h2 {
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-red-dark) 20%, var(--color-accent-red) 50%, var(--color-accent-red-dark) 80%, transparent 100%);
    margin: 5rem 0;
    opacity: 0.4;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent-red);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
}

/* Project Description */
.project-description {
    background: var(--color-bg-secondary);
}

.description-content {
    max-width: 1100px;
    margin: 0 auto;
}

.description-content h3 {
    color: var(--color-accent-red-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.description-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.description-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary);
}

.description-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-accent-red);
    font-weight: bold;
}

/* Info Grid and Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
}

.info-card:hover {
    border-color: var(--color-accent-red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.info-card h3 {
    margin-top: 0;
}

.info-card ul {
    margin-bottom: 0;
}

/* Screenshots Section */
.screenshots {
    background: var(--color-bg-primary);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--transition-base);
}

.screenshot-item:hover {
    border-color: var(--color-accent-red);
    box-shadow: var(--shadow-red-glow);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Roadmap / Feature Showcase */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.roadmap-item {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(17, 17, 17, 0.8) 100%);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent-red);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.roadmap-item:hover::before {
    left: 100%;
}

.roadmap-item:hover {
    background: linear-gradient(135deg, var(--color-bg-card-hover) 0%, rgba(26, 26, 26, 0.9) 100%);
    box-shadow: var(--shadow-red-glow), var(--shadow-lg);
    transform: translateY(-4px);
    border-left-color: var(--color-accent-red-light);
}

.roadmap-item h4 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.roadmap-status {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.status-complete {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-active {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.status-progress {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(234, 179, 8, 0.15) 100%);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.status-planned {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.1) 100%);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.status-future {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.25);
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer h3 {
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-project-card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(17, 17, 17, 0.7) 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.footer-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-red), transparent);
    transition: left 0.5s ease;
}

.footer-project-card:hover::before {
    left: 100%;
}

.footer-project-card:hover {
    border-color: var(--color-accent-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.footer-project-card h4 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.footer-project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .feature-grid,
    .roadmap-grid,
    .screenshot-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 2560px) {
    body {
        font-size: 18px;
    }
    
    .container {
        max-width: 1800px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent-red-light);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Additional Visual Enhancements */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
    
    .gallery-item,
    .feature-card,
    .roadmap-item,
    .footer-project-card {
        transition: transform var(--transition-base), 
                    box-shadow var(--transition-base),
                    border-color var(--transition-fast);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent-red-light);
    outline-offset: 2px;
}

/* Improve button hover states */
.btn:hover:not(.btn-disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active:not(.btn-disabled) {
    transform: translateY(0);
}

/* Enhance card interactions */
.feature-card:hover,
.roadmap-item:hover {
    border-color: var(--color-accent-red);
    box-shadow: var(--shadow-red-glow);
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Cool floating animation for hero logo */
.hero-logo {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Glowing text animation for main heading */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.5), 
                     0 0 20px rgba(220, 38, 38, 0.3),
                     0 0 30px rgba(220, 38, 38, 0.1);
    }
    50% {
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.8),
                     0 0 30px rgba(220, 38, 38, 0.5),
                     0 0 40px rgba(220, 38, 38, 0.3);
    }
}

.hero h1 {
    animation: glow 3s ease-in-out infinite;
}

/* Staggered fade-in animation for feature cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }
.feature-card:nth-child(9) { animation-delay: 0.9s; }
.feature-card:nth-child(10) { animation-delay: 1.0s; }
.feature-card:nth-child(11) { animation-delay: 1.1s; }
.feature-card:nth-child(12) { animation-delay: 1.2s; }

/* Rotating gradient background animation */
@keyframes rotateGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    background-size: 200% 200%;
    animation: rotateGradient 15s ease infinite;
}

/* Scroll-triggered animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.roadmap-item {
    animation: fadeInUp 0.5s ease-out both;
}

.roadmap-item:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out both;
}

.roadmap-item:nth-child(even) {
    animation: slideInRight 0.6s ease-out both;
}

.roadmap-item:nth-child(1) { animation-delay: 0.1s; }
.roadmap-item:nth-child(2) { animation-delay: 0.2s; }
.roadmap-item:nth-child(3) { animation-delay: 0.3s; }
.roadmap-item:nth-child(4) { animation-delay: 0.4s; }
.roadmap-item:nth-child(5) { animation-delay: 0.5s; }

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    .hero h1 {
        animation: none;
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    
    .hero::before {
        animation: none;
    }
    
    .feature-card,
    .roadmap-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.roadmap-item:nth-child(6) { animation-delay: 0.6s; }
.roadmap-item:nth-child(7) { animation-delay: 0.7s; }
.roadmap-item:nth-child(8) { animation-delay: 0.8s; }
.roadmap-item:nth-child(9) { animation-delay: 0.9s; }
.roadmap-item:nth-child(10) { animation-delay: 1.0s; }
.roadmap-item:nth-child(11) { animation-delay: 1.1s; }
.roadmap-item:nth-child(12) { animation-delay: 1.2s; }

/* Button pop animation */
@keyframes buttonPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-primary:active {
    animation: buttonPop 0.3s ease;
}

/* Shimmering effect for status badges */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.status-complete::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: inherit;
}

.status-complete {
    position: relative;
    overflow: hidden;
}

/* Parallax-like effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .section-header {
        animation: fadeInUp 0.8s ease-out both;
    }
    
    .info-card {
        animation: fadeInUp 0.6s ease-out both;
    }
    
    .info-card:nth-child(1) { animation-delay: 0.1s; }
    .info-card:nth-child(2) { animation-delay: 0.2s; }
    .info-card:nth-child(3) { animation-delay: 0.3s; }
    .info-card:nth-child(4) { animation-delay: 0.4s; }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-logo,
    .hero h1,
    .feature-card,
    .roadmap-item,
    .info-card,
    .section-header {
        animation: none;
    }
}
