:root {
    --bg-color: #fdfcfb;
    --surface-color: #ffffff;
    --text-primary: #1e1e1e;
    --text-secondary: #575757;
    --accent-color: #1e293b;
    /* Navy Academic */
    --accent-gold: #b45309;
    /* Subtle gold for highlights */
    --border-color: #e5e5e5;
    --font-heading: 'EB Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 850px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

.blob-glow {
    position: fixed;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 41, 59, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.profile-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 1rem;
}

.accent {
    color: var(--accent-gold);
    font-weight: 500;
}

.social-links {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

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

.proz-link {
    font-family: var(--font-body) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
}

/* Sections */
.section {
    padding: 2.5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.bioText {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
}

/* Projects Overhaul - Split Layout */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.project-item {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.project-sidebar {
    position: sticky;
    top: 2rem;
}

.university-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.uni-logo {
    width: 35px;
    /* Slightly larger for top placement */
    height: 35px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.project-item:hover .uni-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.project-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: normal;
    color: var(--accent-color);
    line-height: 1.2;
}

.project-year {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: block;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    width: fit-content;
}

.status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    display: inline-block;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.project-content p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 550px;
}

.project-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.project-gallery::-webkit-scrollbar {
    height: 6px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.project-gallery img {
    height: 320px;
    /* Default for mobile-first shots (e.g. TezTok) */
    width: auto;
    max-width: 100%;
    /* Prevent landscape shots from exceeding screen width */
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.solar-gallery img {
    height: 180px;
    /* Compact for horizontal solar screenshots */
}

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

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.project-links a:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Removed Animations */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    h1 {
        font-size: 2.2rem;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-sidebar {
        position: static;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .project-gallery img {
        height: 220px;
        /* Smaller mobile screenshots */
    }

    .solar-gallery img {
        height: 140px;
        /* Smaller solar screenshots for mobile */
    }

    .bioText {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .project-gallery {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0;
        box-sizing: border-box;
    }

    .project-gallery img {
        height: 180px;
    }

    .solar-gallery img {
        height: 120px;
    }
}