/* ========================================
   CSS Variables & Root Settings
   ======================================== */
:root {
    /* Color Palette - Google Style */
    --color-text: #333333;
    --color-text-secondary: #5f6368;
    --color-primary: #1a73e8;  /* Google Blue */
    --color-primary-dark: #1557b0;
    --color-accent: #e8f0fe;   /* Light blue background */
    --color-link: #1a73e8;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;  /* Light gray background */
    --color-border: #dadce0;
    
    /* Typography */
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --max-width: 1100px;
    --content-width: 800px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Base Styles & Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg-light);  /* Light background for body */
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; font-weight: 300; }
h2 { font-size: 2rem; font-weight: 400; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

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

a:hover {
    text-decoration: underline;
}

/* ========================================
   Navigation - No Dark Mode Toggle
   ======================================== */
.main-nav {
    background: var(--color-bg);  /* White background */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-brand a:hover {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0 var(--spacing-md);
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background: var(--color-bg-light);
    text-decoration: none;
}

.nav-menu a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* ========================================
   Simple Hero Section (Photo on Left)
   ======================================== */
.hero-simple {
    background: var(--color-bg-light);
    padding: var(--spacing-xxl) 0;
    flex: 1;
}

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

/* Hero Section - Update the grid to accommodate square photo */
.hero-grid {
    display: grid;
    grid-template-columns: 330px 1fr;  /* Keep same width */
    gap: var(--spacing-lg);
    align-items: start;
    max-width: 1000px;
}


.hero-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.hero-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
}

.hero-affiliation {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.hero-bio {
    margin-bottom: var(--spacing-lg);
}

.hero-bio p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

/* Email outside the bubble */
.hero-contact {
    margin: var(--spacing-md) 0;
    color: var(--color-text-secondary);
}

/* Job Market Notice - Google Style Alert */
.job-market-notice {
    background: var(--color-accent);  /* Light blue background */
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-size: 1rem;
    color: #1967d2;  /* Darker blue text */
    font-weight: 500;
}

/* Photo Container - Now 440px x 550px (25% taller than square) */
.hero-photo {
    width: 330px;    /* Same width */
    height: 412.5px;   /* 25% taller than square (440 + 110 = 550) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Responsive - Update for taller photo */
@media (max-width: 768px) {
    /* ... other mobile styles ... */
    
    /* Hero photo on mobile - scale down proportionally */
    .hero-photo {
        width: 320px;    /* Smaller on mobile */
        height: 400px;   /* Maintains 4:5 ratio */
        margin: 0 auto;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .hero-photo {
        width: 280px;    /* Even smaller for tiny screens */
        height: 350px;   /* Still maintains 4:5 ratio */
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    text-decoration: none;
}

/* ========================================
   Minimal Footer (50% smaller)
   ======================================== */
.main-footer-minimal {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    margin-top: auto;
}

.footer-content-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-content-minimal p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.footer-links-minimal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links-minimal a {
    color: var(--color-primary);
    font-size: 0.875rem;
}

.footer-links-minimal a:hover {
    text-decoration: underline;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
}

.section-first {
    padding-top: var(--spacing-xxl);
}

.section-title {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--color-text);
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
    /* Typography Scale */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-name { font-size: 2rem; }
    .hero-title { font-size: 1.1rem; }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu a {
        width: 100%;
        height: auto;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--color-border);
        border-left: none;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Hero photo mobile - maintains 4:5 ratio */
    .hero-photo {
        width: 240px;
        height: 300px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer-content-minimal {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .main-nav, .main-footer-minimal, .nav-toggle {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .hero-simple {
        padding: 1rem 0;
    }
    
    .btn {
        display: none;
    }
}
