/* 
   EBONYI INNOVATION NETWORK (EIN) 
   Official Design System v5.0 — "Dynamic Themes"
*/

:root {
    /* Base Dimensions & Shared Tokens */
    --container-max: 1300px;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --gold: #fbbf24;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme (Default) ───────────────────────── */
:root, [data-theme='light'] {
    --bg: #ffffff;
    --surface: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --glass: blur(12px) saturate(180%);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --hero-gradient: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 40%);
    --primary: #064e3b;
    --primary-light: #10b981;
}

/* ── Dark Theme ─────────────────────────────────── */
[data-theme='dark'] {
    --bg: #020617;
    --surface: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --nav-bg: rgba(2, 6, 23, 0.8);
    --shadow-premium: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    --hero-gradient: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 40%);
    --primary: #022c22;
    --primary-light: #064e3b;
}

/* ── Reset & Base ───────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); 
    background: var(--bg); 
    color: var(--text-main); 
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, .logo-text { 
    font-family: var(--font-head); 
    font-weight: 800; 
    letter-spacing: -0.03em; 
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    position: relative;
    width: 100%;
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-main); }
.logo-box {
    width: 40px; height: 40px; background: var(--accent);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.25rem; font-family: var(--font-head);
    box-shadow: 0 0 20px var(--accent-glow);
    color: white;
}
.logo-text { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.logo-subtext { color: var(--accent); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.nav-links { 
    list-style: none; display: flex; gap: 2.25rem; margin: 0; padding: 0;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a { 
    color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.9rem; 
    transition: var(--transition); opacity: 0.7;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }

/* ── Hero Section ───────────────────────────────────── */
.hero {
    position: relative; padding: 12rem 0 10rem;
    background: var(--hero-gradient),
                radial-gradient(circle at bottom left, rgba(6, 78, 59, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-mesh {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2364748b' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hero-content { max-width: 900px; text-align: center; margin: 0 auto; position: relative; }
.hero-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 99px;
    color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem;
}

.hero h1 { font-size: 5rem; line-height: 1; margin-bottom: 2rem; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 2.5rem; border-radius: 12px; font-weight: 600;
    text-decoration: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none; font-family: var(--font-head);
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--accent-glow); }

.btn-glass { 
    background: var(--surface); color: var(--text-main); 
    border: 1px solid var(--border); backdrop-filter: var(--glass);
}
.btn-glass:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; border-radius: 8px; }

/* ── Bento Grid ─────────────────────────────────────── */
.bento-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; margin-top: 4rem;
}

.bento-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2.5rem; position: relative; overflow: hidden;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.bento-card:hover { border-color: var(--accent); box-shadow: var(--shadow-premium); }

.card-icon {
    width: 50px; height: 50px; background: rgba(16, 185, 129, 0.1);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 1.5rem;
}

.bento-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Stats ──────────────────────────────────────────── */
.stats-strip {
    padding: 4rem 0; background: var(--surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-num { display: block; font-size: 3.5rem; font-weight: 900; color: var(--accent); font-family: var(--font-head); }
.stat-lbl { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

.stat-value { font-size: 3rem; font-weight: 900; color: var(--accent); font-family: var(--font-head); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Layout Helpers ──────────────────────────────────── */
.section { padding: 10rem 0; }
.section-label { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 1rem; display: block; }
.section-title { font-size: 3.5rem; margin-bottom: 1.5rem; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }

.image-wrapper {
    position: relative; border-radius: 32px; overflow: hidden;
    box-shadow: var(--shadow-premium);
}
.image-wrapper img { width: 100%; height: auto; display: block; }

.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }

/* ── Footer Redesign ────────────────────────────────── */
.footer { 
    padding: 10rem 0 4rem; 
    background: #022c22; /* Deeper Green */
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-mesh {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1), transparent 70%);
    pointer-events: none;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 6rem; 
    margin-bottom: 8rem; 
    position: relative; z-index: 1; 
}

.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); line-height: 1.8; margin-bottom: 2.5rem; }

.footer-links h4 { 
    color: white; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    margin-bottom: 2.5rem; 
    font-weight: 700;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1.25rem; }
.footer-links a { 
    color: rgba(255, 255, 255, 0.5); 
    text-decoration: none; 
    transition: var(--transition); 
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }

.footer-bottom { 
    padding-top: 4rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    color: rgba(255, 255, 255, 0.4); 
    font-size: 0.85rem;
    position: relative; z-index: 1;
}

.legal-links { display: flex; gap: 2rem; }
.legal-links a { color: inherit; text-decoration: none; transition: 0.3s; }
.legal-links a:hover { color: white; }

.nav-actions { 
    display: flex; 
    gap: 1rem; 
    align-items: center; 
}

/* ── Mobile Menu Redesign ────────────────────────── */
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: 0.3s;
}

.menu-toggle:hover { background: var(--surface); }

.mobile-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 999;
    padding-top: 8rem;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.active {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-links a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-head);
    transition: 0.3s;
}

.mobile-links a:hover { color: var(--accent); padding-left: 10px; }

.footer-contact-item {
    display: flex; align-items: center; gap: 1rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.footer-contact-item i { color: var(--accent); width: 18px; }

/* ── 6-D Process ────────────────────────────────────── */
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}
.step-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.step-num { font-size: 4rem; font-weight: 900; color: var(--accent); opacity: 0.2; line-height: 1; margin-bottom: 1rem; }
.step-card h3 { color: var(--accent); margin-bottom: 1rem; }

/* ── Social Tokens ── */
.social-links { display: flex; gap: 1rem; }
.social-icon { 
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); 
    display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s;
}
.social-icon:hover { background: var(--accent); transform: scale(1.1); }

/* ── Dropdowns ─────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 210px;
    background: var(--nav-bg); backdrop-filter: var(--glass);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 0.75rem; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: var(--transition);
    box-shadow: var(--shadow-premium);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.75rem 1rem; color: var(--text-muted); border-radius: 8px; text-decoration: none; font-size: 0.9rem; }
.dropdown-menu a:hover { background: rgba(16, 185, 129, 0.1); color: var(--accent); }

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

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Stats Enhancements ── */
.stats-grid { display: flex; justify-content: space-between; align-items: center; text-align: center; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

/* ── Form Elements ── */
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-weight: 500; }
.form-input {
    width: 100%; padding: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text-main); font-family: var(--font-body);
    transition: var(--transition);
}
.form-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-glow); }

/* ── Glass Pill ── */
.glass-pill {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 12px; transition: var(--transition);
    text-decoration: none; color: var(--text-main);
}
.glass-pill:hover { background: rgba(16, 185, 129, 0.1); border-color: var(--accent); }

.glow-spot {
    position: absolute;
    width: 500px; height: 500px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* ── Mobile Responsive ── */
@media (max-width: 991.98px) {
    .navbar { padding: 1.25rem 0; }
    .hero h1 { font-size: 3.25rem; }
    .nav-links { display: none !important; }
    .col-6, .col-4, .col-8 { grid-column: span 12; }
    .split-section { grid-template-columns: 1fr; gap: 4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { flex-direction: column; gap: 3rem; }
    .stat-divider { display: none; }
}

@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.5rem; }
    .hero h1 { font-size: 2.75rem; }
}
