:root {
    --bg: #09090b;
    --surface: #151519;
    --surface-strong: #1f1f25;
    --text: #f6f1ee;
    --muted: #c9beb9;
    --accent: #d8b1a5;
    --accent-dark: #9d6f62;
    --line: rgba(216, 177, 165, 0.24);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(9, 9, 11, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 600;
    padding: 0 12px;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(216, 177, 165, 0.11);
    color: var(--text);
}

.language-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    min-width: 42px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    padding: 8px 10px;
}

.lang-btn.active {
    background: var(--accent);
    color: #171113;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
   
    height: 10px;
    background: var(--accent);
    margin: 5px 0;
}

section {
    padding: 86px 0;
}

.hero {
    min-height: calc(100vh - 82px);
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 25% 25%, rgba(216, 177, 165, 0.14), transparent 28%),
        linear-gradient(145deg, #09090b 0%, #17171c 56%, #0f0d0e 100%);
}

.hero-content {
    text-align: center;
    padding: 100px 0;
}

.hero-logo {
    width: clamp(150px, 24vw, 250px);
    margin: 0 auto 22px;
}

.eyebrow,
.section-title span {
    color: var(--accent);
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--text);
    font-size: clamp(2.1rem, 7vw, 4.8rem);
    line-height: 1.05;
    margin: 0 auto 22px;
    max-width: 940px;
}

.hero p:not(.eyebrow) {
    color: var(--muted);
    font-size: clamp(1rem, 2.4vw, 1.22rem);
    margin: 0 auto 32px;
    max-width: 790px;
}

.plan-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 42px auto 0;
    max-width: 920px;
    text-align: left;
}

.plan-card {
    display: grid;
    gap: 8px;
    min-height: 176px;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(31, 31, 37, 0.78);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 34px);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.plan-card:hover,
.plan-card:focus-visible {
    border-color: rgba(216, 177, 165, 0.72);
    background: rgba(216, 177, 165, 0.12);
    transform: translateY(-3px);
}

.plan-card span {
    color: var(--accent);
    font-size: 52;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-card strong {
    color: var(--text);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.12;
}

.plan-card small {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: var(--accent);
    color: #171113;
    cursor: pointer;
    font-weight: 800;
    padding: 12px 24px;
    text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
    background: #edc8bc;
}

.social-btn {
    gap: 8px;
    margin-top: 18px;
    max-width: 100%;
}

.social-btn img,
.social-icon-img {
    width: auto !important;
    height: 52px !important;
    max-width: 150px !important;
    max-height: 52px !important;
    object-fit: contain !important;
    flex: 0 0 auto;
}

.linkedin-btn {
    background: #0a66c2;
    color: #fff;
}

.github-btn {
    background: #24292f;
    color: #fff;
}

.linkedin-btn:hover,
.linkedin-btn:focus-visible {
    background: #0c76df;
}

.github-btn:hover,
.github-btn:focus-visible {
    background: #3a4149;
}

.resume-icon-link {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(216, 177, 165, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.resume-icon-link:hover,
.resume-icon-link:focus-visible {
    background: rgba(216, 177, 165, 0.18);
    transform: translateY(-2px);
}

.resume-icon-link img {
    width: 70px !important;
    height: 70px  !important;
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: contain !important;
}

.project-icon-link {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: 18px auto 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(216, 177, 165, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.project-icon-link:hover,
.project-icon-link:focus-visible {
    background: rgba(216, 177, 165, 0.18);
    transform: translateY(-2px);
}

.project-icon-link img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
}

.section-band {
    background: var(--surface);
}

.section-title {
    margin: 0 auto 42px;
    max-width: 760px;
    text-align: center;
}

.section-title h2 {
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    margin-bottom: 14px;
}

.section-title p {
    color: var(--muted);
    font-size: 1.04rem;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 32px;
}

.about-text {
    background: #f8f1ee;
    border: 1px solid rgba(216, 177, 165, 0.42);
    border-left: 7px solid var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #211719;
    padding: clamp(24px, 5vw, 42px);
}

.about-text p {
    color: #2d2223;
    font-size: clamp(1rem, 2.1vw, 1.12rem);
    font-weight: 500;
    margin-bottom: 18px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    margin: 0 auto;
}

.services-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card,
.resume-sidebar,
.resume-main {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-card {
    padding: 26px;
}

.service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: rgba(216, 177, 165, 0.14);
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 18px;
}

.service-card h3,
.resume-main h3,
.resume-sidebar h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

.service-card p,
.resume-main p,
.resume-sidebar p,
.resume-sidebar li {
    color: var(--muted);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-icon-link {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-icon-link:hover,
.contact-icon-link:focus-visible {
    filter: brightness(1.12);
    transform: translateY(-3px);
}

.contact-icon-link img,
.contact-icon-img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
}

.whatsapp-link {
    background: transparent;
}

.email-link {
    background: transparent;
}

.contact-form {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-weight: 800;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #101014;
    color: var(--text);
    font: inherit;
    padding: 12px;
}

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

.form-status {
    min-height: 24px;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 700;
}

footer {
    border-top: 1px solid var(--line);
    padding: 42px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-logo {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    max-width: 420px;
}

.footer-links h3 {
    color: var(--accent);
    flex-basis: 100%;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.copyright {
    border-top: 1px solid var(--line);
    color: var(--muted);
    margin: 30px auto 0;
    padding-top: 20px;
    text-align: center;
    width: min(1120px, calc(100% - 32px));
}

.page-hero {
    padding-top: 136px;
    padding-bottom: 54px;
}

.portfolio-item {
    min-height: 330px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    opacity: 0.68;
}

.portfolio-overlay {
    position: absolute;
    inset: auto 0 0;
    background: linear-gradient(180deg, transparent, rgba(9, 9, 11, 0.96) 22%);
    color: var(--text);
    padding: 56px 22px 22px;
}

.portfolio-overlay h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.portfolio-overlay p {
    color: var(--muted);
    margin-bottom: 16px;
}

.portfolio-overlay .btn {
    min-height: 42px;
    padding: 9px 16px;
}

.resume-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 24px;
}

.resume-sidebar,
.resume-main {
    padding: 28px;
}

.profile-image img {
    width: 156px;
    height: 156px;
    border: 4px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 28px;
    object-fit: cover;
}

.resume-sidebar ul {
    list-style: none;
    margin-bottom: 28px;
}

.resume-sidebar li {
    border-bottom: 1px solid rgba(216, 177, 165, 0.12);
    padding: 8px 0;
}

.experience-item,
.education-item {
    border-left: 4px solid var(--accent);
    margin-bottom: 28px;
    padding-left: 18px;
}

.experience-item h4,
.education-item h4 {
    color: var(--text);
    font-size: 1.12rem;
}

.company,
.institution {
    color: var(--accent);
    font-weight: 800;
}

.period {
    color: #a99c96;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

@media (max-width: 920px) {
    .menu-toggle {
        display: block;
    }

    .nav-panel {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        display: none;
        background: rgba(9, 9, 11, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 18px 16px 22px;
    }

    body.menu-open .nav-panel {
        display: block;
    }

    .nav-links {
        display: grid;
        gap: 6px;
        margin-bottom: 16px;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .language-switch {
        display: flex;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }

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

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .navbar {
        min-height: 72px;
    }

    .logo span {
        font-size: 0.96rem;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    .nav-panel {
        top: 72px;
    }

    section {
        padding: 58px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 40px;
    }

    .hero-content {
        padding: 36px 0 48px;
    }

    .plan-panel {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .plan-card {
        min-height: 148px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .resume-sidebar,
    .resume-main {
        padding: 22px;
    }

    .contact-icon-link {
        width: 58px;
        height: 58px;
    }

    .footer-content {
        display: grid;
    }

    .page-hero {
        padding-top: 104px;
    }
}
