/* Zyvia Design System */
:root {
    /* Colors - Dark Theme Core */
    --bg-body: #050505;
    /* Deeper black */
    --bg-surface: #101010;
    --bg-surface-hover: #1a1a1a;
    --border-color: #222;

    /* Accents - Ferges Orange Brand */
    --accent-primary: #ff6b00;
    --accent-secondary: #ff8c00;
    --gradient-brand: linear-gradient(135deg, #ff6b00 0%, #ff9e42 100%);

    /* Typography */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;

    /* Spacing & Layout */
    --header-height: 80px;
    /* Slight increase for floating effect */
    --sidebar-width: 280px;
    --container-max-width: 1400px;

    /* Effects */
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.15);
    /* Orange glow */

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Init hidden */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Layout Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.grid {
    display: grid;
}

/* Modern Floating Header */
.site-header {
    height: var(--header-height);
    position: fixed;
    top: 1rem;
    /* Detached from top */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Responsive width */
    max-width: 1200px;
    background: #000000;
    border: 1px solid #333;
    border-radius: 50px;
    /* Fully rounded corners */
    z-index: 50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    border-radius: 2px;
}

/* Main Layout */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
    /* Account for floating header gap */
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: calc(var(--header-height) + 2rem);
    /* Account for floating header gap */
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-body);
    border-right: var(--border-color) 1px solid;
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 40;
}

.sidebar-group {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    /* Use orange for categories */
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sidebar-link {
    display: block;
    padding: 0.6rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    padding-left: 1rem;
    /* Slide effect */
}

.sidebar-link.active {
    background: rgba(255, 107, 0, 0.1);
    /* Low opacity orange */
    color: var(--accent-primary);
    font-weight: 600;
    border-right: 3px solid var(--accent-primary);
    /* Right accent border */
}

/* Content Area */
.main-content {
    grid-column: 2;
    padding: 3rem 4rem;
    max-width: 1000px;
}

/* Cards & UI Elements */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    /* Orange glow on hover */
    border-color: var(--accent-primary);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-info {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

/* Kept green for variety, or can make orange */
.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.badge-brand {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 107, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    /* Larger touch target */
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 107, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    .app-layout {
        padding-top: var(--header-height);
        grid-template-columns: 1fr;
    }

    .sidebar {
        top: var(--header-height);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding: 2rem 1.5rem;
        grid-column: 1;
    }

    .nav-links {
        display: none;
        /* simple generic hiding for now */
    }

}


/* Main Site Footer Integration */
.footer {
    background: #020202;
    padding: 6rem 0 2rem;
    position: relative;
    border-top: none;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

/* Specific Logo Size for Footer to match Main */
.footer-logo {
    height: 90px !important;
    width: auto;
    margin-bottom: 2rem;
    opacity: 1;
}

.footer h4 {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    border-color: var(--accent-primary);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .brand-col,
    .newsletter-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-col,
    .newsletter-col {
        grid-column: auto;
    }
}