/* ============================================
   CSS VARIABLES - Rice University Color Scheme
   ============================================ */
   :root {
    --rice-blue: #00205B;
    --cool-gray: #7C7E7F;
    --off-white: #F9F9F9;
    --white: #FFFFFF;
    --light-gray: #E5E5E5;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--off-white);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Merriweather', serif;
    color: var(--rice-blue);
    font-weight: 600;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-family: Georgia, serif;
    color: var(--rice-blue);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--rice-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    border-bottom: 2px solid var(--rice-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--rice-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* ============================================
   SECTION CONTAINER
   ============================================ */
.section {
    min-height: 100vh;
    padding: 100px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Compact padding for education section */
#education .section-content {
    max-width: 1200px;
    padding-bottom: 30px;
    margin: 0 auto;
}

/* ============================================
   LANDING SECTION
   ============================================ */
#home {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    padding-top: 80px;
}

.landing-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 40px 0;
}

.landing-image {
    flex: 0 0 350px;
}

.profile-photo {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--off-white);
    border: 6px solid var(--rice-blue);
    box-shadow: 0 10px 40px rgba(0, 32, 91, 0.25);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.landing-content {
    flex: 1;
}

.landing-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--rice-blue);
    line-height: 1.2;
}

.landing-subtitle {
    font-size: 1.4rem;
    color: var(--cool-gray);
    margin-bottom: 2rem;
    font-weight: 500;
}

.landing-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2.5rem;
}

.landing-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--rice-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 32, 91, 0.3);
}

.btn-primary:hover {
    background-color: #003380;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 32, 91, 0.4);
}

.btn-secondary {
    background-color: var(--cool-gray);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 126, 127, 0.3);
}

.btn-secondary:hover {
    background-color: #5a5c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 126, 127, 0.4);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--rice-blue);
}

/* Compact header for education section */
#education .section-header {
    margin-bottom: 1.2rem;
    margin-top: 0;
    text-align: center;
}

#education .section-title {
    font-size: 2.5rem;
}

#education .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
#education {
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 70px;
}

.education-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.education-card {
    background-color: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 32, 91, 0.15);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-degree-title {
    font-size: 1.4rem;
    color: var(--rice-blue);
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.education-date {
    color: var(--cool-gray);
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

.education-institution-link {
    color: var(--rice-blue);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-details-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.education-details-list li {
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.education-details-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--rice-blue);
    font-weight: bold;
}

.education-details-list li strong {
    color: #000;
}

/* Technical Skills Section */
.skills-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 2rem auto 0;
}

.skills-title {
    font-size: 1.5rem;
    color: var(--rice-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 32, 91, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.skill-item:before {
    content: "▸";
    color: var(--rice-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.skill-item:last-child {
    border-bottom: none;
}

/* ============================================
   WORK EXPERIENCE SECTION (CAROUSEL)
   ============================================ */
#experience {
    background-color: var(--off-white);
}

.experience-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.experience-slider {
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.experience-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(100%);
}

.experience-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.experience-slide.prev {
    transform: translateX(-100%);
}

.experience-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.experience-card:hover {
    box-shadow: 0 8px 30px rgba(0, 32, 91, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title {
    font-size: 1.4rem;
    color: var(--rice-blue);
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.experience-date {
    color: var(--cool-gray);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.experience-organization {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.experience-location {
    color: var(--cool-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-responsibilities {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.experience-responsibilities li {
    color: #555;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.experience-responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--rice-blue);
    font-weight: bold;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--rice-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 32, 91, 0.3);
}

.carousel-btn:hover {
    background-color: #003380;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 32, 91, 0.4);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background-color: var(--cool-gray);
}

.carousel-indicator.active {
    background-color: var(--rice-blue);
    width: 14px;
    height: 14px;
    border-color: var(--rice-blue);
}

/* ============================================
   RESEARCH SECTION
   ============================================ */
#research {
    background-color: var(--white);
    padding: 70px 20px 60px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.research-card {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.research-card:hover {
    box-shadow: 0 8px 30px rgba(0, 32, 91, 0.15);
}

.research-title {
    font-size: 1.5rem;
    color: var(--rice-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.research-meta {
    font-size: 0.95rem;
    color: var(--rice-blue);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.research-abstract {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.research-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    gap: 2.5rem;
}

.project-card {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 32, 91, 0.15);
}

.project-title {
    font-size: 1.4rem;
    color: var(--rice-blue);
    margin-bottom: 1rem;
}

.project-meta {
    font-size: 0.95rem;
    color: var(--cool-gray);
    font-style: italic;
    margin-bottom: 1rem;
}

.project-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background-color: var(--light-gray);
    color: var(--rice-blue);
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
}

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

/* ============================================
   AWARDS & ACHIEVEMENTS SECTION
   ============================================ */
#awards {
    background-color: var(--white);
    padding: 70px 20px 60px;
}

#awards .section-content {
    max-width: 1200px;
    padding-bottom: 30px;
    margin: 0 auto;
}

#awards .section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.awards-container {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-item {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 32, 91, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.award-item:before {
    content: "▸";
    color: var(--rice-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.award-item:last-child {
    border-bottom: none;
}

/* ============================================
   WRITING SECTION
   ============================================ */
#writing {
    background-color: var(--off-white);
    padding: 40px 20px 60px;
}

#writing .section-header {
    margin-bottom: 1.5rem;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.writing-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-left: 5px solid var(--rice-blue);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.writing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 32, 91, 0.15);
}

.writing-title {
    font-size: 1.5rem;
    color: var(--rice-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.writing-type {
    font-size: 0.95rem;
    color: var(--rice-blue);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.writing-excerpt {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-style: italic;
}

.writing-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    background-color: var(--off-white);
    padding: 70px 40px 40px;
    min-height: auto;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-icons-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-icon-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-icon-link:hover {
    transform: translateY(-5px);
}

.contact-icon-circle {
    width: 90px;
    height: 90px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-icon-link:hover .contact-icon-circle {
    box-shadow: 0 8px 30px rgba(0, 32, 91, 0.2);
}

.contact-icon-circle svg {
    color: #333;
}


/* ============================================
   FOOTER
   ============================================ */
#footer {
    background-color: var(--rice-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .landing-container {
        gap: 3rem;
    }
    
    .landing-image {
        flex: 0 0 350px;
    }
    
    .profile-photo {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .landing-container {
        flex-direction: column;
        text-align: center;
    }
    
    .landing-image {
        flex: none;
    }
    
    .profile-photo {
        width: 300px;
        height: 300px;
    }
    
    .landing-title {
        font-size: 2.5rem;
    }
    
    .landing-subtitle {
        font-size: 1.2rem;
    }
    
    .landing-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    #education .section-title {
        font-size: 2rem;
    }
    
    .education-card {
        padding: 1.8rem;
    }
    
    .education-degree-title {
        font-size: 1.3rem;
    }
    
    .education-date {
        font-size: 1rem;
    }
    
    .skills-container {
        padding: 2rem;
    }
    
    .skills-title {
        font-size: 1.3rem;
    }
    
    .skill-item {
        font-size: 1rem;
        padding: 0.7rem 0;
        padding-left: 1.5rem;
    }
    
    .experience-card {
        padding: 1.8rem;
    }
    
    .experience-title {
        font-size: 1.3rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        padding: 2rem;
    }
    
    .awards-container {
        padding: 2rem;
    }
    
    .award-item {
        font-size: 1rem;
        padding: 0.7rem 0;
        padding-left: 1.5rem;
    }
    
    .writing-grid {
        grid-template-columns: 1fr;
    }
    
    .writing-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .profile-photo {
        width: 260px;
        height: 260px;
    }
    
    .landing-title {
        font-size: 2rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .landing-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 80px 15px 40px;
    }
    
    #education {
        padding: 80px 15px 30px;
    }
    
    .education-card {
        padding: 1.5rem;
    }
    
    .education-degree-title {
        font-size: 1.2rem;
    }
    
    .education-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .education-date {
        font-size: 0.95rem;
    }
    
    .skills-container {
        padding: 1.5rem;
    }
    
    .skills-title {
        font-size: 1.2rem;
    }
    
    .skill-item {
        font-size: 0.95rem;
        padding: 0.6rem 0;
        padding-left: 1.3rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .experience-title {
        font-size: 1.2rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .experience-slider {
        min-height: 500px;
    }
    
    .research-card {
        padding: 1.5rem;
    }
    
    .research-title {
        font-size: 1.3rem;
    }
    
    .awards-container {
        padding: 1.5rem;
    }
    
    .award-item {
        font-size: 0.95rem;
        padding: 0.6rem 0;
        padding-left: 1.3rem;
    }
    
    .writing-card {
        padding: 1.5rem;
    }
    
    .writing-title {
        font-size: 1.3rem;
    }
    
    .contact-icons-grid {
        gap: 2rem;
    }
    
    .contact-icon-circle {
        width: 75px;
        height: 75px;
    }
    
    .contact-icon-circle svg {
        width: 28px;
        height: 28px;
    }
}
