/* Neural Network Animated Background and Original Blue Theme Styles */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #52bad5;
    --primary-light: #6bc7e0;
    --primary-dark: #2C9AB7;
    --secondary-color: #B3B3B3;
    --accent-color: #01B2D1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-tertiary: #f1f5f9;

    --text-primary: #343434;
    --text-secondary: #717070;
    --text-muted: #A5A5A5;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    overflow-x: hidden;
}

/* Neural Network Animated Background */
#neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neuron {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.connection {
    position: absolute;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    height: 1px;
    transform-origin: left center;
    animation: flow 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes flow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
#header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    text-align: center;
    padding: 1.5rem 0 1rem;
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--primary-dark);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-family: "Source Sans Pro", sans-serif;
}

.subtitle {
    font-size: 1.125rem;
    color: #FFFFFF;
    font-weight: 500;
}

/* Navigation Styles */
#navbar {
    padding: 1rem 0;
    background-color: var(--secondary-color);
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger {
    width: 28px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Button Component */
.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-list li {
    list-style: none;
    float: left;
    margin: 0;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: normal;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-align: center;
    width: 14.28%;
    transition: all 0.3s linear;
}

.nav-button {
    display: block;
    width: 100%;
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    color: #FFFFFF;
    background: transparent;
    border: none;
    transition: all 0.3s linear;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-button:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-button.active {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    #navbar {
        padding: 1rem;
        min-height: 60px;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-list.active {
        max-height: 500px;
    }

    .nav-list li {
        width: 100%;
        float: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-button {
        padding: 1rem 1.5rem;
        text-align: left;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 4rem 0;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.02);
}

/* Button Components */
.big-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    min-width: 160px;
}

.big-button.primary {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: var(--shadow-md);
}

.big-button.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.big-button.secondary {
    color: var(--primary-color);
    background: var(--background-primary);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.big-button.secondary:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-color);
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.small-button:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.emphasis-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.emphasis-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.emphasis-button:hover::before {
    left: 100%;
}

.emphasis-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Research Highlights */
.research-highlights {
    margin-top: 3rem;
}

.highlights-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.research-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.research-card:hover .research-thumbnail {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.research-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.research-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Footer Styles */
#footer {
    background: var(--background-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        float: none;
        margin-top: 5px;
    }

    .nav-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    #navbar {
        padding: 0.5rem 0;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .big-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }
}

/* Page-specific styles */

/* Research Page */
.research-overview {
    margin-bottom: 3rem;
    text-align: center;
}

.research-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.research-areas {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.research-area {
    background: var(--background-secondary);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.research-area h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.research-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.research-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
}

.research-text h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.research-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.research-text li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.research-impact {
    margin-top: 4rem;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.impact-item {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.impact-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.call-to-action {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--background-tertiary);
    border-radius: var(--border-radius-xl);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Publications Page */
.publications-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.publications-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.publications-section {
    margin-bottom: 3rem;
}

.pub-category {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.publication-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.publication-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pub-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.pub-venue {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pub-venue strong {
    color: var(--text-primary);
}

.impact-factor {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.pub-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pub-keywords, .pub-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.keyword, .feature {
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.pub-status {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.pub-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pages {
    font-style: italic;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.research-metrics {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: var(--background-tertiary);
    border-radius: var(--border-radius-xl);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.academic-profiles {
    text-align: center;
    margin-top: 4rem;
}

.profile-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Resume Page */
.resume-header {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.professional-summary {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.qualification-item {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.qualification-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.education-timeline, .experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item, .experience-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.edu-years, .exp-years {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.875rem;
    text-align: center;
}

.edu-content h4, .exp-content h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.institution, .company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.thesis {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.role-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.role-details {
    margin-top: 0.75rem;
    padding-left: 1rem;
}

.role-details li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.award-item, .service-item {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.award-item h4, .service-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.award-year, .service-years {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.award-institution {
    color: var(--text-secondary);
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.skill-category h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.teaching-subjects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.subject-item {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.subject-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.subject-item ul {
    padding-left: 1rem;
}

.subject-item li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.cv-download {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--background-tertiary);
    border-radius: var(--border-radius-xl);
}

/* Contact Page */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-method h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-details {
    margin: 1.5rem 0;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-details strong {
    color: var(--text-primary);
}

.contact-details ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.contact-details li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-form-container {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.contact-form {
    background: var(--background-primary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.professional-links {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.profile-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.profile-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.profile-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.office-hours {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    margin-bottom: 3rem;
}

.availability-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.availability-item {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.availability-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-note {
    background: var(--background-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border-left: 4px solid var(--warning-color);
}

/* Teaching Page */
.teaching-philosophy {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.philosophy-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.teaching-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.teaching-awards {
    text-align: center;
    margin-bottom: 4rem;
}

.award-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.award-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.award-details h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.award-year {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.award-institution {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.award-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.current-courses {
    margin-bottom: 4rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.course-level {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.course-description h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.course-description ul {
    padding-left: 1rem;
}

.course-description li {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.past-experience {
    margin-bottom: 4rem;
}

.teaching-experience-item {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.exp-institution {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.exp-period {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.exp-details h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.exp-duration {
    color: var(--success-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.course-highlights h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.course-highlights ul {
    padding-left: 1rem;
}

.course-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lab-courses {
    margin-top: 1rem;
}

.lab-courses p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.lab-courses strong {
    color: var(--text-primary);
}

.teaching-approach {
    margin-bottom: 4rem;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.method-item {
    background: var(--background-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.method-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.method-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.extracurricular {
    margin-bottom: 4rem;
}

.service-activities {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.activity-item {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--accent-color);
}

.activity-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.activity-years {
    color: var(--success-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.activity-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.teaching-tools {
    margin-bottom: 4rem;
}

.tools-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: var(--background-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.student-testimonials {
    background: var(--background-tertiary);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .research-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .research-image {
        height: 200px;
        width: 100%;
    }

    .publication-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pub-year {
        text-align: left;
    }

    .education-item, .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .edu-years, .exp-years {
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        position: static;
    }

    .teaching-philosophy {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .award-highlight {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons, .profile-links, .support-cta {
        flex-direction: column;
        align-items: center;
    }

    .big-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation classes for JavaScript */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}