/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --emerald: #00b894;
    --emerald-glow: #00cca3;
    --emerald-dim: #007a63;
    --bg-dark: #080c0c;
    --bg-card: #0d1717;
    --bg-card2: #111e1e;
    --text-white: #f0fafa;
    --text-muted: #8ab8b3;
    --border: rgba(0, 184, 148, 0.15);
    --border-bright: rgba(0, 184, 148, 0.4);
    --shadow-emerald: 0 0 30px rgba(0, 184, 148, 0.15);

    /* legacy aliases used by inner pages */
    --primary-blue: #00b894;
    --secondary-blue: #00cca3;
    --light-blue: #0d1717;
    --accent-blue: #007a63;
    --text-dark: #f0fafa;
    --text-medium: #b2d8d4;
    --text-light: #8ab8b3;
    --bg-light: #0d1717;
    --bg-white: #111e1e;
    --border-color: rgba(0, 184, 148, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* ===================== ANIMATED BACKGROUND ===================== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,184,148,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,184,148,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(0,184,148,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0,184,148,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,184,148,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===================== HEADER ===================== */
header {
    background-color: rgba(8, 12, 12, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3.5rem;
    height: 64px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--emerald);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 2.5rem;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 1.4rem;
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.4rem;
    right: 1.4rem;
    height: 2px;
    background: var(--emerald);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-item > a:hover {
    color: var(--text-white);
}

.nav-item:hover > a::after {
    transform: scaleX(1);
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    min-width: 220px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.8rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-emerald);
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li { display: block; margin: 0; }

.submenu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu a:hover {
    color: var(--emerald);
    background-color: rgba(0,184,148,0.06);
    padding-left: 1.8rem;
}

/* ===================== LANGUAGE SWITCHER ===================== */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.language-button:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

.language-button i {
    font-size: 0.65rem;
    transition: transform 0.25s;
}

.language-switcher:hover .language-button i {
    transform: rotate(180deg);
}

.language-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    min-width: 130px;
    z-index: 100;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 20px rgba(0,184,148,0.08);
}

.language-switcher:hover .language-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.language-option:last-child { border-bottom: none; }

.language-option:hover {
    background-color: rgba(0,184,148,0.06);
    color: var(--text-white);
    padding-left: 1.4rem;
}

.language-option.active {
    color: var(--emerald);
}

.language-option::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 15px;
    margin-right: 0.8rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.language-option[data-lang="en"]::before {
    background-image: url('https://cdn.jsdelivr.net/npm/flag-icon-css@3.5.0/flags/4x3/gb.svg');
}
.language-option[data-lang="ru"]::before {
    background-image: url('https://cdn.jsdelivr.net/npm/flag-icon-css@3.5.0/flags/4x3/ru.svg');
}
.language-option[data-lang="uz"]::before {
    background-image: url('https://cdn.jsdelivr.net/npm/flag-icon-css@3.5.0/flags/4x3/uz.svg');
}

/* ===================== SOCIAL SIDEBAR ===================== */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    background: rgba(8,12,12,0.7);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px 0;
}

.social-icons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    margin: 0.7rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 50%;
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,184,148,0);
    transition: background 0.3s;
}

.social-icon:hover {
    color: var(--emerald);
    transform: scale(1.15);
}

.social-icon:hover::before {
    background: rgba(0,184,148,0.12);
}

.social-icon i { font-size: 1.1rem; }

/* Desktop shift */
@media (min-width: 769px) {
    header { left: 60px; width: calc(100% - 60px); }
    main { margin-left: 60px; }
    .social-sidebar { display: flex; }
    .menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .social-sidebar { display: none !important; }
    header { left: 0; width: 100%; }
    main { margin-left: 0; }
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 4rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.profile-image-container {
    flex: 0 0 340px;
    position: relative;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--emerald), transparent, var(--emerald-dim));
    z-index: -1;
    opacity: 0.6;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 4px;
    background: radial-gradient(ellipse, rgba(0,184,148,0.12) 0%, transparent 70%);
    z-index: -2;
    animation: heroPulse 3s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1;   transform: scale(1.05); }
}

.profile-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(0.95) contrast(1.05);
}

.hero-content { flex: 1; }

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--emerald);
    text-shadow: 0 0 30px rgba(0,184,148,0.5);
}

.hero h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--emerald);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.7;
}

.hero h2 span { display: block; margin-bottom: 0.3rem; }

.hero p {
    font-size: 1rem;
    font-weight: 300;
    max-width: 560px;
    margin-bottom: 3rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

/* ===================== BUTTONS ===================== */
.btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.9rem 2rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dim));
    color: #080c0c;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,184,148,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-glow), var(--emerald));
    box-shadow: 0 6px 30px rgba(0,184,148,0.5);
    transform: translateY(-2px);
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    box-shadow: 0 0 10px var(--emerald);
}

/* ===================== CONTENT SECTIONS ===================== */
.content-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), transparent);
    box-shadow: 0 0 8px var(--emerald);
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-bright);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--shadow-emerald);
}

.card:hover::before { opacity: 1; }

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: filter 0.35s;
}

.card:hover .card-image {
    filter: brightness(1) saturate(1.1);
}

.card-content { padding: 1.5rem; }

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.card-date {
    font-size: 0.82rem;
    color: var(--emerald);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.card-link {
    font-size: 0.88rem;
    color: var(--emerald);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.card-link:hover {
    color: var(--emerald-glow);
    text-shadow: 0 0 8px rgba(0,184,148,0.4);
}

.card-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover::after { transform: translateX(4px); }

/* Detail cards */
.detail-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--emerald);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(0,184,148,0.06), transparent);
    pointer-events: none;
}

.detail-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.detail-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================== TIMELINE ===================== */
.timeline { margin-top: 2rem; }

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: -2rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--emerald), transparent);
    opacity: 0.3;
}

.timeline-item:last-child::before { display: none; }

.timeline-year {
    flex: 0 0 100px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--emerald);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 12px rgba(0,184,148,0.3);
}

.timeline-content {
    flex: 1;
    padding-left: 1.5rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.timeline-location {
    font-size: 0.88rem;
    color: var(--emerald-dim);
    font-style: italic;
}

/* ===================== FOOTER ===================== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content { max-width: 1000px; margin: 0 auto; }

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--emerald);
}

.footer-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--emerald); }

.copyright {
    font-size: 0.82rem;
    color: rgba(138, 184, 179, 0.5);
}

/* ===================== NO SIDEBAR PAGES ===================== */
body.no-sidebar main { margin-left: 0; }

/* ===================== PROFILE LAYOUT ===================== */
.profile-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.profile-text { flex: 1; }

.profile-image-wrapper {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 100%;
    max-width: 280px;
    height: 340px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
    border: 1px solid var(--border-bright);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), var(--shadow-emerald);
}

/* ===================== AWARDS ===================== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.award-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.award-icon {
    font-size: 2rem;
    color: var(--emerald);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(0,184,148,0.4));
}

.award-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.award-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.content-section.alt-bg { background-color: rgba(0,0,0,0.15); }

/* ===================== CONTACT PAGE ===================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-info-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    height: fit-content;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0,184,148,0.1);
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    font-size: 1.1rem;
    margin-right: 1.3rem;
}

.info-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

.info-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-content a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.info-content a:hover {
    color: var(--emerald-glow);
    text-shadow: 0 0 8px rgba(0,184,148,0.3);
}

.contact-form-section {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1), 0 0 15px rgba(0,184,148,0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dim));
    color: #080c0c;
    border: none;
    padding: 0.95rem 2rem;
    font-size: 0.95rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0,184,148,0.25);
}

.btn-submit:hover {
    box-shadow: 0 6px 30px rgba(0,184,148,0.45);
    transform: translateY(-2px);
}

.social-links-contact {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,184,148,0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

.social-btn:hover {
    background: rgba(0,184,148,0.15);
    border-color: var(--emerald);
    color: var(--emerald);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,184,148,0.2);
}

/* ===================== VIDEO PAGE ===================== */
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 2;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-bright);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), var(--shadow-emerald);
}

.video-card:hover::before { opacity: 1; }

.video-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85) saturate(0.85);
}

.video-card:hover .video-wrapper img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,184,148,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #080c0c;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(0,184,148,0.5);
    z-index: 10;
}

.video-card:hover .play-btn {
    background: var(--emerald);
    box-shadow: 0 0 40px rgba(0,184,148,0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(8,12,12,0.85);
    color: var(--emerald);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    z-index: 10;
}

.featured-video {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    cursor: pointer;
    box-shadow: var(--shadow-emerald);
    transition: all 0.35s ease;
}

.featured-video:hover {
    border-color: var(--emerald);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,184,148,0.2);
}

@media (min-width: 768px) {
    .featured-video {
        flex-direction: row;
        height: 400px;
    }
    .featured-video .featured-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .featured-video .featured-img-wrapper { flex: 1.5; }
}

.featured-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-img-wrapper { height: 100%; }
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.9);
}

.featured-content { padding: 2.5rem; }

.featured-tag {
    color: var(--emerald);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

/* video overlay */
.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,184,148,0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.video-card:hover .video-overlay,
.featured-video:hover .video-overlay { opacity: 1; }

/* ===================== CONFERENCES ===================== */
.conf-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    margin-bottom: 2rem;
}

.conf-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.conf-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.conf-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8) saturate(0.8);
}

.conf-card:hover .conf-img-wrapper img { transform: scale(1.05); filter: brightness(0.9) saturate(1); }

.conf-date-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--emerald);
    color: #080c0c;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.conf-status-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(0,184,148,0.15);
    color: var(--emerald);
    border: 1px solid var(--border-bright);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conf-card-content { padding: 1.5rem; }

.conf-location {
    display: flex;
    align-items: center;
    color: var(--emerald);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.conf-location i { margin-right: 0.5rem; }

.conf-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.4;
}

.conf-card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.conf-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.conf-role {
    font-weight: 600;
    color: var(--emerald);
    font-size: 0.88rem;
}

.past-conf-section { padding: 4rem 0; }

.past-timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.past-timeline-item:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.past-timeline-img { flex: 0 0 150px; height: 150px; }

.past-timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.7);
}

.past-timeline-content { padding: 1.5rem; flex: 1; }

.past-year {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--emerald);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .past-timeline-item { flex-direction: column; }
    .past-timeline-img { flex: none; height: 180px; width: 100%; }
}

/* ===================== PUBLICATIONS ===================== */
.book-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.book-img-wrapper { height: 250px; overflow: hidden; position: relative; }

.book-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.8);
}

.book-tag {
    position: absolute;
    bottom: 10px; left: 10px;
    background: var(--emerald);
    color: #080c0c;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.book-content { padding: 1.5rem; }

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.book-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.book-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.book-actions { display: flex; gap: 1rem; }

.article-list-item {
    background: var(--bg-card);
    border-left: 3px solid var(--emerald);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--border);
    border-left: 3px solid var(--emerald);
    transition: all 0.25s;
}

.article-list-item:hover {
    transform: translateX(5px);
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.article-year {
    font-family: 'Playfair Display', serif;
    color: var(--emerald);
    font-weight: 700;
    font-size: 1rem;
}

.article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.article-journal {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: block;
}

.citation-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0,184,148,0.1);
    color: var(--emerald);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 0.5rem;
    border: 1px solid var(--border);
}

.citation-badge i { margin-right: 0.3rem; }

.paper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.paper-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.paper-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-emerald);
}

.paper-type {
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--emerald);
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.paper-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .profile-image-container { flex: 0 0 auto; width: 100%; max-width: 300px; margin: 0 auto 2rem; }
    .hero p { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero h1 { font-size: 3rem; }
    .nav-links { margin-right: 1rem; }
    .nav-item { margin-left: 1.5rem; }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: nowrap;
        position: relative;
        padding: 0 1.5rem;
        height: 60px;
        align-items: center;
    }

    .logo { order: 1; flex: 1; z-index: 10; }

    .menu-toggle {
        display: block;
        order: 3;
        background: none;
        border: 1px solid var(--border);
        font-size: 1rem;
        color: var(--text-muted);
        cursor: pointer;
        padding: 0.45rem 0.7rem;
        margin-left: 1rem;
        z-index: 11;
        transition: color 0.2s, border-color 0.2s;
    }

    .menu-toggle:hover { color: var(--emerald); border-color: var(--emerald); }

    .nav-container {
        order: 2;
        display: flex;
        align-items: center;
        position: static;
    }

    .language-switcher { margin-left: 0; }
    .language-button { padding: 0.35rem 0.7rem; font-size: 0.68rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8,12,12,0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        border-top: 1px solid var(--border);
        z-index: 999;
        padding: 0;
        margin: 0;
        box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    }

    .nav-links.active { display: flex; }

    .nav-item { margin: 0; width: 100%; }

    .nav-item > a {
        display: flex;
        align-items: center;
        height: auto;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        color: var(--text-muted);
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .nav-item > a::after { display: none; }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding-left: 1.5rem;
        background: transparent;
        display: none;
    }

    .nav-item:hover .submenu { display: block; }

    .language-list { right: 0; left: auto; min-width: 130px; }

    .page-header { padding: 6rem 1.5rem 3rem; }

    .hero { padding: 6rem 1.5rem 3rem; min-height: auto; }

    body.menu-open { overflow: hidden; height: 100vh; }

    .hero h1 { font-size: 2.4rem; }
    .hero h2 { font-size: 1rem; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

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

    .profile-image-container {
        flex: none !important;
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto;
    }

    .profile-image {
        height: 290px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: top center !important;
    }

    .hero-content { width: 100%; }
    .hero p { max-width: 100%; }
    .hero-buttons { justify-content: center; }

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

    .footer-links { flex-direction: column; gap: 1rem; }
    .social-sidebar { display: none !important; }

    .profile-layout { flex-direction: column; gap: 2rem; }
    .profile-image-wrapper { flex: none; width: 100%; max-width: 240px; margin: 0 auto; }
}

@media (max-width: 576px) {
    .nav-links { flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2rem; }
    .timeline-item { flex-direction: column; }
    .timeline-year { margin-bottom: 0.5rem; }
    .timeline-item::before { left: 0; }
}
