/* ========== Gotham Pro — все начертания ========== */
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_lightitalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_mediumitalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_bolditalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham Pro';
    src: url('/fonts/gothampro_blackitalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* ========== Переменные — тёмный минимализм ========== */
:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --border: #1f1f1f;
    --text: #e8e8e8;
    --text-muted: #888;
    --accent: #c9a227;
    --font: 'Gotham Pro', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
}

/* Тонкий шум поверх фона */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

/* Атрибуты для выбора начертания */
[data-font="light"] { font-weight: 300; }
[data-font="medium"] { font-weight: 500; }
[data-font="bold"] { font-weight: 700; }
[data-font="black"] { font-weight: 900; }

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.logo {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo:hover { color: var(--accent); }

.nav {
    display: flex;
    gap: 2rem;
}
.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.nav a:hover { color: var(--text); }

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 4rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-label {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.hero-title .line {
    display: inline-block;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.4s;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-photo-wrap {
    flex-shrink: 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.7s;
}

.photo-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
    transition: border-color 0.4s ease, transform 0.4s ease;
}
.photo-frame:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Секции ========== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-content {
    max-width: 560px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

/* Сетка навыков */
.skills-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.skill-card {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.skill-card:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.06);
    transform: translateY(-2px);
}

/* Блок связи — в едином стиле с карточками */
.contact-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.06);
    transform: translateY(-2px);
}

.contact-icon {
    color: var(--text-muted);
}

.contact-value {
    color: var(--accent);
}

.contact-list li {
    opacity: 0;
    transform: translateY(12px);
}
.contact-list li.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Проекты — карточки в едином стиле */
.projects-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(12px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.06);
    transform: translateY(-2px);
}

.project-card.visible:hover {
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-link {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--text);
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== Анимации ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Появление секций при скролле */
.section {
    opacity: 0;
    transform: translateY(24px);
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.skills-grid li {
    opacity: 0;
    transform: translateY(12px);
}
.skills-grid li.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 5rem;
    }
    .hero-photo-wrap { order: -1; }
    .nav { gap: 1.5rem; }
}
