/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400&family=Inter:wght@300;400&family=Playfair+Display:ital,wght@1,400&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #d4af37;
    /* Gold */
    --secondary-text: #a0a0a0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Lock vertical scroll */
    height: 100vh;
    transition: background-color 0.5s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 200;
    /* Thin/Light */
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Layout Containers */
/* Layout Containers */
.container {
    max-width: 100%;
    /* Full Width */
    margin: 0 auto;
    padding: 0 4rem;
    /* More side breathing room */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header / Nav */
/* Header / Nav */
.main-header {
    padding: 3rem 0;
    /* Reduced from 3rem */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    /* Reduced from 3rem */
}

.brand-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin: 0;
    font-style: italic;
    opacity: 0;
    animation: fadeInDown 1.2s ease forwards;
}

.role-title {
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.3s forwards;
}

/* Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.6s forwards;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Content Area */
#content-area {
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    flex: 1;
}

/* Content Styling */
.welcome-section {
    text-align: center;
    padding: 2rem 0;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--secondary-text);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* List Styling (2-Row Horizontal Scroll) */
.content-list {
    display: grid;
    /* Fixed height rows (approx 20% shorter than filling half screen) */
    grid-template-rows: repeat(2, 100px);
    grid-auto-flow: column;
    grid-auto-columns: 260px;

    /* Increased gap to prevent overlap and add breathing room */
    gap: 6rem 3rem;

    overflow-x: auto;
    padding: 1rem 0 2rem 0;
    list-style: none;
    margin: 0 auto;
    width: fit-content;
    max-width: 60%;
    height: 100%;

    justify-content: start;

    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide Scrollbar Chrome/Safari/Opera */
.content-list::-webkit-scrollbar {
    display: none;
}

.content-list li {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.content-list li:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.content-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.content-list li:hover::before {
    opacity: 0.1;
}

.content-list a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.content-list span {
    font-size: 0.85rem;
    color: var(--secondary-text);
    display: block;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

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

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

/* Responsive */
/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
        /* Less padding on mobile */
    }

    .main-header {
        margin-bottom: 2rem;
        padding: 2rem 0;
    }

    /* 2x2 Grid for Nav Menu */
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
        justify-items: center;
        margin-top: 1.5rem;
    }

    /* Mobile: Smaller/Shorter Cards */
    .content-list {
        grid-template-rows: repeat(2, 140px);
        /* Much shorter rows */
        grid-auto-columns: 200px;
        /* Narrower cards to show more context */
        gap: 2rem 1.5rem;
        /* Tighter gap */
        padding: 0.5rem 0 1rem 0;
    }

    .content-list li {
        padding: 1.2rem;
        /* Less internal padding */
    }

    .content-list a {
        font-size: 1rem;
        /* Smaller title */
        margin-bottom: 0.4rem;
    }

    .content-list span {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .brand-name {
        font-size: 2rem;
    }
}


/* Time Series Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.8;
}