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

:root {
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8F6F3;
    --color-bg-card: #F5F3EF;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #5C5C5C;
    --color-text-tertiary: #8C8C8C;
    --color-accent: #D97A4A;
    --color-accent-hover: #C26A3A;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-shadow: rgba(0, 0, 0, 0.04);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.15s var(--transition);
    padding: 2rem 0 1.5rem;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transition: all 0.15s var(--transition);
}

.nav.scrolled .nav-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.4s var(--transition);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
}

.nav.scrolled .logo {
    font-size: 1rem;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav.scrolled .nav-menu {
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: all 0.3s var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    width: 100%;
}


/* Dropdown Menu - UPDATED */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border: 1px solid var(--color-border);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.dropdown-item:hover {
    background: rgba(217, 122, 74, 0.08);
    color: var(--color-accent);
    padding-left: 1.5rem;
}


/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 15rem 0 4rem;
    background: var(--color-bg-secondary);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
}

.hero-content {
    display: grid;
    grid-template-columns: 30% 60%;
    gap: 8%;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.avatar-wrapper {
    position: relative;
    text-align: center;
    margin-top: 3rem; /* ADDED - pushes avatar down */
}

.avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #E89A6C 100%);
    box-shadow: 
        0 0 40px rgba(217, 122, 74, 0.4),
        0 0 80px rgba(217, 122, 74, 0.2),
        0 20px 60px rgba(217, 122, 74, 0.25);
    border: 6px solid #FFFFFF;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(217, 122, 74, 0.4),
            0 0 80px rgba(217, 122, 74, 0.2),
            0 20px 60px rgba(217, 122, 74, 0.25);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(217, 122, 74, 0.6),
            0 0 120px rgba(217, 122, 74, 0.3),
            0 20px 60px rgba(217, 122, 74, 0.35);
    }
}

.avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Floating dots around avatar */
.avatar-wrapper::before,
.avatar-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
    animation: float 20s ease-in-out infinite;
}

.avatar-wrapper::before {
    width: 32px;
    height: 32px;
    top: -8%;
    right: 8%;
    animation: float 6s ease-in-out infinite, fadeInOut 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(217, 122, 74, 0.3);
}

.avatar-wrapper::after {
    width: 24px;
    height: 24px;
    bottom: 12%;
    left: -8%;
    animation: float 7s ease-in-out infinite reverse, fadeInOut 4s ease-in-out infinite;
    animation-delay: 0s, 1s;
    box-shadow: 0 4px 12px rgba(217, 122, 74, 0.3);
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-dots {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    pointer-events: none;
}

.avatar-dots span {
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 4px 12px rgba(217, 122, 74, 0.3);
    animation: dotFadeInOut 4s ease-in-out infinite;
}

.avatar-dots span:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 8%;
    left: 28%;
    animation-delay: 0s;
}

.avatar-dots span:nth-child(2) {
    width: 28px;
    height: 28px;
    top: 22%;
    right: 5%;
    animation-delay: 0.7s;
}

.avatar-dots span:nth-child(3) {
    width: 16px;
    height: 16px;
    bottom: 18%;
    right: 12%;
    animation-delay: 1.4s;
    display: none;
}

.avatar-dots span:nth-child(4) {
    width: 24px;
    height: 24px;
    bottom: 35%;
    left: 3%;
    animation-delay: 2.1s;
    display: none;
}

.avatar-dots span:nth-child(5) {
    width: 18px;
    height: 18px;
    top: 48%;
    left: 0%;
    animation-delay: 2.8s;
}

.avatar-dots span:nth-child(6) {
    width: 14px;
    height: 14px;
    top: 15%;
    right: 22%;
    animation-delay: 3.5s;
}

.avatar-dots span:nth-child(7) {
    width: 22px;
    height: 22px;
    bottom: 8%;
    left: 18%;
    animation-delay: 0.5s;
    display: none;
}

.avatar-dots span:nth-child(8) {
    width: 12px;
    height: 12px;
    top: 65%;
    right: 8%;
    animation-delay: 1.2s;
}

@keyframes dotFadeInOut {
    0%, 100% {
        opacity: 0;
        transform: scale(0.6) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(-8px);
    }
}

.avatar-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.avatar-institution {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.avatar-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.avatar-social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(217, 122, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    font-weight: 600;
}

.avatar-social-link:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.hero-greeting {
    font-size: 2.5rem;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif; /* OR 'DM Sans', sans-serif */
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-institution {
    font-size: 1.25rem;
    color: var(--color-text-tertiary);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(217, 122, 74, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(217, 122, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: rgba(217, 122, 74, 0.08);
    transform: translateY(-2px);
}

/* Section Block Design */
.section {
    padding: 6rem 3rem;
    position: relative;
}

.section-alt {
    background: var(--color-bg-secondary);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 1400px;
}

/* Biography Section */
.biography-content {
    max-width: 800px;
    margin: 0 auto;
}

.biography-content p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.biography-content strong {
    color: var(--color-accent);  /* This makes strong text orange */
    font-weight: 600;
}


/* Research Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.interest-card {
    background: var(--color-bg-card);
    padding: 2.0rem;
    border-radius: 14px;
    border: 2px solid var(--color-border);
    transition: all 0.3s var(--transition);
}

.interest-card:nth-child(1) {
    background: #E8DDD0;
}

.interest-card:nth-child(2) {
    background: #B8D4CE;
}

.interest-card:nth-child(3) {
    background: #C9C9E5;
}

.interest-card:nth-child(4) {
    background: #B3D7F7;
}

.interest-card:nth-child(5) {
    background: #FFD7B5;
}

.interest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.interest-icon {
    width: 56px;
    height: 56px;
    background: rgba(217, 122, 74, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.interest-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.interest-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Education Timeline */
.education-list {
    display: grid;
    gap: 1.25rem;
}

.education-item {
    background: var(--color-bg-card);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    align-items: start;
    transition: all 0.3s var(--transition);
}

.education-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.education-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.education-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.education-institution {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.education-details {
    font-size: 0.9375rem;
    color: var(--color-text-tertiary);
    margin-top: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(217, 122, 74, 0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Professional Journey Section */
.journey-list {
    display: grid;
    gap: 1.25rem;
}

.journey-item {
    background: var(--color-bg-card);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.2rem;
    transition: all 0.3s var(--transition);
}

.journey-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.journey-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journey-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.journey-company {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.skill-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1.75rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.skill-level {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.skill-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, #E89A6C 100%);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, #E89A6C 100%);
    padding: 5rem 3rem;
    text-align: center;
    color: white;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-cta p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;  /* Add this for better readability */
}

.btn-white {
    background: white;
    color: var(--color-accent);
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--color-text-primary);
    color: white;
    padding: 3rem 3rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 0.9375rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Smooth Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* RESEARCH PAGE - Make content visible by default */
.research-hero .fade-in,
#working-papers.fade-in,
#publications.fade-in,
#presentations.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================
   RESEARCH PAGE STYLES
   ======================================== */

/* Author highlighting and abstract label */
.author-highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* Author links */
.author-link {
    color: #16a085;  /* Teal that works with your warm theme */
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(217, 122, 74, 0.3);  /* Subtle glow */
}

.abstract-label {
    color: var(--color-accent);
    font-weight: 600;
}

/* Better scroll down arrow */
.scroll-down span {
    font-size: 3rem;
    color: var(--color-accent);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

/* Scroll-down cue - positioned at bottom center */
.scroll-down {
    text-align: center;
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down span {
    font-size: 3rem;
    color: var(--color-accent);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    transform: rotate(90deg);  /* Rotates >> to point downward */
}


.research-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    background: linear-gradient(135deg, #F8F6F3 0%, #FFFFFF 100%);
    position: relative;  /* ADD THIS LINE */
}

.research-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.research-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    margin-bottom: 5rem;
    line-height: 1.1;
}

.research-intro {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: 1.5rem;
}

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

.research-area-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s var(--transition);
    text-align: center;
}

.research-area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.area-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.research-area-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.research-area-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.papers-list {
    display: grid;
    gap: 2.5rem;
}

.paper-item-no-status {
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.paper-item-no-status:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.paper-item-no-status .paper-content {
    padding: 2.5rem;
}

.paper-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.status-badge-inline {
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.status-badge-inline.working {
    background: rgba(217, 122, 74, 0.15);
    color: var(--color-accent);
}

.status-badge-inline.published {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.paper-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Paper title link */
.paper-title-link {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.paper-title-link:hover {
    color: var(--color-accent);  /* Changes to orange on hover */
    transform: translateX(4px);  /* Subtle shift to the right */
}

.paper-authors {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.paper-journal {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.paper-journal strong {
    color: var(--color-accent);
    font-weight: 600;
}

.paper-abstract {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: rgba(217, 122, 74, 0.1);
    color: var(--color-accent);
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
}

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

.paper-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.paper-link:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.paper-link.primary {
    background: var(--color-accent);
    color: white;
}

.paper-link.primary:hover {
    background: var(--color-accent-hover);
}

.presentations-list {
    display: grid;
    gap: 1rem;
}

.presentation-item {
    background: var(--color-bg-card);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.2rem;
    align-items: start;
    transition: all 0.3s var(--transition);
}

.presentation-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.presentation-year {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
}

.presentation-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.presentation-location {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.scroll-down {
    text-align: center;
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.scroll-down span {
    font-size: 4rem;
    color: var(--color-accent);
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .avatar {
        width: 240px;
        height: 240px;
        box-shadow: 
            0 0 30px rgba(217, 122, 74, 0.3),
            0 0 60px rgba(217, 122, 74, 0.15),
            0 15px 45px rgba(217, 122, 74, 0.2);
    }

    .avatar-wrapper::before {
        width: 22px;
        height: 22px;
    }

    .avatar-wrapper::after {
        width: 18px;
        height: 18px;
    }

    .avatar-dots span:nth-child(1) { width: 14px; height: 14px; }
    .avatar-dots span:nth-child(2) { width: 20px; height: 20px; }
    .avatar-dots span:nth-child(5) { width: 14px; height: 14px; }
    .avatar-dots span:nth-child(6) { width: 10px; height: 10px; }
    .avatar-dots span:nth-child(8) { width: 10px; height: 10px; }

    .avatar-name {
        font-size: 1.15rem;
    }

    .avatar-socials {
        gap: 0.875rem;
    }

    .avatar-social-link {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .hero-greeting {
        font-size: 2rem;
    }

    .education-item,
    .journey-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .presentation-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


@media (max-width: 768px) {
    .nav {
        transition: all 0.1s ease !important;
    }
    
    .nav.scrolled {
        transition: all 0.1s ease !important;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1.5rem;
        transition: all 0.1s ease !important;
    }
    
    .logo {
        transition: all 0.1s ease !important;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-primary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        transform: none !important;
        backdrop-filter: none !important;
    }

    .nav-item.active .dropdown {
        max-height: 500px;
    }

    .dropdown-item {
        padding: 0.75rem 2rem !important;
        font-size: 0.875rem;
        background: transparent !important;
    }

    .dropdown-item:hover {
        padding-left: 2.25rem !important;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 11rem 1.5rem 3rem;
    }
    
    .hero-greeting {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .avatar {
        width: 240px;
        height: 240px;
        box-shadow: 
            0 0 35px rgba(217, 122, 74, 0.35),
            0 0 70px rgba(217, 122, 74, 0.18),
            0 18px 50px rgba(217, 122, 74, 0.22);
    }

    .avatar-wrapper {
        margin-top: 0;
    }
    
    .avatar-name {
        font-size: 1.15rem;
    }
    
    .avatar-socials {
        gap: 0.75rem;
    }
    
    .avatar-social-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .interests-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .research-hero {
        padding: 8rem 1.5rem 4rem;
	position: relative; /* ADD THIS if missing */
    }
    
    .research-title {
        font-size: 2.5rem;
    }
	
	
    .scroll-down {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100%;
        text-align: center;
    }
    
    .scroll-down span {
        font-size: 3rem; /* Slightly smaller on mobile */
    }
    
    .research-intro {
        font-size: 1.125rem;
    }
    
    .research-areas-grid {
        grid-template-columns: 1fr;
    }
    
    .paper-item-no-status .paper-content {
        padding: 1.5rem;
    }
    
    .paper-title {
        font-size: 1.25rem;
    }
    
    .paper-header-inline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .status-badge-inline {
        align-self: flex-start;
    }
}


@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav.scrolled .logo {
        font-size: 0.9rem;
    }

    .hero-greeting {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .avatar {
        width: 220px;
        height: 220px;
        box-shadow: 
            0 0 30px rgba(217, 122, 74, 0.3),
            0 0 60px rgba(217, 122, 74, 0.15),
            0 15px 45px rgba(217, 122, 74, 0.2);
    }

    .avatar-wrapper::before {
        width: 18px;
        height: 18px;
    }

    .avatar-social-link {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .research-title {
        font-size: 2rem;
    }
    
    .paper-links {
        flex-direction: column;
    }
    
    .paper-link {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   TEACHING PAGE STYLES
   ======================================== */

/* Courses Taught Section */
.courses-taught {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: rgba(217, 122, 74, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(217, 122, 74, 0.15);
}

.courses-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-list {
    display: grid;
    gap: 0.75rem;
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.course-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.course-name {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.course-code {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 0.25rem 0.75rem;
    background: rgba(217, 122, 74, 0.1);
    border-radius: 6px;
}

/* Responsive for course list */
@media (max-width: 640px) {
    .course-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .course-code {
        align-self: flex-end;
    }
}


/* Teaching Hero Section */
.teaching-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    background: linear-gradient(135deg, #F8F6F3 0%, #FFFFFF 100%);
    position: relative;
}

.teaching-hero-content {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.teaching-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    margin-bottom: 5rem;
    line-height: 1.1;
}

.teaching-intro {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: 1.5rem;
}

/* Make teaching page content visible by default */
.teaching-hero .fade-in,
#current-teaching.fade-in,
#past-teaching.fade-in,
#teaching-philosophy.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Teaching List */
.teaching-list {
    display: grid;
    gap: 2.5rem;
}

.teaching-item {
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.teaching-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.teaching-content {
    padding: 2.5rem;
}

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

.teaching-course-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.teaching-period {
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(217, 122, 74, 0.15);
    color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.teaching-institution {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.teaching-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.teaching-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Teaching Philosophy */
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Teaching Page */
@media (max-width: 768px) {
    .teaching-hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .teaching-title {
        font-size: 2.5rem;
    }
    
    .teaching-intro {
        font-size: 1.125rem;
    }
    
    .teaching-content {
        padding: 1.5rem;
    }
    
    .teaching-course-title {
        font-size: 1.25rem;
    }
    
    .teaching-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .teaching-title {
        font-size: 2rem;
    }
}


/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Hero Section */
.contact-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    background: linear-gradient(135deg, #F8F6F3 0%, #FFFFFF 100%);
    position: relative;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: 1.5rem;
}

/* Make contact page content visible by default */
.contact-hero .fade-in,
#contact-info.fade-in,
#contact-form-section.fade-in,
#office-hours.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Contact Cards Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    transition: all 0.3s var(--transition);
}

.contact-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.contact-card-header {
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.contact-card-content {
    color: var(--color-text-secondary);
}

.contact-link {
    display: inline-block;
    font-size: 1.0625rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: 0.5rem;
}

.contact-address {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Social Links in Contact Card */
.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-social-btn:hover {
    background: rgba(217, 122, 74, 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateX(4px);
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(217, 122, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(217, 122, 74, 0.1);
}

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

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    justify-content: center;
}

.form-note {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(217, 122, 74, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(217, 122, 74, 0.2);
}

.form-note p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.form-note strong {
    color: var(--color-accent);
}

/* Office Hours */
.office-hours-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.office-hours-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.office-hours-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.office-hours-time {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.office-hours-note {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-hero {
        padding: 8rem 1.5rem 4rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-intro {
        font-size: 1.125rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .office-hours-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}