/* ===========================
   RESET & VARIABLES
   =========================== */

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

:root {
    /* Colors */
    --color-black: #000000;
    --color-dark-bg: #0a0a0a;
    --color-white: #FFFFFF;
    --color-off-white: #F5F5F0;
    --color-light-grey: #999999;
    --color-medium-grey: #666666;
    --color-dark-grey: #333333;
    --color-border: #E0E0E0;

    /* Typography */
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;

    /* Layout */
    --sidebar-width: 240px;
    --content-max-width: 900px;
    --spacing-unit: 1rem;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark-grey);
    background-color: var(--color-off-white);
    display: flex;
    min-height: 100vh;
}

/* ===========================
   SIDEBAR
   =========================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 3rem;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.sidebar-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-link:hover .sidebar-logo {
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-light-grey);
    margin-bottom: 0.25rem;
}

.nav-item {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.25rem 0;
    transition: opacity 0.2s ease;
    display: block;
}

.nav-item:hover {
    opacity: 0.7;
}

.nav-item.active {
    font-weight: 500;
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--color-light-grey);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* ===========================
   MOBILE HEADER
   =========================== */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    z-index: 999;
    padding: 1rem 1.5rem;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    font-size: 1rem;
    font-weight: 500;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   MAIN CONTENT
   =========================== */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    width: calc(100% - var(--sidebar-width));
}

.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 3rem;
}

.section-content {
    max-width: var(--content-max-width);
    width: 100%;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    background-color: var(--color-off-white);
}

.hero-label {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-black);
    margin-bottom: 3rem;
}

.hero-statement {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.statement-highlight {
    color: var(--color-black);
}

.statement-normal {
    color: var(--color-light-grey);
}

/* ===========================
   SECTION HEADINGS
   =========================== */

.section-heading {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-black);
    margin-bottom: 2.5rem;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
    background-color: var(--color-white);
}

.about-intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--color-dark-grey);
}

.about-intro strong {
    color: var(--color-black);
}

.about-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-medium-grey);
    margin-bottom: 1.5rem;
}

.about-body strong {
    color: var(--color-black);
    font-weight: 500;
}

/* ===========================
   WORK SECTION
   =========================== */

.work-section {
    background-color: var(--color-off-white);
}

.work-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-medium-grey);
    margin-bottom: 1.5rem;
}

/* ===========================
   SKILLS SECTION
   =========================== */

.skills-section {
    background-color: var(--color-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-size: 0.9375rem;
    color: var(--color-medium-grey);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.skill-category li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-light-grey);
}

/* ===========================
   PROJECT SECTIONS
   =========================== */

.project-section {
    background-color: var(--color-off-white);
}

.project-section:nth-child(odd) {
    background-color: var(--color-white);
}

.project-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-medium-grey);
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--color-light-grey);
    margin-bottom: 2rem;
}

.project-link {
    display: inline-block;
    color: var(--color-black);
    text-decoration: underline;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    background-color: var(--color-white);
}

.contact-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-medium-grey);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.method-label {
    font-size: 0.875rem;
    color: var(--color-light-grey);
    font-weight: 400;
}

.contact-method a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.contact-method a:hover {
    opacity: 0.7;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    padding: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-medium-grey);
    background-color: var(--color-off-white);
}

/* ===========================
   ANIMATIONS
   =========================== */

.content-section {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .content-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        width: 280px;
        transition: left 0.3s ease;
        padding-top: 5rem;
    }

    .sidebar.open {
        left: 0;
    }

    .mobile-header {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }

    .content-section {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero-statement {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 2rem 1rem;
    }

    .hero-label {
        font-size: 1.25rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }
}

/* ===========================
   SELECTION
   =========================== */

::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-black);
    color: var(--color-white);
}
