:root {
    --cf-accent: #f9004d;
    --cf-ink: #1f1f25;
    --cf-body: #717173;
    --cf-line: rgba(31, 31, 37, 0.14);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    text-rendering: optimizeLegibility;
}

.page-wrapper {
    overflow-x: hidden;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 16px;
    background: #ffffff;
    color: var(--cf-ink);
    font-size: 14px;
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--cf-accent);
    outline-offset: 4px;
}

/* Header refinement */
.header-area.header--sticky {
    transition: background 180ms ease, box-shadow 180ms ease;
}

.header-area.header--sticky .header-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

.header-area.header--sticky .header-wrapper .logo a img {
    width: auto;
    max-height: 78px;
}

.header-area.header--sticky .mainmenunav ul.mainmenu > li > a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.header-area.header--sticky.sticky {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.header-area.header--sticky.sticky .header-wrapper .logo a img {
    height: 54px;
    padding: 7px 0;
}

/* Hero refinement — original background, color, and composition */
.personal-portfolio-slider {
    min-height: 760px;
    isolation: isolate;
}

.personal-portfolio-slider::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18, 18, 22, 0.32), rgba(18, 18, 22, 0.06));
    content: "";
}

.slide.slider-style-3 .inner {
    max-width: 1020px;
}

.slide.slider-style-3 .inner > span {
    margin-bottom: 22px;
    color: rgba(229, 231, 239, 0.82) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.slide.slider-style-3 .inner h1.title {
    width: 100%;
    max-width: 940px;
    margin-bottom: 14px;
    font-size: clamp(64px, 7.2vw, 104px);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.slide.slider-style-3.dark-slider .inner h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.hero-subtitle {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(229, 231, 239, 0.85);
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.55;
}

.slide-btn .rn-button-style--2 {
    min-width: 156px;
    text-align: center;
}

.slide-btn .btn_border,
.resume-actions .btn_border {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.slide-btn .btn_border:hover {
    border-color: var(--cf-accent);
    color: #ffffff;
}

/* Section typography */
.rn-section-gap {
    padding-top: 130px;
    padding-bottom: 130px;
}

.section-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--cf-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-title h2.title {
    letter-spacing: -0.035em;
}

.section-title.service-style--3 > p,
.section-title.section-title--3 > p {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}

/* About */
.about-photo {
    position: relative;
}

.about-photo::after {
    position: absolute;
    right: -18px;
    bottom: -18px;
    z-index: -1;
    width: 72%;
    height: 72%;
    border-right: 2px solid var(--cf-accent);
    border-bottom: 2px solid var(--cf-accent);
    content: "";
}

.about-photo img,
.contact-image img {
    border-radius: 3px;
    box-shadow: 0 24px 64px rgba(20, 20, 24, 0.15);
}

.about-inner .section-title p.description {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.75;
}

.craft-note {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 24px;
    max-width: 760px;
    margin-top: 32px;
    padding: 22px 0;
    border-top: 1px solid var(--cf-line);
    border-bottom: 1px solid var(--cf-line);
}

.craft-note strong {
    color: var(--cf-ink);
    font-size: 16px;
}

.craft-note span {
    color: var(--cf-body);
    font-size: 15px;
    line-height: 1.65;
}

.skills-craft-note {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

/* Skills */
.tab-wrapper {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

ul.nav.tab-style--1 {
    justify-content: center;
}

ul.nav.tab-style--1 li a {
    font-weight: 600;
}

.single-tab-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.single-tab-content ul li {
    padding: 17px 0;
    border-bottom: 1px solid var(--cf-line);
    color: var(--cf-body);
    line-height: 1.7;
}

.single-tab-content ul li:last-child {
    border-bottom: 0;
}

.single-tab-content ul li a {
    display: block;
    margin-bottom: 5px;
    color: var(--cf-ink);
    font-size: 17px;
    font-weight: 600;
    pointer-events: none;
}

/* Résumé — a flat editorial panel, not a floating card */
.resume-card {
    padding: 12px 0 12px 46px;
    border-left: 3px solid var(--cf-accent);
}

.resume-card h3 {
    margin-bottom: 24px;
    color: var(--cf-ink);
    font-size: 31px;
    line-height: 1.25;
}

.resume-card ul {
    margin: 0;
    padding: 0;
    color: var(--cf-body);
    list-style: none;
}

.resume-card li {
    padding: 13px 0;
    border-top: 1px solid var(--cf-line);
    line-height: 1.65;
}

.resume-card li:last-child {
    border-bottom: 1px solid var(--cf-line);
}

.resume-card strong {
    color: var(--cf-ink);
}

.resume-actions .btn_border {
    border-color: rgba(31, 31, 37, 0.35);
    color: var(--cf-ink);
}

.resume-actions .btn_border:hover {
    border-color: var(--cf-accent);
    color: #ffffff;
}

/* Contact */
.contact-line a {
    color: var(--cf-accent);
}

.contact-form--1 input,
.contact-form--1 textarea {
    border: 1px solid rgba(31, 31, 37, 0.18);
    border-radius: 2px;
    background: transparent;
}

.contact-form--1 textarea {
    min-height: 150px;
    padding-top: 12px;
    line-height: 1.5;
}

.contact-image {
    position: sticky;
    top: 125px;
}

/* Theme-aware refinements */
.active-dark .craft-note,
.active-dark-mode .craft-note,
.active-dark .single-tab-content ul li,
.active-dark-mode .single-tab-content ul li,
.active-dark .resume-card li,
.active-dark-mode .resume-card li {
    border-color: rgba(255, 255, 255, 0.14);
}

.active-dark .craft-note strong,
.active-dark-mode .craft-note strong,
.active-dark .single-tab-content ul li a,
.active-dark-mode .single-tab-content ul li a,
.active-dark .resume-card h3,
.active-dark-mode .resume-card h3,
.active-dark .resume-card strong,
.active-dark-mode .resume-card strong {
    color: #ffffff;
}

.active-dark .craft-note span,
.active-dark-mode .craft-note span,
.active-dark .single-tab-content ul li,
.active-dark-mode .single-tab-content ul li,
.active-dark .resume-card ul,
.active-dark-mode .resume-card ul {
    color: rgba(198, 201, 216, 0.76);
}

.active-dark .resume-actions .btn_border,
.active-dark-mode .resume-actions .btn_border {
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.active-dark .contact-form--1 input,
.active-dark .contact-form--1 textarea,
.active-dark-mode .contact-form--1 input,
.active-dark-mode .contact-form--1 textarea {
    border-color: rgba(255, 255, 255, 0.18);
}

@media only screen and (max-width: 991px) {
    .rn-section-gap {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .header-area.header--sticky .header-wrapper .logo a img {
        max-height: 60px;
    }

    .personal-portfolio-slider {
        min-height: auto;
    }

    .contact-image {
        position: static;
    }
}

@media only screen and (max-width: 767px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-area.header--sticky {
        padding-right: 20px;
        padding-left: 20px;
    }

    .header-area.header--sticky .header-wrapper {
        padding: 10px 0;
    }

    .slide.personal-portfolio-slider.slider-style-3 {
        padding: 118px 0 92px;
    }

    .slide.slider-style-3 .inner {
        max-width: 100%;
        padding-top: 30px;
    }

    .slide.slider-style-3 .inner > span {
        display: block;
        max-width: 310px;
        white-space: normal;
        font-size: 11px;
        letter-spacing: 0.22em;
        line-height: 1.7;
    }

    .slide.slider-style-3 .inner h1.title {
        width: 100%;
        font-size: clamp(42px, 13vw, 58px) !important;
        letter-spacing: -0.045em;
        line-height: 1.02 !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    .slide.slider-style-3 .inner h1.title span {
        display: block;
    }

    .slide.slider-style-3.dark-slider .inner h2 {
        font-size: clamp(30px, 9.5vw, 42px) !important;
        line-height: 1.15 !important;
    }

    .hero-subtitle {
        max-width: 510px;
        font-size: 17px;
    }

    .slide-btn .rn-button-style--2 {
        margin-bottom: 12px;
    }

    .slide-btn .ml--15,
    .resume-actions .ml--15 {
        margin-left: 0 !important;
    }

    .about-photo::after {
        right: -10px;
        bottom: -10px;
    }

    .craft-note {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section-title.service-style--3 p,
    .section-title.section-title--3 p {
        width: 100% !important;
        max-width: 100% !important;
    }

    ul.nav.tab-style--1 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 20px;
        width: 100%;
        margin: 0;
    }

    ul.nav.tab-style--1 li {
        margin: 0;
    }

    ul.nav.tab-style--1 li a {
        font-size: 16px;
    }

    .single-tab-content {
        padding-top: 12px;
    }

    .resume-card {
        padding: 8px 0 8px 24px;
    }

    .resume-card h3 {
        font-size: 26px;
    }

    .my_switcher {
        display: none;
    }
}

@media only screen and (max-width: 420px) {
    .slide.slider-style-3 .inner h1.title {
        font-size: 40px !important;
    }

    .slide.slider-style-3.dark-slider .inner h2 {
        font-size: 29px !important;
    }

    ul.nav.tab-style--1 {
        grid-template-columns: 1fr;
    }
}

