:root {
    --primary-color: #2d3436;
    --accent-color: #0984e3;
    --text-color: #2d3436;
    --bg-color: #f5f6fa;
    --section-bg: #ffffff;
    --transition: all 0.3s ease;
}

::selection {
    background-color: rgba(238, 125, 35, 0.6);
    color: #141414;
}


::-moz-selection {
    background-color: rgba(238, 127, 35, 0.5);
    color: #141414;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    padding-top: 80px;

}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
        circle at 2px 2px,
        rgba(0, 0, 0, 0.2) 1px,
        transparent 0
    );
    background-size: 25px 25px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;

}

.profile-container {
    margin-bottom: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.section {
    padding: 5rem 2rem;
    background: var(--section-bg);
}

.section:nth-child(even) {
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.teaching-item {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 5px;
}

.course {
    font-weight: bold;
    color: var(--primary-color);
}

.period {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.publication-item {
    margin-bottom: 1.5rem;
}

.publication-details {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

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

.social-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.skills-section {
    text-align: center;
    margin-top: 2rem;
}

.skills-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skills-section p {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active a {
        margin: 0.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .content-box {
        padding: 1rem;
    }
    
    .social-links {
        flex-direction: column;
    }
}