* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7c;
    --secondary-color: #2c5f8d;
    --accent-color: #0066a1;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f7fa;
    --border-color: #e0e0e0;
    --hover-color: #004d7a;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: black;
    border-radius: 50%;
    padding: 0.2rem;
    object-fit: contain;
}

.header-info {
    flex: 1;
}

.name {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.title {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0.3rem;
}

.institution {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    min-width: 200px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.content-container {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.quick-links {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.quick-links h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.quick-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-links-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-links-list li a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: white;
}

.quick-links-list li a i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.quick-links-list li a:hover i {
    color: white;
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    padding: 0.4rem;
    object-fit: contain;
}
.main-img {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 50%;
    padding: 0.4rem;
    object-fit: contain;
}
.footer-info {
    flex: 1;
}

.footer-institution {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-email {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-email a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-email a:hover {
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .quick-links {
        max-width: 500px;
        margin: 0 auto;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.3rem;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        flex: 1;
        min-width: auto;
    }

    .logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .name {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .content-container {
        padding: 2rem 1.5rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .title,
    .institution {
        font-size: 0.9rem;
    }
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content .period {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-content p {
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.project-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    font-weight: 500;
}

.cv-section {
    margin-top: 2rem;
}

.cv-block {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.cv-block h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cv-block h3 i {
    color: var(--accent-color);
}

.cv-block ul {
    list-style: none;
    padding-left: 0;
}

.cv-block ul li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cv-block ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cv-block ul li strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cv-block ul li p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.cv-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary i {
    margin-right: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

.publications-list {
    margin-top: 2rem;
}

.publication-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
}

.publication-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.publication-item ul {
    list-style: none;
    padding-left: 0;
}

.publication-item ul li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.publication-item ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.publication-item ul li strong {
    color: var(--text-color);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.publication-item ul li p {
    color: var(--text-light);
    font-style: italic;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.discipline-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.discipline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.discipline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.discipline-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.discipline-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.discipline-card p {
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.discipline-card .level {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .projects-grid,
    .disciplines-grid {
        grid-template-columns: 1fr;
    }
}
