/* ============================================================
   SPATIAL UI DESIGN SYSTEM — LEXEND FONT & RED FOOTER EDITION
   ============================================================ */

/* ===== GOOGLE FONTS (LEXEND) ===== */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors */
    --space-void: #f8fafc;
    --space-deep: #f1f5f9;
    --space-mid: #e2e8f0;
    --space-surface: #ffffff;

    /* Borders */
    --border-subtle: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-strong: #94a3b8;

    /* Solid Accent Colors */
    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --accent-violet: #7c3aed;
    --accent-cyan: #0284c7;
    --accent-rose: #db2777;
    --accent-emerald: #059669;
    --accent-amber: #d97706;

    /* Text Colors */
    --text-white: #0f172a;
    --text-light: #1e293b;
    --text-muted: #475569;
    --text-dim: #64748b;

    /* Google Lexend Typography */
    --font-display: 'Lexend', system-ui, -apple-system, sans-serif;
    --font-body: 'Lexend', system-ui, -apple-system, sans-serif;

    /* Depth Shadows */
    --shadow-float: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(15, 23, 42, 0.08);
    --shadow-elevated: 0 20px 50px -10px rgba(15, 23, 42, 0.12);

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Transitions */
    --ease-spatial: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s var(--ease-spatial);
    --transition-medium: 0.4s var(--ease-spatial);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background: var(--space-void);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== SOLID BACKGROUND ===== */
.spatial-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--space-void);
}

.spatial-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.spatial-orbs {
    display: none !important;
}

/* ===== SOLID CARDS ===== */
.spatial-panel {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.spatial-panel:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--border-medium);
}

.spatial-panel-inner {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.spatial-panel-inner:hover {
    border-color: var(--border-medium);
    background: #ffffff;
    transform: translateY(-2px);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-red);
    z-index: 10001;
    transition: width 0.05s linear;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 10000;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    top: 8px;
}

.navbar-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    position: relative;
    width: 100%;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ef4444;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--accent-red);
    background: #f1f5f9;
}

.nav-menu a.active {
    color: var(--accent-red);
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
}

.nav-hamburger {
    display: none;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
}

.page-content {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-enter {
    animation: pageEnter 0.6s var(--ease-smooth) both;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--accent-red);
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
}

.section-badge svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--text-white);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent-red) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    background: var(--accent-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-glass {
    background: #ffffff;
    color: var(--text-white);
    border: 1px solid var(--border-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.btn-glass:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #0f172a;
}

/* ===== SPATIAL CARDS ===== */
.spatial-card {
    padding: 32px;
}

.spatial-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.spatial-icon svg { width: 24px; height: 24px; }
.spatial-icon.violet { background: #f3e8ff; color: var(--accent-violet); }
.spatial-icon.cyan { background: #e0f2fe; color: var(--accent-cyan); }
.spatial-icon.rose { background: #fce7f3; color: var(--accent-rose); }
.spatial-icon.emerald { background: #d1fae5; color: var(--accent-emerald); }
.spatial-icon.amber { background: #fef3c7; color: var(--accent-amber); }

/* ===== TAGS ===== */
.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
}

.tag-violet { color: var(--accent-violet); border-color: #ddd6fe; background: #f3e8ff; }
.tag-cyan { color: var(--accent-cyan); border-color: #bae6fd; background: #e0f2fe; }
.tag-rose { color: var(--accent-rose); border-color: #fbcfe8; background: #fce7f3; }
.tag-emerald { color: var(--accent-emerald); border-color: #a7f3d0; background: #d1fae5; }
.tag-amber { color: var(--accent-amber); border-color: #fde68a; background: #fef3c7; }

/* ===== BOTTOM SKILLS MARQUEE ===== */
.bottom-skills-marquee {
    width: 100%;
    overflow: hidden;
    padding: 18px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-top: 40px;
}

.bottom-skills-marquee .tools-track {
    display: flex;
    gap: 16px;
    animation: marqueeScroll 25s linear infinite;
    white-space: nowrap;
}

.bottom-skills-marquee .tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== RED FOOTER SECTION (NO FOOTER MENUS IN DESKTOP) ===== */
.footer {
    padding: 24px 0;
    background: #ef4444;
    color: #ffffff;
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer p {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* HIDE FOOTER MENUS IN DESKTOP MODE */
.footer-nav {
    display: none !important;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9000;
    border: 1px solid var(--border-medium);
    background: #ffffff;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE BOTTOM NAVIGATION BAR ===== */
.mobile-bottom-nav { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* HIDE TOP HEADER SECTION ON MOBILE VIEW */
    .navbar { display: none !important; }

    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid var(--border-subtle);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
        padding: 6px 0;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: var(--radius-sm);
    }

    .mobile-nav-item svg { width: 20px; height: 20px; }
    .mobile-nav-item.active { color: var(--accent-red); background: #f1f5f9; }
    .page-content { padding-top: 30px; padding-bottom: 80px; }
    .back-to-top { bottom: 76px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .container { padding: 0 20px; }
}
