/* ==================== */
/* CSS Reset & Variables */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --dark-bg: #0c0e10;
    --dark-surface: #191c24;
    --dark-border: #334155;
    --light-text: #f1f5f9;
    --light-muted: #cbd5e1;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Spacing */
    --spacing-unit: 1rem;
    
    /* Other */
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ==================== */
/* Base Styles */
/* ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== */
/* Typography */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-muted);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

.project-logo{
    width: 100px;
    height: 100px;
    border: solid 1px rgb(98, 115, 133);
}

/* ==================== */
/* Container */
/* ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* ==================== */
/* Header & Navigation */
/* ==================== */
header {
    background-color: var(--dark-surface);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.fa-color{
        color: rgb(173, 204, 239);
}

/* Reset sticky behavior on smaller screens */
.profile-section {
    position: static;
    height: auto;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 70px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
    z-index: 200;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

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

.nav-links a {
    color: var(--light-muted);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ==================== */
/* Main Layout */
/* ==================== */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem var(--spacing-unit);
}

/* ==================== */
/* Sidebar */
/* ==================== */
.sidebar {
    /* Parent stretches to match right column height; child will be sticky */
    position: static;
    height: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.profile-section {
    background-color: var(--dark-surface);
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--dark-border);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Sticky child so aside remains same visual height but stays visible */
    position: sticky;
    top: 90px;
}

.profile-image-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    display: block;
}

.profile-section h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-title {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.certifications {
    font-size: 0.85rem;
    color: var(--light-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.location {
    font-size: 0.95rem;
    color: var(--light-muted);
    margin-bottom: 0.5rem;
}

.pronouns {
    font-size: 0.85rem;
    color: var(--light-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-border);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-hover);
    background-color: rgba(96, 165, 250, 0.1);
    border-radius: 0.25rem;
}

.social-icon {
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

/* ==================== */
/* Main Content */
/* ==================== */
.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    font-size: 1.5rem;
}

.section-header h2 {
    margin: 0;
    color: var(--light-text);
}

/* ==================== */
/* About Section */
/* ==================== */
.about {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--dark-border);
}

.about p {
    color: var(--light-muted);
    line-height: 1.7;
}

/* ==================== */
/* Technology Section */
/* ==================== */
.technology {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--dark-border);
}

.tech-category {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--dark-border);
}

.tech-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tech-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tech-category h3 a {
    color: var(--accent);
    text-decoration: underline;
}

.tech-category p {
    color: var(--light-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.tech-tags {
    font-size: 0.9rem;
    color: var(--accent);
    font-style: italic;
}

/* ==================== */
/* Art Section */
/* ==================== */
.art {
    background-color: var(--dark-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--dark-border);
}

.art-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.art-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.art-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.art-category h3 a {
    color: var(--accent);
    text-decoration: underline;
}

.art-category p {
    color: var(--light-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ==================== */
/* Responsive Design */
/* ==================== */

/* Tablets */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem var(--spacing-unit);
    }

    .sidebar {
        position: static;
        top: auto;
    }

    .sidebar {
        align-self: auto;
    }

    .profile-section {
        padding: 1.5rem;
    }

    .profile-section {
        height: auto;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-section h1 {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    /* Ensure nav-brand fits on one line by scaling font size (no ellipsis) */
    .nav-brand {
        min-width: 0;
        white-space: nowrap;
        overflow: visible;
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }

    h2 {
        font-size: 1.5rem;
    }

    .about,
    .technology,
    .art {
        padding: 1.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    header .container {
        height: auto;
        padding: 1rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    /* Constrain the brand to a single line and allow it to shrink next to hamburger */
    header .container {
        align-items: center;
    }

    .nav-brand {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: visible;
        font-size: clamp(0.95rem, 4.5vw, 1.25rem);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--dark-surface);
        border-bottom: 1px solid var(--dark-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--dark-border);
        color: var(--light-muted);
    }

    .nav-links a:hover {
        background-color: rgba(96, 165, 250, 0.1);
        color: var(--accent);
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem var(--spacing-unit);
    }

    .profile-section {
        padding: 1rem;
    }

    .profile-section {
        height: auto;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-section h1 {
        font-size: 1.1rem;
    }

    .job-title {
        font-size: 0.9rem;
    }

    .certifications {
        font-size: 0.8rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .section-header {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

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

    .about,
    .technology,
    .art {
        padding: 1.25rem;
    }

    .tech-category,
    .art-category {
        margin-bottom: 1.25rem;
    }

    .tech-category h3,
    .art-category h3 {
        font-size: 1rem;
    }

    .tech-category p,
    .art-category p {
        font-size: 0.95rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* ==================== */
/* Page-Specific Styles */
/* ==================== */
/* Projects page: full-width content, hide sidebar */
.projects-page .main-layout {
    grid-template-columns: 1fr;
}

.projects-page .sidebar {
    display: none;
}

.space{
    margin-right: 5px;
}