:root {
    --bg-main: #f5f5f7;
    --bg-elevated: rgba(255, 255, 255, 0.9);
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --accent: #0071e3;
    --accent-strong: #0066cc;
    --card-bg: rgba(255, 255, 255, 0.92);
    --line-color: rgba(29, 29, 31, 0.12);
    --line-strong: rgba(29, 29, 31, 0.22);
    --success: #34c759;
    --error: #ff3b30;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-lift: 0 18px 45px rgba(0, 0, 0, 0.09);
    --blur-strong: saturate(160%) blur(22px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(0, 113, 227, 0.14), transparent 30%),
        linear-gradient(180deg, #f7f9fc 0%, #f2f4f8 16%, #eef2f7 100%);
    color: var(--text-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.86), transparent 42%);
    opacity: 0.7;
}

img {
    max-width: 100%;
    display: block;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.glass-panel,
.tech-category,
.timeline-content,
.contact-container {
    background: var(--card-bg);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.hero {
    text-align: center;
    padding: 1rem 0 4rem;
    margin-bottom: 1.25rem;
}

.hero-content {
    position: relative;
    overflow: hidden;
    padding: 2.55rem 1.25rem 1.55rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 251, 253, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.avatar-container {
    position: relative;
    width: 118px;
    height: 118px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.name {
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.summary {
    color: var(--text-main);
    font-size: clamp(1.02rem, 2.7vw, 1.28rem);
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 820px;
    margin: 0 auto;
}

.hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1.3rem;
    text-align: left;
}

.hero-highlight {
    padding: 1rem 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(29, 29, 31, 0.08);
}

.hero-highlight strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.hero-highlight p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.hero-highlight-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.quick-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(29, 29, 31, 0.08);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.quick-nav a:hover,
.quick-nav a:focus-visible,
.quick-nav a.is-active {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-strong);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.14);
    transform: translateY(-1px);
}

.section-heading {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-intro {
    max-width: 740px;
    margin: 0 auto 3.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.3vw, 1.1rem);
    line-height: 1.55;
}

.section-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: -1.2rem auto 2.4rem;
}

.section-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(29, 29, 31, 0.07);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
}

.section-badges-timeline {
    margin-bottom: 2.8rem;
}

.value-strip,
.tech-stack-section,
.fit-section,
.timeline-section {
    margin-bottom: 7rem;
}

.value-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.fit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.fit-card {
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(29, 29, 31, 0.06);
    box-shadow: var(--shadow-soft);
}

.fit-card h3 {
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.fit-card p,
.fit-card li {
    color: var(--text-muted);
    line-height: 1.58;
}

.fit-card ul {
    list-style: none;
}

.fit-card li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.72rem;
}

.fit-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--line-strong);
}

.fit-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.value-item {
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(29, 29, 31, 0.06);
    box-shadow: var(--shadow-soft);
}

.value-item h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
}

.value-item p {
    color: var(--text-muted);
    line-height: 1.58;
}

.value-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tech-category,
.timeline-content,
.contact-container {
    border-radius: 24px;
    padding: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lift);
    border-color: rgba(0, 113, 227, 0.12);
}

.tech-category h3 {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.tech-category ul,
.tasks {
    list-style: none;
}

.tech-category li,
.tasks li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-muted);
}

.tech-category li {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 0.68rem;
}

.tech-category li:last-child,
.tasks li:last-child {
    margin-bottom: 0;
}

.tech-category li::before,
.tasks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--line-strong);
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before,
.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 19px;
    width: 2px;
    border-radius: 999px;
}

.timeline::before {
    height: 100%;
    background: linear-gradient(180deg, rgba(29, 29, 31, 0.06), rgba(29, 29, 31, 0.18));
}

.timeline::after {
    height: 0%;
    background: linear-gradient(180deg, rgba(0, 113, 227, 0.7), rgba(0, 113, 227, 1));
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.6rem;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    transform: translateX(-50%);
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid rgba(29, 29, 31, 0.18);
    transition: all 0.5s ease;
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.14);
}

.timeline-content {
    margin-left: 46px;
}

.time {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(29, 29, 31, 0.045);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.role {
    font-size: 1.2rem;
    font-weight: 650;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    letter-spacing: -0.015em;
}

.company {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 550;
    margin-bottom: 1.15rem;
}

.tasks li {
    margin-bottom: 0.72rem;
    font-size: 0.98rem;
    line-height: 1.55;
}

.tasks li strong {
    color: var(--text-main);
    font-weight: 650;
}

.contact-section {
    margin-bottom: 4rem;
}

.contact-note {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 680px;
    margin: -1.2rem auto 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    font-size: 0.96rem;
}

.contact-note strong {
    color: var(--text-main);
}

.contact-note span {
    color: var(--text-muted);
    line-height: 1.55;
}

.contact-audience {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 auto 1rem;
    max-width: 680px;
}

.contact-audience span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(29, 29, 31, 0.07);
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 600;
}

.contact-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.96rem 1rem;
    border: 1px solid rgba(29, 29, 31, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9b9ba1;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(29, 29, 31, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
    transform: translateY(-1px);
}

.captcha-group {
    background: rgba(29, 29, 31, 0.035);
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(29, 29, 31, 0.05);
}

.captcha-label {
    color: var(--text-muted) !important;
}

.text-accent {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
}

.submit-btn {
    background: linear-gradient(180deg, #1280f2, var(--accent));
    color: #ffffff;
    border: none;
    border-radius: 999px;
    min-height: 52px;
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 0.25rem;
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.submit-btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.75;
}

.form-feedback {
    margin-top: 0.4rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
}

.feedback-success {
    color: var(--success);
    display: block;
}

.feedback-error {
    color: var(--error);
    display: block;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    text-align: center;
    padding: 1rem 1rem 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .content-wrapper {
        padding: 3rem 1.5rem 4.5rem;
    }

    .hero-content {
        padding: 3rem 2rem 1.9rem;
    }

    .avatar-container {
        width: 132px;
        height: 132px;
        margin-bottom: 1.75rem;
    }

    .hero-highlights,
    .value-strip,
    .tech-grid,
    .fit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }

    .fit-card-wide {
        grid-column: span 2;
    }

    .hero-highlight:first-child {
        grid-column: span 2;
    }

    .tech-category,
    .timeline-content,
    .contact-container,
    .value-item {
        padding: 1.8rem;
    }

    .form-row {
        flex-direction: row;
    }

    .form-row .form-group {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .hero {
        padding-top: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        border-radius: 36px;
        padding: 3.25rem 3rem 2.1rem;
    }

    .hero-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-highlight:first-child {
        grid-column: auto;
    }

    .value-strip,
    .fit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline::before,
    .timeline::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-dot {
        left: 50%;
    }

    .timeline-item {
        margin-bottom: 2.2rem;
    }

    .timeline-content {
        width: 44%;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: auto;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .hover-lift:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }

    .quick-nav a {
        flex: 1 1 calc(50% - 0.65rem);
    }
}

@media (max-width: 479px) {
    .content-wrapper {
        padding-inline: 0.85rem;
    }

    .hero-content,
    .tech-category,
    .timeline-content,
    .contact-container {
        border-radius: 22px;
    }

    .hero-content {
        padding-inline: 1rem;
    }

    .summary {
        font-size: 1rem;
    }

    .section-intro {
        margin-bottom: 2.3rem;
    }

    .quick-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-nav a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-reveal,
    .hover-lift,
    .submit-btn,
    .quick-nav a,
    .avatar-container {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
