/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 4.25rem;

    /*========== Colors ==========*/
    /* Modern Soft Pastel Palette (Pastel Iris / Indigo & Slate) */
    --hue-color: 245;

    --first-color: hsl(var(--hue-color), 62%, 62%);
    --first-color-second: hsl(var(--hue-color), 58%, 56%);
    --first-color-alt: hsl(var(--hue-color), 60%, 50%);
    --first-color-lighter: hsl(var(--hue-color), 75%, 92%);
    --first-color-soft: hsl(var(--hue-color), 70%, 97%);
    
    --title-color: hsl(224, 35%, 15%);
    --text-color: hsl(224, 14%, 38%);
    --text-color-light: hsl(224, 10%, 58%);
    --body-color: hsl(230, 30%, 98%);
    --container-color: #ffffff;
    --border-color: rgba(226, 232, 240, 0.8);
    --card-shadow: 0 10px 30px -10px rgba(100, 116, 139, 0.08);

    /*========== Typography ==========*/
    --body-font: 'Inter', sans-serif;
    --title-font: 'Plus Jakarta Sans', sans-serif;

    --big-font-size: 2.35rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.35rem;
    --h3-font-size: 1.15rem;
    --normal-font-size: 0.96rem;
    --small-font-size: 0.86rem;
    --smaller-font-size: 0.78rem;

    /*========== Font weights ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== Z Index ==========*/
    --z-tooltip: 10;
    --z-fixed: 1000;
    --z-modal: 2000;
}

@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3.35rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.65rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1.025rem;
        --small-font-size: 0.9rem;
        --smaller-font-size: 0.82rem;
    }
}

/*========== Dark Theme Variables ==========*/
body.dark-theme {
    --first-color: hsl(var(--hue-color), 75%, 68%);
    --first-color-second: hsl(var(--hue-color), 70%, 62%);
    --first-color-alt: hsl(var(--hue-color), 70%, 58%);
    --first-color-lighter: rgba(129, 140, 248, 0.22);
    --first-color-soft: rgba(129, 140, 248, 0.08);

    --title-color: hsl(220, 40%, 98%);
    --text-color: hsl(220, 20%, 78%);
    --text-color-light: hsl(220, 14%, 60%);
    --body-color: hsl(224, 30%, 9%);
    --container-color: hsl(224, 25%, 13%);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: var(--body-font);
    border: none;
    outline: none;
    cursor: pointer;
}

/*==================== LANGUAGE SWITCHING ====================*/
.lang-en {
    display: none !important;
}
body[data-lang="en"] .lang-hu {
    display: none !important;
}
body[data-lang="en"] .lang-en {
    display: inline-block !important;
}

/*==================== REUSABLE LAYOUT CLASSES ====================*/
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 5.5rem 0 3rem;
}

.section__header {
    margin-bottom: 3rem;
}

.section__header--center {
    text-align: center;
}

.section__eyebrow {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.section__title {
    font-size: var(--h1-font-size);
    margin-bottom: 0.75rem;
}

.section__subtitle,
.section__lead {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    max-width: 680px;
}

.section__header--center .section__subtitle,
.section__header--center .section__lead {
    margin-left: auto;
    margin-right: auto;
}

/*==================== BUTTONS ====================*/
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 0.85rem;
    font-weight: var(--font-semi-bold);
    font-size: var(--normal-font-size);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.button--primary {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-second));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

.button--secondary {
    background: var(--container-color);
    color: var(--title-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.button--secondary:hover {
    border-color: var(--first-color);
    color: var(--first-color);
    transform: translateY(-3px);
}

.button__icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.button:hover .button__icon {
    transform: translateX(3px);
}

/*==================== HEADER & NAV ====================*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scroll-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.dark-theme .header.scroll-header {
    background-color: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--title-font);
    font-size: 1.35rem;
    font-weight: var(--font-bold);
    color: var(--title-color);
    display: flex;
    align-items: center;
    letter-spacing: -0.03em;
}

.nav__logo-dot {
    color: var(--first-color);
    font-size: 1.6rem;
    line-height: 1;
}

.nav__btns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__theme-btn,
.nav__toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background: var(--container-color);
    border: 1px solid var(--border-color);
    color: var(--title-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.nav__theme-btn:hover,
.nav__toggle-btn:hover {
    color: var(--first-color);
    border-color: var(--first-color);
    transform: scale(1.05);
}

.nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav__overlay.show-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Nav Drawer */
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        max-width: 340px;
        height: calc(100vh - var(--header-height));
        background-color: var(--container-color);
        padding: 2rem 1.5rem;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: var(--z-fixed);
        display: flex;
        flex-direction: column;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav__item {
        width: 100%;
    }

    .nav__link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1rem;
        border-radius: 0.75rem;
        font-size: 1rem;
        font-weight: var(--font-medium);
        color: var(--title-color);
        transition: all 0.2s ease;
    }

    .nav__link:hover,
    .nav__link.active-link {
        background: var(--first-color-soft);
        color: var(--first-color);
    }

    .nav__icon {
        font-size: 1.3rem;
    }

    .nav__link--cv {
        margin-top: 1rem;
        background: var(--first-color-soft);
        color: var(--first-color);
        font-weight: var(--font-semi-bold);
    }

    .nav__close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        color: var(--text-color-light);
        cursor: pointer;
        padding: 0.5rem;
    }
}

/* Desktop Navigation */
@media screen and (min-width: 768px) {
    .nav__toggle-btn,
    .nav__close {
        display: none;
    }

    .nav__menu {
        display: flex;
        align-items: center;
    }

    .nav__list {
        display: flex;
        align-items: center;
        gap: 1.75rem;
    }

    .nav__icon {
        display: none;
    }

    .nav__link {
        font-size: 0.95rem;
        font-weight: var(--font-medium);
        color: var(--text-color);
        transition: color 0.2s ease;
        position: relative;
        padding: 0.25rem 0;
    }

    .nav__link:hover,
    .nav__link.active-link {
        color: var(--first-color);
    }

    .nav__link.active-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--first-color);
        border-radius: 2px;
    }

    .nav__link--cv {
        padding: 0.5rem 1.1rem;
        background: var(--first-color-soft);
        color: var(--first-color);
        border-radius: 0.6rem;
        font-weight: var(--font-semi-bold);
        border: 1px solid var(--first-color-lighter);
    }

    .nav__link--cv:hover {
        background: var(--first-color);
        color: #ffffff;
    }

    .nav__link--cv.active-link::after {
        display: none;
    }
}

/*==================== HERO / HOME ====================*/
.home {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 4rem;
}

.home__content {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2.5rem;
}

.home__title {
    font-size: var(--big-font-size);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.home__subtitle {
    font-size: var(--h2-font-size);
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1rem;
}

.home__description {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.75;
}

.home__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.home__stat-card {
    background: var(--container-color);
    border: 1px solid var(--border-color);
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.home__stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--first-color);
}

.home__stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--first-color);
    font-family: var(--title-font);
    line-height: 1.2;
}

.home__stat-label {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-medium);
}

.home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home__img-container {
    display: flex;
    justify-content: center;
}

.home__avatar-ring {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--first-color), hsl(265, 80%, 72%));
    box-shadow: 0 16px 36px rgba(129, 140, 248, 0.3);
    transition: transform 0.3s ease;
}

.home__avatar-ring:hover {
    transform: scale(1.03);
}

.home__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--container-color);
}

@media screen and (min-width: 768px) {
    .home__content {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }

    .home__avatar-ring {
        width: 320px;
        height: 320px;
    }
}

/*==================== ABOUT ====================*/
.about__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about__media {
    display: flex;
    justify-content: center;
}

.about__img {
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__text {
    line-height: 1.8;
    color: var(--text-color);
}

@media screen and (min-width: 768px) {
    .about__container {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 3.5rem;
    }
}

/*==================== PORTFOLIO (DARK INVERTED CAROUSEL - CLEAN SINGLE ARROWS) ====================*/
.portfolio.section {
    padding-top: 3.5rem;
}

.portfolio__container {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 1.75rem;
    padding: 3rem 2rem 4.5rem;
    color: #f8fafc;
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.portfolio__header {
    margin-bottom: 2.5rem;
}

.portfolio__eyebrow {
    color: #a5b4fc !important;
}

.portfolio__title-main {
    color: #ffffff !important;
}

.portfolio__lead {
    color: #cbd5e1 !important;
}

.portfolio__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.portfolio__img-wrapper {
    overflow: hidden;
    border-radius: 1.25rem;
    aspect-ratio: 16/10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio__content:hover .portfolio__img {
    transform: scale(1.04);
}

.portfolio__data {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio__tag {
    display: inline-block;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-bold);
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    align-self: flex-start;
}

.portfolio__title {
    font-size: var(--h2-font-size);
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.portfolio__description {
    line-height: 1.8;
    color: #cbd5e1;
}

/* FIX DUPLICATE ARROW BUG: Suppress Swiper ::after font-icon content */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
    content: "" !important;
}

.portfolio__container .swiper-button-prev,
.portfolio__container .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.portfolio__container .swiper-button-prev:hover,
.portfolio__container .swiper-button-next:hover {
    background: #818cf8;
    color: #ffffff;
    border-color: #818cf8;
    transform: scale(1.08);
}

.portfolio__container .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
}

.portfolio__container .swiper-pagination-bullet-active {
    background: #818cf8;
    width: 22px;
}

@media screen and (min-width: 768px) {
    .portfolio__container {
        padding: 3.5rem 3.5rem 5rem;
    }
    
    .portfolio__content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/*==================== SERVICES ====================*/
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--first-color-lighter);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.service-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: var(--first-color-soft);
    color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid var(--first-color-lighter);
}

.service-card__icon {
    font-size: 1.6rem;
}

.service-card__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.6rem;
}

.service-card__lead {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card__details {
    margin-top: auto;
}

.service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    cursor: pointer;
    user-select: none;
    padding: 0.4rem 0;
}

.service-card__caret {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.service-card__details[open] .service-card__caret {
    transform: rotate(180deg);
}

.service-card__body {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

.service-card__list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-card__list li {
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.service-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--first-color);
    font-weight: bold;
}

/*==================== METHODOLOGY (PREMIUM PROCESS FLOW) ====================*/
.methodology__process {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
    position: relative;
}

@media screen and (min-width: 600px) {
    .methodology__process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 900px) {
    .methodology__process {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem;
    }
}

.methodology-step {
    background: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem 1.2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.methodology-step:hover {
    transform: translateY(-5px);
    border-color: var(--first-color);
}

.methodology-step__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.methodology-step__num {
    font-family: var(--title-font);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--first-color);
    opacity: 0.85;
}

.methodology-step__icon-box {
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    background: var(--first-color-soft);
    color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--first-color-lighter);
}

.methodology-step__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.methodology-step__desc {
    font-size: 0.88rem;
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.methodology-step__list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.methodology-step__list li {
    font-size: 0.82rem;
    font-weight: var(--font-medium);
    color: var(--text-color);
}

.methodology__brands {
    text-align: center;
    background: var(--container-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.methodology__brands-label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-medium);
}

.methodology__brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.methodology__brands-list span {
    background: var(--first-color-soft);
    color: var(--title-color);
    padding: 0.4rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.88rem;
    font-weight: var(--font-semi-bold);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.methodology__brands-list span:hover {
    background: var(--first-color);
    color: #ffffff;
    border-color: var(--first-color);
}

@media screen and (min-width: 768px) {
    .methodology__brands {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/*==================== CONTACT ====================*/
.contact__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact__card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--container-color);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.contact__icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 0.85rem;
    background: var(--first-color-soft);
    color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon {
    font-size: 1.5rem;
}

.contact__title {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-medium);
    margin-bottom: 0.15rem;
}

.contact__link,
.contact__text {
    font-size: 1rem;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.contact__link:hover {
    color: var(--first-color);
}

.contact__media {
    display: flex;
    justify-content: center;
}

.contact__img-wrapper {
    max-width: 400px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.contact__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: center;
    }
}

/*==================== FOOTER ====================*/
.footer {
    background: var(--container-color);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

.footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer__title-dot {
    color: var(--first-color);
}

.footer__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--first-color-soft);
    color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.footer__social:hover {
    background: var(--first-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer__copy {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

@media screen and (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }

    .footer__socials {
        justify-self: flex-end;
    }
}

/*==================== SCROLL UP ====================*/
.scrollup {
    position: fixed;
    right: 1.5rem;
    bottom: -20%;
    background: var(--first-color);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-tooltip);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transition: bottom 0.4s ease, transform 0.2s ease;
}

.scrollup:hover {
    transform: translateY(-4px);
    background: var(--first-color-alt);
}

.scrollup.show-scroll {
    bottom: 2rem;
}

.scrollup__icon {
    font-size: 1.4rem;
}

/*==================== CV PAGE & PASSWORD GATE ====================*/
.cv-page {
    display: none; /* hidden until authenticated */
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

body.cv-authenticated .cv-page {
    display: block;
}

body.cv-authenticated #cv-password-gate {
    display: none !important;
}

.cv-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cv-gate__card {
    background: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.cv-gate__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--first-color-soft);
    color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    border: 1px solid var(--first-color-lighter);
}

.cv-gate__title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cv-gate__subtitle {
    font-size: 0.92rem;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.cv-gate__form {
    margin-bottom: 1.5rem;
}

.cv-gate__input-group {
    display: flex;
    gap: 0.5rem;
}

.cv-gate__input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--body-color);
    color: var(--title-color);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cv-gate__input:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px var(--first-color-lighter);
}

.cv-gate__button {
    padding: 0.8rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-second));
    color: #ffffff;
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-gate__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.cv-gate__error {
    color: #ef4444;
    font-size: 0.88rem;
    margin-top: 0.85rem;
    font-weight: var(--font-medium);
}

.cv-gate__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
    transition: color 0.2s ease;
}

.cv-gate__back:hover {
    color: var(--first-color);
}

.cv-lock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    border: 1px solid var(--border-color);
    background: var(--container-color);
    color: var(--title-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-lock-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.cv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cv-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    text-decoration: none;
    transition: transform 0.2s ease;
    font-size: 0.95rem;
}

.cv-back:hover {
    transform: translateX(-4px);
}

.cv-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cv-lang-switch {
    display: inline-flex;
    background: var(--first-color-soft);
    border-radius: 0.75rem;
    padding: 0.25rem;
    gap: 0.25rem;
    border: 1px solid var(--border-color);
}

.cv-lang-btn {
    border: none;
    background: transparent;
    padding: 0.4rem 0.85rem;
    font: inherit;
    font-weight: var(--font-semi-bold);
    color: var(--text-color-light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.88rem;
}

.cv-lang-btn.active {
    background: var(--first-color);
    color: #ffffff;
}

.cv-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.6rem;
    border: 1px solid var(--border-color);
    background: var(--container-color);
    color: var(--title-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cv-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--first-color);
    color: #ffffff;
    border: none;
    border-radius: 0.6rem;
    font: inherit;
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    font-size: 0.88rem;
}

.cv-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--first-color);
}

.cv-name {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.cv-meta {
    color: var(--text-color-light);
    font-size: 0.98rem;
    line-height: 1.7;
}

.cv-meta a {
    color: var(--first-color);
    font-weight: var(--font-medium);
}

/* Structural clean section without artificial card boxes */
.cv-section {
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.cv-section-title {
    font-size: 1.1rem;
    font-weight: var(--font-bold);
    color: var(--first-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cv-role {
    margin-bottom: 2rem;
}

.cv-role:last-child {
    margin-bottom: 0;
}

.cv-role-title {
    font-size: 1.15rem;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    margin-bottom: 0.25rem;
}

.cv-role-place {
    color: var(--first-color);
    font-size: 0.88rem;
    font-weight: var(--font-semi-bold);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cv-role ul {
    margin: 0.6rem 0 0 1.25rem;
    padding: 0;
    list-style: disc;
}

.cv-role ul li {
    margin-bottom: 0.6rem;
    line-height: 1.75;
    font-size: 0.98rem;
    color: var(--text-color);
}

.cv-role ul li::marker {
    color: var(--first-color);
}

.cv-projects {
    background: var(--first-color-soft);
    padding: 1.25rem 1.5rem;
    border-radius: 0.85rem;
    margin-top: 1.25rem;
    border-left: 3px solid var(--first-color);
}

.cv-projects p {
    margin: 0.6rem 0;
    line-height: 1.75;
    font-size: 0.96rem;
    color: var(--text-color);
}

.cv-projects ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.cv-projects li {
    font-size: 0.94rem !important;
    line-height: 1.75;
    margin-bottom: 0.4rem;
}

.cv-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.cv-domain-list li {
    background: var(--first-color-soft);
    color: var(--title-color);
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    font-size: 0.88rem;
    font-weight: var(--font-medium);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.cv-domain-list li:hover {
    background: var(--first-color);
    color: #ffffff;
    border-color: var(--first-color);
}

@media print {
    .cv-topbar, .cv-back, .cv-actions, .cv-lang-switch, .cv-print-btn, .cv-theme-btn, .cv-lock-btn, .cv-gate {
        display: none !important;
    }
    .cv-page { display: block !important; padding-top: 0; max-width: 100%; }
    body { background: #ffffff !important; color: #000000 !important; }
    .cv-section-title { color: #000000 !important; border-bottom: 1px solid #000000 !important; }
    .cv-role-place { color: #444444 !important; }
    .cv-projects { background: #f5f5f5 !important; border-left-color: #333333 !important; }
}

@media screen and (max-width: 600px) {
    .cv-name { font-size: 2rem; }
    .cv-topbar { gap: 0.75rem; }
    .cv-actions { width: 100%; justify-content: space-between; }
}
