:root {
    /* Light theme */
    --bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --link-color: #BF5700;  /* UT Burnt Orange */
    --link-hover: #8B3F00;  /* Darker shade of Burnt Orange */
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #f7fafc;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e2e8f0;
    --heading-color: #ffffff;
    --link-color: #FF7A1A;  /* Lighter Burnt Orange for dark mode */
    --link-hover: #BF5700;  /* UT Burnt Orange */
    --border-color: #333333;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #2d2d2d;
}

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

html {
    scroll-padding-top: 5rem; /* Add padding for sticky nav */
    scroll-behavior: smooth; /* For smooth scrolling */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1000px;  /* Increased from 800px */
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;  /* Ensure full width */
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    width: 100%;  /* Ensure full width */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

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

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

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

/* Profile Section */
.profile {
    text-align: center;
    margin: 3rem 0;
}

.profile-image {
    width: 220px;  /* Slightly larger */
    height: 280px;  /* Taller for portrait aspect ratio */
    border-radius: 12px;  /* Subtle rounded corners */
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);  /* Subtle shadow */
    transition: transform 0.2s ease-in-out;  /* Smooth hover effect */
}

.profile-image:hover {
    transform: scale(1.02);  /* Slight zoom on hover */
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--link-color);
}

.profile-email {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.profile-email a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.profile-email a:hover {
    color: var(--link-color);
}

.profile-email i {
    margin-right: 0.5rem;
}

/* Sections */
.section {
    margin: 2rem 0;  /* Reduced from 4rem */
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

/* Publications */
.publication-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s;
}

.publication-title a:hover {
    color: var(--link-color);
}

.publication-authors {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.publication-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-venue {
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}

.publication-links {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.publication-links .button {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    opacity: 0.9;
    background: var(--link-color);
}

.publication-links .button:hover {
    opacity: 1;
    background: var(--link-hover);
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: var(--link-color);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.button:hover {
    background: var(--link-hover);
    opacity: 1;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--link-color);
}

.timeline-date {
    font-weight: 500;
    color: var(--link-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* About Section Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: 2rem;
    align-items: center;  /* Keep vertical centering */
}

.profile-container {
    text-align: center;
    position: sticky;
    top: 6rem;
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--link-color);
}

.about-content {
    padding-top: 1rem;
}

.about-content a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.about-content a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.cv-link {
    margin-top: 2rem;
    text-align: left;
}

.cv-link .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--link-color);
    border: 1px solid var(--link-color);
}

.cv-link .button:hover {
    background: var(--link-color);
    color: white;
    opacity: 1;
}

.cv-link .button i {
    font-size: 1.1rem;
}

/* Navigation Dropdown */
.nav-dropdown {
    display: none;
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--nav-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--card-bg);
    color: var(--link-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;  /* Reduced padding on mobile */
    }

    .nav-links {
        gap: 0.75rem;  /* Reduced gap between nav items */
        font-size: 0.85rem;  /* Slightly smaller font */
        flex-wrap: nowrap;  /* Prevent wrapping */
    }

    .nav-content {
        padding: 0.75rem 0;  /* Slightly reduced padding */
    }

    #theme-toggle {
        padding: 0.25rem;  /* Reduced padding */
    }

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

    .profile-container {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 180px;
        height: 230px;
    }

    .nav-dropdown {
        display: block;
    }
    
    .nav-links {
        gap: 1rem;
    }

    .nav-links a.moved-to-dropdown {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }
} 