/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    border-bottom: 1px solid #333333;
    z-index: 1000;
    padding: 12px 0;
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

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

.resume-btn {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background-color: #f0f0f0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px 20px;
    background-color: #000000;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
}

.hero-image {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    min-height: 100%;
}

.headshot {
    width: 130%;
    max-width: 550px;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    transform: rotate(0deg);
    object-position: center;
    margin: 0 -25%;
    align-self: stretch;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-bio {
    max-width: none;
    margin: 0;
}

.hero-bio p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-bio p:last-child {
    margin-bottom: 0;
}


.hero-name {
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    line-height: 1.2;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Typewriter Animation - Based on React TextType component */
.typewriter-text {
    display: inline-block;
    white-space: pre-wrap;
}

.text-type__content {
    display: inline;
    color: #ffffff;
}

.text-type__cursor {
    margin-left: 0.25rem;
    display: inline-block;
    opacity: 1;
    color: #ffffff;
}

.text-type__cursor--hidden {
    display: none;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ScrollStack Styles */
.scroll-stack-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.scroll-stack-card-wrapper {
    position: relative;
}

.scroll-stack-card {
    transform-origin: top center;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    min-height: auto;
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    transition: transform 0.1s ease-out;
}

.scroll-stack-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 400;
}

.scroll-stack-card .research-year,
.scroll-stack-card .project-year {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 15px;
    font-weight: 400;
}

.scroll-stack-card .research-description,
.scroll-stack-card .project-description {
    color: #444444;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.scroll-stack-card .visit-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #444444;
    text-decoration: none;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.scroll-stack-card .visit-btn:hover {
    background-color: #444444;
    color: #ffffff;
}

.scroll-stack-end {
    width: 100%;
    height: 1px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: Georgia, serif;
}

.projects-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Research Section */
.research-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.research-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.research-card:hover {
    background-color: #333333;
    border-color: #333333;
}

.research-card:hover .research-title,
.research-card:hover .research-year,
.research-card:hover .research-description {
    color: #ffffff;
}

.research-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 400;
}

.research-year {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 15px;
    font-weight: 400;
}

.research-description {
    color: #444444;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.filter-label {
    font-size: 1rem;
    color: #000000;
    font-weight: 400;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.filter-btn.active {
    background-color: #000000;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Projects Section */
.projects {
    padding: 40px 0 80px 0;
    background-color: #ffffff;
}

.projects-table, .research-table {
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.header-cell {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-header {
    text-align: left;
}

.year-header {
    text-align: right;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 48px;
}

.table-row:hover {
    background-color: transparent;
}

.table-row.active {
    background-color: transparent;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.project-cell {
    font-size: 1rem;
    font-weight: 400;
    color: #444444;
    text-align: left;
    line-height: 1;
}

.year-cell {
    font-size: 1.1rem;
    font-weight: 400;
    color: #000000;
    text-align: right;
    line-height: 1;
}

.project-description {
    max-height: 0;
    overflow: hidden;
    transition: none;
    background-color: transparent;
    margin: 0;
    padding: 0 0 0 0;
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
}

.project-description.active {
    max-height: 200px;
    padding: 20px 0;
}

.project-description p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #444444;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-description.active p {
    opacity: 1;
}

.visit-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #444444;
    text-decoration: none;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    opacity: 0;
}

.project-description.active .visit-btn {
    opacity: 1;
}

.visit-btn:hover {
    background-color: #444444;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .hero-name {
        font-size: 3rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-image {
        flex: none;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-bio p {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-table {
        margin: 30px auto 0 auto;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 30px auto 0 auto;
    }
    
    .table-row {
        padding: 15px 0;
    }
    
    .project-cell, .year-cell {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .research-section {
        padding: 60px 0;
    }
    
    .projects {
        padding: 30px 0 60px 0;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }
    
    .nav-right {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .resume-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-bio p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .table-row {
        padding: 12px 0;
    }
    
    .project-cell, .year-cell {
        font-size: 0.95rem;
    }
    
    .project-description p {
        font-size: 0.9rem;
    }
    
    .research-card {
        padding: 20px;
    }
    
    .research-title {
        font-size: 1.2rem;
    }
    
    .research-description {
        font-size: 0.9rem;
    }
    
    .about-section {
        padding: 40px 0;
    }
    
    .research-section {
        padding: 40px 0;
    }
    
    .contact-content {
        gap: 30px;
        padding: 0 20px;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Contact Section */
.contact-section {
    background-color: #ffffff;
    padding: 80px 0;
    color: #333333;
}

.contact-section .section-title {
    font-family: 'Georgia', serif;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-info {
    text-align: center;
    max-width: 600px;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666666;
}

.contact-details p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #444444;
}

.contact-details strong {
    color: #333333;
}

.contact-form {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333333;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #333333;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    background-color: #555555;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: #cccccc;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-right {
        gap: 15px;
    }
}
