/* ==========================================
   FISAYO FOSUDO HUB - MASTER CSS
   ========================================== */

/* --- VARIABLES & BASE SETUP --- */
:root {
    --bg-light: #ffffff;
    --bg-dark: #0f172a; /* Slate 900 for a deep tech feel */
    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --accent: #06b6d4; /* Electric Cyan */
    --accent-hover: #0891b2;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.highlight {
    color: var(--accent);
}

.dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Slightly mute the text on dark backgrounds for readability */
.dark-bg .section-header p {
    color: #94a3b8; 
}

/* --- PREMIUM TECH PRE-LOADER --- */
#loader {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 0;
    height: 2px;
    background-color: var(--accent);
    margin: 0 auto;
    animation: growBar 2s infinite ease-in-out;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes growBar {
    0% { width: 0; }
    50% { width: 200px; }
    100% { width: 0; }
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 100px 5% 50px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e0f2fe;
    color: var(--accent-hover);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.cta-btn {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.cta-btn.primary {
    background-color: var(--accent);
    color: white;
}

.cta-btn.primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid #cbd5e1;
}

.cta-btn.secondary:hover {
    border-color: var(--text-dark);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* --- VIDEO SECTIONS --- */
.video-section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    /* Auto-fits videos into columns that are at least 320px wide */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-item {
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-text {
    text-align: center;
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- SPEC SHOWDOWN (SUPABASE TARGET) --- */
.compare-section {
    padding: 100px 5%;
}

.compare-container {
    max-width: 900px;
    margin: 0 auto;
    background: #1e293b; /* A lighter slate to contrast against the dark background */
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.device-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.device-selector select {
    flex: 1;
    padding: 15px;
    background-color: var(--bg-dark);
    color: white;
    border: 2px solid #334155;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.device-selector select:focus {
    border-color: var(--accent);
}

.vs-badge {
    font-weight: 900;
    color: var(--accent);
    font-size: 1.5rem;
}

.results-grid {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #334155;
    padding-top: 30px;
}

.empty-state {
    color: #94a3b8;
    font-style: italic;
}

/* --- FOOTER --- */
.footer {
    padding: 60px 5%;
    text-align: center;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 2;
}

.copyright a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.copyright span {
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid transparent;
}

.copyright a:hover span {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--bg-light);
        text-align: center;
        transition: left 0.4s ease;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .device-selector {
        flex-direction: column;
    }
    
    .vs-badge {
        margin: 10px 0;
    }
}