/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3d5c;
    --secondary-color: #0d2b4a;
    --accent-color: #2c4a6e;
    --text-dark: #1a3d5c;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #e8f4f8;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Contact Bar */
.top-contact-bar {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    width: 100%;
}

.contact-info-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
}

.contact-item-top svg {
    flex-shrink: 0;
}

.contact-item-top a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item-top a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background-color: #e8f4f8;
    box-shadow: var(--shadow);
    position: fixed;
    top: 40px;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.nav-brand-link:hover {
    opacity: 0.8;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.university-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.3;
}

.university-name-uzbek {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.university-name-uzbek div {
    margin: 0;
    padding: 0;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 5px;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

.social-icon {
    color: var(--text-dark);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-color);
}

.scholar-icon svg {
    width: 20px;
    height: 20px;
}

.scholar-icon:hover svg path {
    fill: var(--primary-color);
}

.scholar-icon:hover svg circle {
    fill: var(--primary-color);
    fill-opacity: 0.3;
}

.ssrn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssrn-icon svg {
    width: 40px;
    height: 20px;
}

.ssrn-icon:hover svg text {
    fill: var(--primary-color);
}

.btn-about {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    border-radius: 4px;
    font-weight: 500;
    margin-left: 20px;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.btn-about:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* SDG Panel */
.sdg-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.sdg-panel.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sdg-panel-content {
    background-color: var(--bg-white);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sdg-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    z-index: 10;
}

.sdg-panel-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.sdg-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.sdg-close:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    transform: rotate(90deg);
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 30px;
}

.sdg-item {
    background-color: var(--bg-light);
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.sdg-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.sdg-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.sdg-name {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
}

.sdg-toggle {
    cursor: pointer;
}

@media (max-width: 968px) {
    .sdg-panel-content {
        max-width: 95%;
        margin: 10px;
    }

    .sdg-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .sdg-panel-header {
        padding: 20px;
    }

    .sdg-panel-header h3 {
        font-size: 1.4rem;
    }

    .sdg-number {
        font-size: 1.6rem;
    }

    .sdg-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 568px) {
    .sdg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SDG Page Styles */
.sdg-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.sdg-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    margin: 50px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sdg-posts {
    max-width: 900px;
    margin: 60px auto 0;
}

.sdg-post {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.sdg-post:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.sdg-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.sdg-post-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sdg-post-date {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

.sdg-post-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.sdg-post-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.sdg-post-content p {
    margin-bottom: 15px;
}

.sdg-post-content p:last-child {
    margin-bottom: 0;
}

.sdg-post-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.sdg-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sdg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sdg-post-image {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sdg-gallery-item:hover .sdg-post-image {
    transform: scale(1.05);
}

@media (max-width: 968px) {
    .sdg-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }

    .sdg-post {
        padding: 30px;
    }

    .sdg-post-title {
        font-size: 1.5rem;
    }

    .sdg-post-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 568px) {
    .sdg-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sdg-post {
        padding: 20px;
    }

    .sdg-post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sdg-post-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Hero Section */
.hero {
    margin-top: 120px;
    padding: 80px 0;
    background-color: #e8f4f8;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
}

.profile-photo {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s ease;
    clip-path: inset(0 0 15% 0);
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-text .title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-text .institution {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--text-dark);
}

/* About Section */
.about {
    background-color: #e8f4f8;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Experience Section */
.experience {
    background-color: #e8f4f8;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-org {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Research Section */
.research {
    background-color: #e8f4f8;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.research-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.research-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.research-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.research-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.research-note {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 5px;
}

.research-note p {
    color: var(--text-light);
    font-style: italic;
}

/* CV Section */
.cv-section {
    background-color: #e8f4f8;
}

.cv-content {
    display: flex;
    justify-content: center;
    align-items: start;
    max-width: 600px;
    margin: 0 auto;
}

.cv-preview {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.cv-preview h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cv-preview p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.cv-highlights {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cv-highlights h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.cv-highlights ul {
    list-style: none;
}

.cv-highlights li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
}

.cv-highlights li:last-child {
    border-bottom: none;
}

.cv-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: #e8f4f8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-small {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .top-contact-bar {
        padding: 8px 0;
    }

    .contact-info-top {
        gap: 20px;
        font-size: 0.85rem;
    }

    .navbar {
        top: 36px;
    }

    .hero {
        margin-top: 116px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #e8f4f8;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .nav-social,
    .btn-about {
        display: none;
    }

    .university-name-uzbek {
        font-size: 0.7rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .profile-photo {
        width: 240px;
        height: 240px;
    }

    .cv-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 568px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Research Page Layout */
.research-page {
    background-color: #e8f4f8;
}

.research-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.research-column,
.papers-column {
    padding: 0 20px;
}

.research-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.research-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.papers-list {
    list-style: decimal;
    padding-left: 25px;
    margin: 0;
}

.papers-list li {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 10px;
}

.papers-list li strong {
    font-weight: 600;
    color: var(--text-dark);
}

.paper-link {
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-color: var(--text-dark);
    transition: color 0.3s ease;
}

.paper-link:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

.patent-item {
    list-style: none;
    margin-left: -25px;
    padding-left: 0;
}

.patent-item strong {
    font-weight: 600;
}

/* Responsive Design for Research Page */
@media (max-width: 968px) {
    .research-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .research-page-title {
        font-size: 2rem;
    }
}
