/* ============================================
   Лендинг-резюме — Hakki & Pale Peach Theme
   ============================================ */

/* CSS Variables */
:root {
    /* Main colors */
    --bg-color: #faf8f5;
    --khaki-main: #6f7c5a;
    --khaki-light: #a8b38c;
    --khaki-dark: #5a6549;
    --peach: #e6c9a8;
    --peach-saturated: #d4a574;
    --text-dark: #4a4036;
    --text-gray: #8a7f72;
    --bg-beige: #f1ede6;
    --success: #8a9b6e;
    --white: #ffffff;

    /* Typography */
    --font-main: 'Roboto', 'Segoe UI', sans-serif;
    --font-accent: 'Georgia', serif;

    /* Spacing */
    --container-max: 1100px;
    --section-padding: 100px;
    --section-padding-mobile: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-color);
}

a {
    color: var(--khaki-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--khaki-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--khaki-main);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-leaf {
    width: 32px;
    height: 32px;
    color: var(--khaki-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--khaki-main);
    color: var(--bg-color);
    box-shadow: 0 3px 8px rgba(111, 124, 90, 0.3);
}

.btn-primary:hover {
    background: var(--khaki-dark);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(111, 124, 90, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

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

.btn-secondary:hover {
    background: rgba(168, 179, 140, 0.1);
    border-color: var(--khaki-main);
    color: var(--khaki-main);
}

/* Pulse animation */
.btn.pulse {
    animation: pulse 1s ease-in-out 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(74, 64, 54, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--khaki-main);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--khaki-main);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

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

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

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

.lang-switch {
    background: var(--peach);
    color: var(--text-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: 16px;
}

.lang-switch:hover {
    background: var(--peach-saturated);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-beige) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 20px;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--khaki-main);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-avatar {
    flex-shrink: 0;
}

.hero-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--peach);
    box-shadow:
        inset 0 0 10px rgba(230, 201, 168, 0.3),
        0 8px 24px rgba(111, 124, 90, 0.15);
    filter: brightness(1.05) contrast(1.1);
    object-fit: cover;
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z' fill='%236f7c5a' fill-opacity='0.03'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    pointer-events: none;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--peach);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.feature span {
    font-size: 0.9375rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Skills Section */
.skills {
    background: var(--bg-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(230, 201, 168, 0.5);
    box-shadow: 0 6px 16px rgba(111, 124, 90, 0.08);
    padding: 28px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.skill-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:nth-child(1) { transition-delay: 0.1s; }
.skill-card:nth-child(2) { transition-delay: 0.2s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.4s; }
.skill-card:nth-child(5) { transition-delay: 0.5s; }
.skill-card:nth-child(6) { transition-delay: 0.6s; }

.skill-card:hover {
    border-color: var(--peach);
    box-shadow: 0 10px 24px rgba(111, 124, 90, 0.12);
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--khaki-main);
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--peach);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: var(--bg-beige);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--khaki-main), var(--khaki-light));
    border-radius: 3px;
    transition: width 1s ease;
}

/* Experience Section */
.experience {
    background: var(--white);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--khaki-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--khaki-main);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--khaki-light);
}

.timeline-content {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(230, 201, 168, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--khaki-main);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-gray);
    background: var(--peach);
    padding: 4px 12px;
    border-radius: 4px;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.timeline-description {
    margin-bottom: 16px;
}

.timeline-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.timeline-stack .tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: var(--bg-beige);
    color: var(--text-gray);
}

.timeline-tasks {
    list-style: none;
    padding-left: 0;
}

.timeline-tasks li {
    margin-bottom: 10px;
    font-size: 0.9375rem;
    color: var(--text-dark);
    padding-left: 20px;
    position: relative;
}

.timeline-tasks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--khaki-light);
    border-radius: 50%;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--khaki-main) 0%, var(--khaki-dark) 100%);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--bg-color);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(250, 248, 245, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--peach);
    color: var(--text-dark);
}

.cta-section .btn-primary:hover {
    background: var(--peach-saturated);
}

/* Contacts Section */
.contacts {
    background: var(--bg-beige);
    position: relative;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.contacts-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.contacts-info h3 {
    font-size: 1.5rem;
    color: var(--khaki-main);
    margin-bottom: 16px;
}

.contacts-info > p {
    color: var(--text-gray);
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--khaki-main);
    flex-shrink: 0;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-item a:hover {
    color: var(--khaki-main);
}

.contacts-form {
    position: relative;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-color);
    border: 1px solid var(--khaki-light);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(138, 127, 114, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border: 2px solid var(--khaki-main);
    box-shadow: 0 0 0 3px rgba(111, 124, 90, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contacts-form .btn {
    width: 100%;
}

.paw-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
}

.paw-decoration svg {
    width: 120px;
    height: 120px;
    color: var(--khaki-main);
}

/* Footer */
.footer {
    background: var(--khaki-main);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--bg-color);
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250, 248, 245, 0.1);
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: rgba(250, 248, 245, 0.2);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    color: var(--bg-color);
    transition: color 0.25s ease;
}

.footer-social a:hover svg {
    color: var(--peach);
}

.scroll-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--peach);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--peach-saturated);
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }

    body {
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--khaki-main);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        color: var(--bg-color);
        padding: 12px 0;
        display: block;
    }

    .nav-menu a::after {
        background: var(--peach);
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .hero-avatar img {
        width: 130px;
        height: 130px;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
        width: 14px;
        height: 14px;
    }

    .timeline-header {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-features {
        grid-template-columns: 1fr;
    }

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

    .btn {
        padding: 12px 24px;
    }
}
