/* ============================================= */
/*                  PORTFOLIO CSS                */
/* ============================================= */

/* ==================== VARIABLES ==================== */
:root {
    /* --bg: #111827; */

    /* --surface: #1a2332; */
    /* --surface-hover: #202b3d; */

    --text: #ffffff;
    --text-light: #f1f5f9;
    --text-soft: #e5e7eb;
    --muted: #cbd5e1;
    --muted-dark: #94a3b8;

    --border: #334155;
    --border-light: rgba(255,255,255,.06);

    /* --accent: #f4a900;*/
    --accent: #e28b00;
    --accent-hover: rgba(244,169,0,.25);
    --accent-bg: rgba(244,169,0,.10);
    --accent-bg-light: rgba(244,169,0,.06);
    --accent-shadow: rgba(244,169,0,.15);
    --accent-shadow-strong: rgba(244,169,0,.4);

    --gradient-start: #f4a900;
    --gradient-end: #ffcc33;

    --header-bg: rgba(10,14,20,.7);

    --grid-color: rgba(255,255,255,.03);

    /* --bg-card: rgba(17,24,39,.6); */
    --bg-card: rgba(28, 32, 40, .85);


        --bg: #0f1115;
    --surface: #171a21;
    --surface-hover: #1d212b;

    --accent: #f4a900;

    --font-heading: "Playfair Display", system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}



body {
    font-family: var(--font-body);
    font-weight: 100;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 500;
}
/* , .top h2, h3, h4, span, .section-title*/


/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;
}

/* ==================== BACKGROUND DECORATION ==================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(244,169,0,.06),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(244,169,0,.04),
            transparent 25%
        );
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

/* ==================== LAYOUT ==================== */
.container {
    width: min(1200px, 92%);
    margin: auto;
}

section {
    padding: 40px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.section-title h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 18px auto;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

h4 {
    margin-bottom: 8px;
}

/* ==================== HEADER & NAV ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(10,14,20,.7);
    border-bottom: 1px solid rgba(255,255,255,.06);

}


.header-inner {
    display: flex;
    align-items: center;           /* главное — выравнивает по вертикали */

    gap: 20px;
}


.logo {
    width: 60px;          /* или 50-70px — подбери под себя */
    height: 60px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
}

.logo-link {
    display: flex;
    align-items: center;
}
/**/
nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 500;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: .25s ease;
}

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

/* ==================== HERO ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.tag {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--accent-hover);
    color: var(--accent);
    margin-bottom: 25px;
}

.hero h1 {


    color: var(--text);
    text-shadow: 0 0 30px rgba(244,169,0,.15);


    font-size: clamp(4rem, 10vw, 8rem);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -4px;
    margin-bottom: 26px;
    background: linear-gradient(
        135deg,
        var(--text),
        var(--accent)
    );
    -webkit-background-clip: text;
   /* color: transparent; */
}

.hero h1 span {
    color: var(--accent);
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--muted);
}

.hero p {
    max-width: 700px;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: .3s ease;
}



.card:hover {
    transform: translateY(-4px);   /* можно чуть больше для красоты */
    border-color: var(--accent);
    z-index: 100;                  /* Выше заголовка и соседних карточек */
    box-shadow: 0 20px 25px -5px var(--accent-shadow-strong),
                0 8px 10px -6px var(--accent-shadow);
}



.card p{
	padding-bottom: 10px
}

p {
	line-height: 1.5;
	}


/* ==================== STATS ==================== */
.stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stats strong {
    display: block;
    font-size: 1.8rem;
    color: var(--accent);
}

.stats span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ==================== STACK / SKILLS ==================== */
.stack-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill {
    padding: 10px 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: .2s ease;
    font-size: 1rem;
}

.skill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.skill.active {
    background: var(--accent-bg);
    box-shadow: 0 0 15px var(--accent-shadow);
    border-color: var(--accent);
    color: var(--accent);
}

.stack-info {
    min-height: 180px;
    padding: 20px;
}

.stack-info h3 {
    margin-bottom: 12px;
}

.stack-info span {
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
    display: block;
}

.stack-info p {
    line-height: 1.7;
    color: var(--muted);
}

/* ==================== HERO ACTIONS (BUTTONS) ==================== */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.hero-actions a:hover {
    box-shadow: 0 0 20px var(--accent-shadow);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}



.period {
    color: #94a3b8;
    font-size: 14px;
	margin-bottom: 12px;
}


.company-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.company-link:hover {
    text-decoration: underline;
}

/* ==================== TIMELINE & PROJECTS CONTAINER ==================== */


.timeline,
.projects {
    margin-top: 20px;
    overflow: visible !important;
}





.timeline,
.experience-slider {
    position: relative;
    z-index: 2;                    /* Важно! */
    padding-top: 20px;             /* Добавляем пространство сверху для подъёма */
    margin-top: -10px;             /* Компенсируем отступ */
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==================== CONTACTS ==================== */
.contacts-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-email {
    display: inline-flex;
    width: fit-content;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    background: var(--accent-bg-light);
    transition: .2s ease;
}

.contact-email:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-shadow);
}




.section-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 32px;

    font-size: 2.2rem;
    font-weight: 700;
        color: var(--text);
    font-weight: 700;
}

.section-title span {
    color: var(--accent);
}


/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

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

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
}

/* ==================== CURSORS ==================== */
p, strong, span, h1, h2, h3, h4 {
    cursor: default;
}

a, button, .skill, .hero-actions a, .menu a {
    cursor: pointer;
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {

    .top-logo {
        display: none;
    }

    .menu li{
        padding: 0px;
        margin: 0px;
        white-space: nowrap;

    }

    .hero h1 {
        font-size: 4rem;
    }

    section {
        padding: 40px 0;
    }

    .stats {
        gap: 25px;
    }

}



.stack-info ul {
    list-style: none;
    padding: 0;
}

.stack-info li {
    /* padding: 9px 0; */
    line-height: 1.6;
    color: var(--muted);
}


ul {
    list-style: none;
    padding: 0;
}

li {
    position: relative;
    padding-left: 22px;
    line-height: 1.7;
    font-size: 18px;
    color: #e5e7eb;
}

.card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(
        135deg,
        var(--gradient-start),
        var(--gradient-end)
    );
}



.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: var(--accent-bg);
    color: var(--accent);

    font-size: 18px;
    cursor: pointer;

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;

    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Слайдер*/

.experience-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    position: relative; /* важно */
    z-index: 1;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    padding-bottom: 30px;       /* пространство снизу */
    scroll-padding: 20px;
}



.experience-slider::-webkit-scrollbar {
    display: none;
}



.experience-slider .card {
    flex: 0 0 min(500px, 85vw);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    z-index: 1;
}



/* Убеждаемся, что секция не режет контент */
section#experience {
    overflow: visible;
}

/* Если нужно — поднимаем заголовок выше карточек */
.section-title {
    position: relative;
    z-index: 5;
}


/* - -- - - - - - */
.footer {
    background: #0b0b0b;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-info h3 {
    font-size: 22px;

}

.footer-info p {
    opacity: 0.7;
    max-width: 300px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.footer-row {
    display: flex;
    flex-direction: row;
    align-items: center;     /* выравнивание по вертикали */
    gap: 12px;               /* отступ между логотипом и текстом */
    flex-wrap: wrap;         /* на всякий случай */
}


.footer-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;        /* чтобы логотип не сжимался */
    object-fit: contain;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.footer-link:hover {
    color: #e28b00;
}

/* Telegram — главный контакт */
.footer-link.telegram {
    color: #e28b00;
    font-weight: 600;
}

/* Calendly как CTA */
.footer-link.calendly {
    padding: 6px 10px;
    border: 1px solid #e28b00;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.footer-link.calendly:hover {
    background: rgba(226,139,0,0.1);
}

/* bottom */
.footer-bottom {
    margin-top: 30px;
    font-size: 12px;
    opacity: 0.5;
    text-align: center;
}
