/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --primary-accent: #2563eb;
    --secondary-color: #4a5568;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --border-color: #e2e8f0;
    --border-light: #f0f0f0;
    --accent-light: #e6f2ff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 900px;
    --max-width-wide: 1200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid #333;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.nav-brand {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}
/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 4rem 0 3.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: left;
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-institution {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: left;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    line-height: 1.7;
    font-style: italic;
}

/* About Section */
.about {
    background: var(--bg-primary);
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skills-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.skills-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--primary-accent);
    font-weight: 600;
}

.education {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-accent);
    border-radius: 4px;
}

.education h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.education-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-item strong {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.education-item span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.education-year {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.education-honors {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.education-honors strong {
    color: var(--text-primary);
    font-weight: 600;
}

.coursework {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.coursework h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.coursework p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.research-section,
.leadership-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.research-section h3,
.leadership-section h3 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.research-item,
.leadership-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.research-item:last-child,
.leadership-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.research-header,
.leadership-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-header strong,
.leadership-header strong {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.research-date,
.leadership-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    white-space: nowrap;
}

.research-title,
.leadership-title {
    font-size: 1rem;
    color: var(--primary-accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.research-details,
.leadership-details {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.research-details li,
.leadership-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

.research-details li::before,
.leadership-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: 600;
}

.research-presentations {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary-accent);
    border-radius: 3px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.research-presentations strong {
    color: var(--text-primary);
    font-weight: 600;
}

.research-presentations em {
    font-style: italic;
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.project-management {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

.project-card.placeholder {
    grid-column: 1 / -1;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.project-placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.project-placeholder-content svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

.project-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.35rem 0.75rem;
    background: var(--accent-light);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--primary-accent);
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.project-interdisciplinary {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.project-link:hover {
    border-bottom-color: var(--primary-accent);
}

.btn-view-case-study {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-view-case-study:hover {
    background: var(--primary-accent);
}

.btn-edit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-edit:hover {
    background: var(--primary-accent);
    color: white;
}

.btn-delete {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-delete:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    max-width: 700px;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    animation: slideUp 0.3s;
    box-shadow: var(--shadow-lg);
}

.case-study-content {
    max-width: 900px;
    padding: 3rem;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Case Study Content */
.case-study-section {
    margin-bottom: 2.5rem;
}

.case-study-section h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.case-study-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.case-study-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.case-study-tech {
    background: var(--bg-secondary);
    padding: 1rem;
    border-left: 3px solid var(--primary-accent);
    margin: 1rem 0;
    border-radius: 3px;
}

.case-study-tech h4 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.contact-item svg {
    color: var(--primary-accent);
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-accent);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #000;
        width: 100%;
        text-align: left;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 0;
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid #333;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .research-header,
    .leadership-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .research-date,
    .leadership-date {
        margin-top: 0.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .case-study-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        margin-top: 60px;
    }

    .modal-content {
        padding: 1.25rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

