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

:root {
    --loyola-maroon: #FF69B4;
    --loyola-gold: #4169E1;
    --black: #000000;
    --white: #FFFFFF;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    padding-top: 70px;
}

/* Header */
header {
    background-color: var(--loyola-maroon);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--loyola-gold);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--loyola-gold);
}

.cv-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--loyola-gold);
    color: var(--black);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.cv-btn:hover {
    background-color: #1E4FCC;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero and About Combined Section */
.hero-about {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 25% 75%;
}

.hero-about-container {
    display: contents;
}

.hero-left {
    background: linear-gradient(135deg, var(--loyola-maroon) 0%, #FF1493 100%);
    color: var(--white);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: auto;
}

.hero-profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--loyola-gold);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-left h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--loyola-gold);
}

.hero-left .subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-left .tagline {
    font-size: 1rem;
    margin-top: 1.5rem;
    color: var(--white);
    opacity: 0.9;
    font-style: italic;
}

.hero-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.social-links-hero {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.social-link-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--loyola-gold);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link-hero:hover {
    background-color: var(--loyola-gold);
    color: var(--loyola-maroon);
    transform: translateY(-3px);
}

.hero-email {
    font-size: 0.95rem;
    color: var(--white);
}

.hero-email a {
    color: var(--loyola-gold);
    text-decoration: none;
}

.hero-email a:hover {
    text-decoration: underline;
}

.hero-right {
    background-color: var(--white);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 100vh;
}

.hero-about-section {
    margin-bottom: 2rem;
}

.hero-right > .research-interests {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.hero-right h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--loyola-maroon);
    text-align: center;
    padding-bottom: 1rem;
    position: relative;
}

.hero-right h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--loyola-gold);
}

.hero-right p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.8;
}

.research-interests {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.research-interests h3 {
    font-size: 1.3rem;
    color: var(--loyola-maroon);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    position: relative;
}

.research-interests h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--loyola-gold);
}

.news-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.news-arrow {
    background-color: var(--loyola-maroon);
    color: var(--loyola-gold);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.news-arrow:hover {
    background-color: var(--loyola-gold);
    color: var(--loyola-maroon);
    transform: scale(1.1);
}

.news-arrow:active {
    transform: scale(0.95);
}

.news-arrow-left {
    order: -1;
}

.news-arrow-right {
    order: 1;
}

.news-item {
    padding: 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--loyola-gold);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 150px;
    max-width: 320px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.2);
}

.news-item .news-date {
    font-size: 0.8rem;
    color: var(--loyola-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.news-item .news-title {
    font-size: 1.1rem;
    color: var(--loyola-maroon);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-item .news-description {
    font-size: 0.9rem;
    color: var(--black);
    line-height: 1.5;
    flex-grow: 1;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .hero-about {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        position: relative;
        top: 0;
        height: auto;
        min-height: 400px;
    }

    .hero-right {
        min-height: auto;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-about {
        grid-template-columns: 1fr;
    }

    .hero-left {
        position: relative;
        height: auto;
        min-height: 350px;
        padding: 2rem 1.5rem;
    }

    .hero-left h1 {
        font-size: 2rem;
    }

    .hero-left .subtitle {
        font-size: 1rem;
    }

    .hero-right {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-right h2 {
        font-size: 1.8rem;
    }

    .hero-right p {
        font-size: 0.95rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2rem 1.5rem;
    }

    nav {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-left .subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .hero-left .tagline {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .hero-right h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-right p {
        font-size: 0.9rem;
    }

    .social-link-hero {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .interests-grid {
        gap: 1rem;
    }

    .interest-item {
        padding: 1rem 1.5rem;
        min-height: 100px;
    }

    .interest-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .interest-item span {
        font-size: 0.8rem;
    }

    .education-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .education-logo {
        width: 90px;
        height: 90px;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    min-height: 140px;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.25);
}

.interest-icon {
    font-size: 2.75rem;
    color: var(--loyola-maroon);
    margin-bottom: 0.75rem;
}

.interest-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.25;
    max-width: 100%;
}

/* Section Styles */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section:nth-child(even):not(.hero-about) {
    background-color: var(--light-gray);
}

section.hero-about {
    max-width: none;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--loyola-maroon);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--loyola-gold);
}

/* Education Section */
.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--loyola-gold);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.education-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.education-content {
    flex-grow: 1;
}

.education-item h3 {
    color: var(--loyola-maroon);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-item .institution {
    color: var(--black);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-item .date {
    color: var(--black);
    font-size: 0.9rem;
    opacity: 0.7;
}

.education-item .description {
    color: var(--black);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Publications Section */
.publication-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-left: 4px solid var(--loyola-maroon);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 1.5rem;
}

.publication-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.15);
}

.publication-content {
    flex: 1;
}

.publication-item h3 {
    color: var(--loyola-maroon);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.publication-item .authors {
    color: var(--black);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.publication-item .venue {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.publication-item .description {
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.6;
}

.publication-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.pub-btn {
    padding: 0.5rem 1rem;
    background-color: var(--loyola-maroon);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    width: 100px;
    text-align: center;
    font-size: 0.95rem;
    box-sizing: border-box;
    height: 2.5rem;
    line-height: 1.5rem;
    white-space: nowrap;
}

.pub-btn:hover {
    background-color: var(--loyola-gold);
    color: var(--black);
}

.pub-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pub-btn.disabled:hover {
    background-color: #ccc;
    color: var(--white);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--loyola-maroon);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--loyola-gold);
}

.modal-title {
    color: var(--loyola-maroon);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-authors {
    font-style: italic;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.modal-venue {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.modal-abstract {
    color: var(--black);
    line-height: 1.8;
    text-align: justify;
}

/* Citation modal styles */
.citation-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.citation-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--black);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.citation-tab:hover {
    color: var(--loyola-maroon);
}

.citation-tab.active {
    color: var(--loyola-maroon);
    border-bottom-color: var(--loyola-gold);
}

.citation-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--loyola-maroon);
    margin-bottom: 1rem;
    position: relative;
}

.citation-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--black);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--loyola-maroon);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: var(--loyola-gold);
    color: var(--black);
}

.copy-success {
    display: inline-block;
    margin-left: 1rem;
    color: green;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--loyola-maroon);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 500;
}

.contact-link:hover {
    background-color: var(--loyola-gold);
    color: var(--black);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--loyola-maroon);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer p {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    section {
        padding: 3rem 1.5rem;
    }

    .publication-item h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 968px) {
    .hero-about-container {
        grid-template-columns: 1fr;
    }

    .hero-left,
    .hero-right {
        padding: 3rem 2rem;
    }

    .publication-buttons {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: var(--loyola-maroon);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-left h1 {
        font-size: 2rem;
    }

    .hero-left .subtitle {
        font-size: 1rem;
    }

    .hero-right h2 {
        font-size: 2rem;
    }

    .hero-right p {
        font-size: 1rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .publication-item {
        flex-direction: column;
    }

    .publication-buttons {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
    }

    .pub-btn {
        width: auto;
        flex: 1;
        min-width: 80px;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .citation-tabs {
        flex-wrap: wrap;
    }

    .citation-tab {
        padding: 0.5rem 1rem;
        flex: 1;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.75rem;
    }

    .hero-left,
    .hero-right {
        padding: 2rem 1.5rem;
    }

    .hero-right h2 {
        font-size: 1.75rem;
    }

    .hero-right p {
        font-size: 0.95rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .interest-item {
        padding: 0.75rem;
    }

    .interest-icon {
        font-size: 2rem;
    }

    .interest-item span {
        font-size: 0.85rem;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .education-logo {
        width: 90px;
        height: 90px;
    }

    .education-item h3 {
        font-size: 1.25rem;
    }

    .publication-item {
        padding: 1rem;
    }

    .publication-item h3 {
        font-size: 1.1rem;
    }

    .publication-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .pub-btn {
        flex: 1;
        font-size: 0.85rem;
        padding: 0.5rem 0.5rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .citation-box {
        padding: 1rem;
    }

    .citation-text {
        font-size: 0.8rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}
