/* Reset and Base Styles */

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

html {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --yellow-ochre: #edd286;
    --light-beige: #F5F1E8;
    --light-grey: #E8E8E8;
    --dark-text: #2C2C2C;
    --dark-grey: #4A4A4A;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-beige);
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Special Gothic Expanded One', 'Oswald', sans-serif;
    font-weight: 400;
    color: var(--dark-text);
    letter-spacing: 0.05em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    padding: 2rem 3rem;
}

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

.nav-name {
    font-family: 'Special Gothic Expanded One', 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

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

.nav-link {
    font-family: 'Special Gothic Expanded One', 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em;
}

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

.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-width: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    min-width: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-width: 680px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 4rem 3rem;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-name {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--white);
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-links {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.profile-link {
    display: block;
    width: 200px;
    height: 60px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-link img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
}

.profile-link.inspire {
    background-color: #1E3A8A;
}

.profile-link.researchgate {
    background-color: var(--white);
}

.profile-link.linkedin {
    background-color: var(--white);
}

.profile-link.linkedin img {
    width: 100%;
    height: auto;
    object-fit: fill;
    object-position: center;
}

/* Featured Projects Section */
.featured-projects {
    background-color: var(--light-beige);
    padding: 6rem 3rem;
    width: 100%;
    overflow-x: hidden;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.15em;
    text-decoration-color: var(--dark-text);
}

.projects-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-image-container {
    width: 100%;
    max-width: 660px;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio (2/3 = 0.6667) */
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image:hover,
.project-image-link:hover .project-image {
    transform: scale(1.05);
}

.project-image-link:hover {
    cursor: pointer;
}

.project-content {
    padding: 2rem 0;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-duration {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.project-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-link {
    color: var(--dark-text);
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--dark-grey);
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    min-width: 680px;
    background-color: var(--yellow-ochre);
    padding: 8rem 0 0;
    width: 100%;
    overflow-x: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    min-height: calc(100vh - 8rem);
    max-width: 1400px;
    margin: 0 auto;
}

.contact-left {
    background-color: var(--yellow-ochre);
    padding: 4rem;
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.contact-email {
    font-size: 1.1rem;
    color: var(--dark-text);
    text-decoration: none;
    margin-bottom: 3rem;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--dark-text);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-grey);
}

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

.submit-button {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background-color: var(--dark-grey);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.submit-button:hover {
    background-color: var(--dark-text);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.contact-right {
    background-color: var(--yellow-ochre);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contact-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Interests Section */
.interests-section {
    min-height: 100vh;
    width: 100%;
    background-color: var(--yellow-ochre);
    padding: 8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interests-container {
    max-width: 800px;
    text-align: center;
}

.interests-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.interests-placeholder {
    font-size: 1.2rem;
    color: var(--dark-grey);
}

/* Resume Section */
.resume-section {
    min-height: 100vh;
    width: 100%;
    background-color: var(--yellow-ochre);
    padding: 8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
}

.resume-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.resume-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.resume-placeholder {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.resume-note {
    font-size: 1rem;
    color: var(--dark-grey);
}

.resume-pdf-link {
    display: block;
    text-decoration: none;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    box-sizing: border-box;
    overflow: hidden;
}

.resume-pdf-preview {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 129.4%; /* Standard US Letter aspect ratio (8.5/11) */
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.resume-pdf-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.resume-pdf-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    max-width: 100%;
    object-fit: contain;
}

.resume-pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.resume-pdf-preview:hover .resume-pdf-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.resume-download-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.resume-pdf-preview:hover .resume-download-text {
    opacity: 1;
}

/* Footer */
.footer {
    /* min-width: 680px; */
    width: 100%;
    background-color: var(--yellow-ochre);
    padding: 3rem;
    text-align: left;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.footer-email {
    font-size: 1.1rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-image-container {
        width: 100%;
        max-width: 100%;
    }

    .project-image {
        width: 100%;
        max-width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-right {
        min-height: 400px;
    }

    .profile-links {
        position: absolute;
        top: 12rem;
        left: 1rem;
        right: 1rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        z-index: 50;
    }

    .profile-link {
        width: 100px;
        height: 40px;
        flex-shrink: 0;
    }

    .hero-image-container {
        width: 100%;
        min-width: 100%;
        height: 100vh;
    }

    .hero-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .resume-section,
    .interests-section {
        width: 100%;
        min-width: 100%;
        padding: 4rem 1.5rem;
    }

    .navbar {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        position: fixed;
    }

    .nav-container {
        width: 100%;
        padding: 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-name {
        font-size: 1rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }

    .nav-name {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-image-container {
        width: 100%;
        min-width: 100%;
        height: 100vh;
    }

    .hero-image {
        width: 100%;
        min-width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero {
        min-width: 100%;
        width: 100%;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
    }

    .nav-container {
        width: 100%;
        padding: 0 1rem;
    }

    .contact-section {
        min-width: 100%;
        width: 100%;
        padding: 6rem 0 0;
    }

    .contact-container {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .contact-left {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .contact-right {
        width: 100%;
        min-height: 300px;
    }

    .footer {
        width: 100%;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-overlay {
        padding: 2rem 1.5rem;
    }

    .featured-projects {
        padding: 4rem 1rem;
        width: 100%;
        max-width: 100%;
    }

    .projects-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .project-image-container {
        width: 100%;
        max-width: 100%;
        padding-bottom: 66.67%; /* Maintain 3:2 aspect ratio */
        height: 0;
    }

    .project-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .projects-title {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .contact-left {
        padding: 2rem;
    }

    .resume-section {
        padding: 4rem 0.5rem;
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .resume-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .resume-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .resume-pdf-link {
        max-width: 100%;
        width: calc(100% - 1rem);
        margin: 2rem auto 0;
        padding: 0;
        box-sizing: border-box;
        display: block;
    }

    .resume-pdf-preview {
        padding-bottom: 140%; /* Slightly taller for mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .resume-pdf-iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
    }

    .resume-download-text {
        font-size: 1.2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Fade-in animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

