/* ============================================
   ПЕРСОНАЛЬНЫЙ ЛЕНДИНГ — ГУКАЙ А.Е.
   Концепция: Warm Premium Technology
   Полный набор стилей
   ============================================ */

/* 1. БАЗОВЫЕ НАСТРОЙКИ */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAF8F3;
    color: #2F2923;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #C89A4B;
    color: #ffffff;
}

/* 2. GLASS ЭФФЕКТЫ */
.glass {
    background: rgba(255, 253, 248, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(185, 133, 45, 0.15);
}

.glass-gold {
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 154, 75, 0.25);
    box-shadow: 0 8px 32px rgba(90, 65, 35, 0.08);
}

/* 3. ТЕКСТ И ГРАДИЕНТЫ */
.text-gradient-gold {
    background: linear-gradient(135deg, #A87324 0%, #C89A4B 50%, #D5B16A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 4. КНОПКИ */
.btn-primary {
    background: linear-gradient(135deg, #A87324 0%, #C89A4B 100%);
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 115, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(185, 133, 45, 0.4);
    color: #2F2923;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(200, 154, 75, 0.08);
    border-color: #C89A4B;
    transform: translateY(-2px);
}

/* 5. АНИМАЦИИ ПОЯВЛЕНИЯ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-400 { transition-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* 6. ФОНОВЫЕ ЭЛЕМЕНТЫ */
.bg-grid {
    background-image: radial-gradient(rgba(185, 133, 45, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 7. TIMELINE (ВРЕМЕННАЯ ШКАЛА) */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #D5B16A, #C89A4B, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.timeline-dot {
    width: 2.75rem;
    height: 2.75rem;
    background: #FAF8F3;
    border: 2px solid rgba(200, 154, 75, 0.4);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-dot:hover {
    border-color: #C89A4B;
    box-shadow: 0 0 24px rgba(200, 154, 75, 0.25);
}

.timeline-dot-primary {
    width: 3.25rem;
    height: 3.25rem;
    background: #C89A4B;
    border-color: #C89A4B;
    box-shadow: 0 0 32px rgba(200, 154, 75, 0.3);
}

.timeline-dot-dark {
    width: 3.25rem;
    height: 3.25rem;
    background: #2F2923;
    border-color: #2F2923;
}

.timeline-card {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 253, 248, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(185, 133, 45, 0.12);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: rgba(200, 154, 75, 0.3);
    box-shadow: 0 8px 24px rgba(90, 65, 35, 0.06);
    transform: translateY(-2px);
}

.timeline-card-accent {
    background: rgba(255, 253, 248, 0.85);
    border-color: rgba(200, 154, 75, 0.25);
    box-shadow: 0 8px 32px rgba(90, 65, 35, 0.08);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #F3EEE3;
    border: 1px solid rgba(185, 133, 45, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A3A2E;
    margin-bottom: 0.5rem;
}

.timeline-date-accent {
    background: rgba(200, 154, 75, 0.12);
    border-color: rgba(200, 154, 75, 0.35);
    color: #A87324;
}

.timeline-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2F2923;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.timeline-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: #A87324;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.875rem;
    color: #766B60;
    line-height: 1.5;
}

.timeline-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(200, 154, 75, 0.1);
    color: #A87324;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.timeline-subitems {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(185, 133, 45, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-subitem {
    font-size: 0.8rem;
    color: #4A3A2E;
    line-height: 1.5;
    padding-left: 0.75rem;
    position: relative;
}

.timeline-subitem::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 4px;
    height: 4px;
    background: #C89A4B;
    border-radius: 50%;
}

.timeline-subitem strong {
    color: #2F2923;
    font-weight: 600;
}

.timeline-content-left { text-align: right; }
.timeline-content-right { text-align: left; }

/* 8. КАРТОЧКИ ПРОЕКТОВ (НОВОЕ) */
.project-card {
    background: rgba(255, 253, 248, 0.5);
    border: 1px solid rgba(185, 133, 45, 0.15);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: rgba(200, 154, 75, 0.4);
    box-shadow: 0 12px 40px rgba(90, 65, 35, 0.08);
    transform: translateY(-4px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #A87324;
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
    color: #C89A4B;
}

/* 9. ДОСТУПНОСТЬ (REDUCED MOTION) */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn-primary:hover, .btn-secondary:hover, .timeline-card:hover, .project-card:hover { transform: none; }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(0); } }
}

/* 10. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) */
@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-item { grid-template-columns: 40px 1fr; gap: 1rem; }
    .timeline-content-left { display: none; }
    .timeline-content-right { grid-column: 2; text-align: left; }
    .timeline-dot { grid-column: 1; width: 2.25rem; height: 2.25rem; justify-self: center; }
    .timeline-dot-primary, .timeline-dot-dark { width: 2.5rem; height: 2.5rem; }
    .timeline-card { padding: 1rem 1.25rem; }
    .timeline-title { font-size: 1rem; }
    .timeline-text, .timeline-role { font-size: 0.8rem; }
    .timeline-subitem { font-size: 0.75rem; }
}

@media (max-width: 380px) {
    .timeline-card { padding: 0.875rem 1rem; }
    .timeline-title { font-size: 0.95rem; }
    .timeline-date { font-size: 0.7rem; padding: 0.2rem 0.6rem; }
}