/* 
   Theme: Modern Professional
   Colors: Dark Slate Blue (#1E2A38), Gold (#D4AF37), Teal (#20B2AA), Light Text (#F0F2F5)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --bg-primary: #1E2A38;
    --bg-secondary: #2C3E50;
    --text-primary: #F0F2F5;
    --text-secondary: #B0B8C4;
    --accent-gold: #D4AF37;
    --accent-teal: #20B2AA;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: rgba(30, 42, 56, 0.95);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-teal);
    transition: width var(--transition-speed);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--accent-teal);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

h1 {
    font-size: 3rem;
    color: var(--accent-gold);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    display: inline-block;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Hero Section (Home) */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 0.5rem;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--accent-teal);
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--accent-gold);
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

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

.hero-image img {
    width: 470px;
    height: 350px;
    object-fit: cover;
    border-radius: 50px;
    border: 5px solid var(--accent-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed);
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Cards (Education, Research, Teaching) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-teal);
}

.card h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.card .date {
    font-size: 0.9rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

/* Publication List */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 0;
}

.publication-item {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    transition: transform var(--transition-speed);
}

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

.publication-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.publication-item .date {
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.publication-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-item a {
    color: var(--accent-gold);
    text-decoration: none;
}

.publication-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background-color: #1a202c;
    color: white;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.social-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
        color: var(--text-primary);
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }
}