@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --bg-ink: #0d1117;
    --bg-slate: #161b25;
    --bg-card: #1d2330;
    --line: rgba(255, 255, 255, 0.12);
    --text-main: #f0f4ff;
    --text-soft: #d4deef;
    --accent: #ff6b35;
    --accent-2: #ffd166;
    --success: #2ec4b6;
}

/* Override Bootstrap text-secondary which is too dark on dark backgrounds */
.text-secondary {
    color: var(--text-soft) !important;
}

p, li, dd, dt, small, span {
    color: inherit;
}

body p {
    color: var(--text-soft);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 20% 10%, #252840 0%, #141824 35%, #0f1319 70%);
    min-height: 100vh;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.3px;
}

.main-nav {
    backdrop-filter: blur(16px);
    background: rgba(11, 15, 22, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1050;
}

/* Nav links — always white/soft on dark background */
.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    padding-block: 0.45rem;
    border-radius: 8px;
    padding-inline: 0.55rem;
    transition: color 0.18s ease, background 0.18s ease;
    position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

/* Active section highlight — underline accent */
.main-nav .nav-link.nav-active {
    color: var(--accent-2);
}

.main-nav .nav-link.nav-active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-2);
}

/* Hamburger — mobile only, Bootstrap controls show/hide */
@media (max-width: 991.98px) {
    .main-nav .navbar-toggler {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.18);
        flex-shrink: 0;
        margin-left: auto;
    }

    .main-nav .navbar-toggler-icon {
        width: 22px;
        height: 22px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .main-nav .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.6);
        outline: none;
    }

    .main-nav .navbar-brand {
        font-size: 1rem;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.main-nav .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.6);
    outline: none;
}

.language-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    justify-content: space-between;
    background: #0f1520;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
}

.language-dropdown-toggle:hover,
.language-dropdown-toggle:focus,
.language-dropdown-toggle:active {
    background: #141b28;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.language-dropdown-toggle img,
.language-dropdown-item img {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.language-dropdown-menu {
    min-width: 190px;
    background: #131a26;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 12px;
}

.language-dropdown-item:hover,
.language-dropdown-item:focus,
.language-dropdown-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-admin-btn {
    border-radius: 999px;
    padding-inline: 14px;
}

.hero {
    position: relative;
    padding: 9rem 0 4.5rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 10% -20% auto auto;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4), rgba(255, 107, 53, 0));
    pointer-events: none;
}

.hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 209, 102, 0.5);
    color: var(--accent-2);
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 7px 14px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 780px;
}

.btn-brand {
    background: linear-gradient(120deg, var(--accent), #ff8a5c);
    color: #0d1117;
    border: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 20px;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
}

.metric-grid {
    margin-top: 2rem;
}

.metric-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.2rem;
}

.metric-number {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    color: var(--success);
    margin: 0;
}

.section-card {
    background: rgba(32, 40, 58, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 2rem;
}

.profile-image,
.about-image {
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.achievement-list {
    display: grid;
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.achievement-list li {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 14px 16px;
    border-radius: 12px;
}

.achievement-list i {
    color: var(--accent);
    margin-right: 8px;
}

.video-card {
    height: 100%;
    background: #1c2538;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-body {
    padding: 1rem;
}

.video-title {
    font-size: 1rem;
    min-height: 48px;
}

.video-desc {
    color: var(--text-soft);
    min-height: 54px;
    font-size: 0.93rem;
}

.video-link {
    text-decoration: none;
    color: var(--accent-2);
    font-weight: 600;
}

.photo-card {
    background: #1c2538;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.photo-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.photo-body {
    padding: 0.85rem;
}

.cv-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
}

.contact-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
}

.contact-card-clickable {
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contact-card-clickable:hover,
.contact-card-clickable:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.24);
    outline: none;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0d1117;
    font-size: 1.05rem;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-empty {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 1rem;
}

.contact-modal-note {
    max-width: 360px;
}

.contact-modal-content {
    background: #131b29;
    border: 1px solid var(--line);
    color: var(--text-main);
}

.contact-modal-content .form-control {
    background: #0f1520;
    border-color: var(--line);
    color: #fff;
}

.contact-modal-content .form-control:focus {
    background: #0f1520;
    color: #fff;
}

.admin-tabs .nav-link {
    border: 1px solid var(--line);
    color: var(--text-main);
    margin-right: 8px;
}

.admin-tabs .nav-link.active {
    color: #0d1117;
    background: var(--accent-2);
    border-color: var(--accent-2);
}

.admin-upload-progress {
    height: 20px;
    background: #0f1520;
    border: 1px solid var(--line);
}

.admin-upload-progress .progress-bar {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d1117;
    background: linear-gradient(120deg, var(--success), #9ef0e7);
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    padding: 2rem 0;
    color: var(--text-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.admin-body {
    background: linear-gradient(160deg, #0e121b 0%, #171f2f 45%, #101723 100%);
}

.admin-bg-shape {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255, 107, 53, 0.24), transparent 35%), radial-gradient(circle at 15% 20%, rgba(46, 196, 182, 0.15), transparent 28%);
    pointer-events: none;
}

.admin-panel {
    max-width: 980px;
    background: rgba(19, 26, 38, 0.9);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.6rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.admin-video-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    height: 100%;
}

.admin-video-thumb-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.85rem;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    height: 100%;
}

.admin-video-thumb-small {
    width: 150px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-video-thumb-body {
    min-width: 0;
}

.admin-video-preview {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.35;
    min-height: 40px;
}

.video-edit-modal-content {
    background: #303131;
    border: 1px solid var(--line);
    color: var(--text-main);
}

.video-modal-thumb {
    width: 240px;
    max-width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sort-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.04);
}

.admin-video-item {
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.admin-video-item.dragging {
    opacity: 0.55;
}

.admin-video-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.admin-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    cursor: grab;
}

.admin-drag-handle:hover,
.admin-drag-handle:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-video-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff7a18, #ffb14a);
}

.admin-video-meta {
    min-width: 0;
}

.admin-video-meta h3 {
    overflow-wrap: anywhere;
}

.admin-video-translations {
    display: grid;
    gap: 0.9rem;
}

.translation-field {
    display: grid;
    gap: 0.4rem;
}

.translation-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.translation-field-label img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-video-card img {
    border-radius: 10px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .admin-video-thumb-card {
        grid-template-columns: 1fr;
    }

    .admin-video-thumb-small {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

textarea.form-control {
    background: #0f1520;
    border-color: var(--line);
    color: #fff;
}

@media (max-width: 991px) {
    .hero {
        padding-top: 7.5rem;
    }

    .contact-modal-note {
        max-width: none;
        width: 100%;
    }
}
