/* Valvopedia Homepage - Dark Theme Only */
/* Critical CSS for above-the-fold content */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #6366f1;
    --accent-color: #fbbf24;
    --success-color: #10B981;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --grid-color: rgba(148, 163, 184, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.9);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent flash of unstyled content */
* {
    box-sizing: border-box;
    transition: var(--transition-theme);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow-x: hidden;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { opacity: 0.3; transform: translateY(0px); }
    50% { opacity: 0.6; transform: translateY(-20px); }
}

/* Navbar */
.navbar {
    background: rgba(0, 76, 151, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    box-shadow: var(--shadow-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(0, 76, 151, 0.98) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.3rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg,
    rgba(15,23,42,0.95) 0%,
    rgba(30,41,59,0.9) 50%,
    rgba(51,65,85,0.8) 100%);
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    width: 80%;
    max-width: 1000px;
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
    animation: logoFloat 8s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1.2) rotate(0deg); }
    50% { transform: translate(-50%, -52%) scale(1.25) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(241, 245, 249, 0.9);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section h2,
.features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.content-section .lead,
.features-section .lead {
    color: #cbd5e1;
}

.content-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.content-section p {
    color: #cbd5e1;
}

/* Statistics Cards */
.stats-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.stats-label {
    font-size: 1rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
}

/* Feature Cards */
.features-section {
    padding: 6rem 0;
    position: relative;
}

.feature-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    height: 100%;
    transform: translateY(0);
    color: #f1f5f9;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--success-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    background: rgba(51, 65, 85, 0.95);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.feature-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.25));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.35));
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: iconSpin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-icon i {
    font-size: 2.5rem;
    color: #3b82f6;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.content-section .feature-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.25));
}

.content-section .feature-icon i {
    color: #3b82f6;
}

/* Enhanced Buttons */
.tech-button {
    position: relative;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid transparent;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.tech-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tech-button:hover::before {
    left: 100%;
}

.tech-button:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
}

.tech-button i {
    font-size: 1.2rem;
}

.tech-button:focus {
    outline: 3px solid rgba(96, 165, 250, 0.7);
    outline-offset: 2px;
}

/* Store Banner */
.store-banner {
    background: linear-gradient(135deg,
    #1e293b 0%,
    #334155 50%,
    #475569 100%);
    padding: 4rem 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.store-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: storeFloat 12s ease-in-out infinite;
}

@keyframes storeFloat {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(20px) scale(1.1); }
}

.store-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.store-banner p {
    color: #e2e8f0;
}

.store-button {
    background: #fbbf24;
    color: #1e293b;
    border: 3px solid #f1f5f9;
    font-weight: 700;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.store-button:hover {
    background: #f9fafb;
    color: #1e293b;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
}

/* Background Light Section */
.bg-light {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

.bg-light h2 {
    color: #f1f5f9;
}

.bg-light .lead {
    color: #cbd5e1;
}

.bg-light .h5 {
    color: #f1f5f9;
}

.bg-light .text-muted {
    color: #cbd5e1 !important;
}

/* FAQ Section */
.faq-item {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Enhanced Footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 3rem 0;
    margin-top: auto;
    color: #e2e8f0;
}

footer h3,
footer h5 {
    color: #f1f5f9;
}

footer a {
    color: #3b82f6;
}

footer a:hover {
    color: #60a5fa;
}

footer .text-muted {
    color: #cbd5e1 !important;
}

footer .btn-outline-primary {
    border-color: #3b82f6;
    color: #3b82f6;
}

footer .btn-outline-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.footer-links a {
    color: #3b82f6;
    text-decoration: none;
    margin: 0 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

    .tech-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin: 0.3rem;
    }

    .feature-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }

    .features-section {
        padding: 4rem 0;
    }

    .content-section {
        padding: 3rem 0;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    /* Navbar mobile dropdown */
    .navbar-nav {
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid rgba(71, 85, 105, 0.3);
        border-radius: 10px;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        color: #e2e8f0 !important;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(59, 130, 246, 0.15);
        color: #60a5fa !important;
    }
}

/* Improved contrast for all text elements */
h1, h2, h3, h4, h5, h6 {
    color: #f1f5f9;
}

p, span, div {
    color: #e2e8f0;
}

.text-muted {
    color: #cbd5e1 !important;
}

/* Focus states for accessibility */
.nav-link:focus {
    outline: 2px solid rgba(96, 165, 250, 0.7);
    outline-offset: 2px;
}
