/* ==================================================
 * 
 * Copyright (c) 2026 Cris M Design
 *
 * https://crismdesign.com/
 *
================================================== */

/* ==================================================
   GENERAL
================================================== */

* {
    transition: none;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--surface-01);
    color: var(--surface-03);
}

.ss-preload .s-header,
.ss-preload .s-content {
    opacity: 0;
}

/* ==================================================
   GENERAL ROOT
================================================== */

:root {
    --surface-01: #FFFFFF;
    --surface-02: #FFFFFF1A;
    --surface-03: #000000;
    --surface-04: #0b0b0c;
    --surface-05: #00000008;
    --surface-06: #0000000F;
    --surface-07: #0000002E;
    --surface-08: #00000080;
    --surface-09: #111111;
    --surface-10: #888888;
    --surface-11: #555555;
    --surface-12: #D9D9D9;
    --modal-01: #FFFFFF;
    --modal-02: #111111;
    --modal-03: #555555;
    --modal-04: #000000BF;
    --modal-05: #0000000D;
    --modal-06: #0000001A;
    --width-01: 1200px;
    --transition-01: all 0.3s ease;
}

/* ==================================================
   CUSTOM CURSOR SYSTEM
================================================== */

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--surface-03);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: normal;
    will-change: transform, opacity;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--surface-03);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: normal;
    transition: transform 0.15s ease, opacity 0.2s ease;
    will-change: transform, opacity;
    opacity: 1;
}

body.cursor-hover .cursor-dot {
    width: 16px;
    height: 16px;
    opacity: 0.25;
}

body {
    cursor: none;
    --skills-border: rgba(0, 0, 0, 0.12);
}

/* ==================================================
   PRELOADER
================================================== */

#preloader {
    position: fixed;
    inset: 0;
    background: var(--surface-01);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

/* hidden state (replaces hideDiv) */
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* replaces preloadSpan animation */
#loader {
    --multiplier: 1;
    --space: calc(3.2rem * var(--multiplier));
    --vspace: calc(2.5 * var(--space));
    width: var(--vspace);
    height: var(--vspace);
    background: var(--surface-03);
    border-radius: 100%;
    animation: sk-scaleout 1s infinite ease-in-out;
}

/* pulse animation from old code */
@keyframes sk-scaleout {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ==================================================
   ANIMATIONS
================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   BASE
================================================== */

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    line-height: 1.8;
    overflow-x: hidden;
    background: var(--surface-01);
    color: var(--surface-09);
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 0.4s ease, color 0.4s ease;
}

section {
    padding-block: 12rem;
}

/* ==================================================
   TYPOGRAPHY
================================================== */

.text-huge-title {
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.2rem;
    margin-bottom: 3rem;
    max-width: 950px;
    margin-bottom: 3rem;
}

.h1 {
    font-size: clamp(2.4rem, 3vw, 4.8rem);
    line-height: 1.3;
    color: var(--surface-09);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(4rem, 8vw, 9rem);
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    color: var(--surface-01);
}

a {
    color: var(--surface-10);
    text-decoration: none;
    transition: var(--transition-01);
}

a:hover {
    opacity: 0.7;
}

/* ==================================================
   SCROLLBAR
================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-01);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-07);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-11);
}

/* ==================================================
   IMAGE
================================================== */

img {
    width: 100%;
    display: block;
}

/* ==================================================
   CONTAINERS
================================================== */

.row {
    width: 90%;
    max-width: var(--width-01);
    margin: auto;
}

.column {
    width: 100%;
}

/* ==================================================
    PAGE WRAP
================================================== */

.s-pagewrap {
    position: relative;
}

/* ==================================================
   DECORATIVE BACKGROUND (CIRCLES SYSTEM - LEFT CENTER)
================================================== */

.circles {
    position: absolute;
    top: 0;
    right: 0;
    width: 750px;
    height: 750px;
    transform: translateY(-50%);
    overflow: hidden;
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.circles span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    border: 1px solid var(--surface-03);
    border-radius: 50%;
    opacity: 0.12;
    transform: translate(-50%, -50%);
}

/* ==================================================
   CONCENTRIC RINGS
================================================== */

.circles span:nth-child(1) {
    width: 100%;
    height: 100%;
}

.circles span:nth-child(2) {
    width: 80%;
    height: 80%;
}

.circles span:nth-child(3) {
    width: 60%;
    height: 60%;
}

.circles span:nth-child(4) {
    width: 40%;
    height: 40%;
}

.circles span:nth-child(5) {
    width: 20%;
    height: 20%;
}

/* ==================================================
   OPTIONAL SMOOTHER TRANSITIONS
================================================== */
body,
.s-header,
a,
p,
h1,
h2,
h3 {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================================================
   HEADER
================================================== */

.s-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-07);
    background: var(--surface-01);
    z-index: 1000;
}

.main-nav-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4rem;
    list-style: none;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--surface-10);
    font-size: 1.4rem;
    letter-spacing: 0.15rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 1px;
    background: var(--surface-09);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current a::after {
    width: 100%;
}

.home-link {
    letter-spacing: 0.15rem;
    font-weight: 700;
}

.header-actions {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* ==================================================
   MOBILE
================================================== */

.header-mobile {
    display: none;
}

/* ==================================================
   INTRO SECTION
================================================== */

.s-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 16rem 0 10rem;
    position: relative;
    z-index: 1;
}

.intro-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.text-pretitle {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: var(--surface-11);
    margin-bottom: 2rem;
}

.intro-desc {
    margin-top: 2rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--surface-11);
    max-width: 650px;
    font-size: 2rem;
}

.intro-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4rem;
}

.intro-social-icons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.intro-social-icons li {
    position: relative;
}

.intro-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.intro-social-icons a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.intro-social-icons img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* ==================================================
   THEME TOGGLE BUTTON
================================================== */

.theme-toggle-wrapper {
    position: static;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--surface-07);
    background: var(--surface-05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-01);
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle__icon {
    font-size: 18px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==================================================
   LIGHT MODE DEFAULT
================================================== */
.theme-toggle__sun {
    opacity: 1;
}

.theme-toggle__moon {
    opacity: 0;
}

/* ==================================================
   LIGHT / DARK MODE TOGGLE
================================================== */

.theme-toggle-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3000;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--surface-07);
    cursor: pointer;
    background: var(--surface-01);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-01);
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle__icon {
    font-size: 18px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle__sun {
    opacity: 1;
}

.theme-toggle__moon {
    opacity: 0;
}

/* ==================================================
   SECTION (ID)
================================================== */

#about {
    padding-top: 14rem;
}

#works {
    padding-top: 12rem;
}

#features {
    padding-top: 8rem;
}

#contact {
    padding-top: 12rem;
}


/* ==================================================
   ABOUT
================================================== */

.about-info__pic-block,
.about-info__text,
.about-info__text .btn {
    opacity: 0;
    transform: translate3d(0, 55px, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition:
        opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-info__pic-block {
    transition-delay: 0s;
}

.about-info__text {
    transition-delay: 0.18s;
}

.about-info__text .btn {
    transition-delay: 0.26s;
}

.about-visible .about-info__pic-block,
.about-visible .about-info__text,
.about-visible .about-info__text .btn {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.about-info__text .btn {
    transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        color 0.3s ease;
}

.s-about {
    will-change: transform;
}

.s-about .about-info {
    margin-bottom: 8rem;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-info__pic {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: block;
    border-radius: 100%;
    overflow: hidden;
    box-shadow:
        0 10px 40px var(--surface-08);
}

.about-info__text p {
    color: var(--surface-03);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.about-info__pic-block {
    position: relative;
}

.about-info__text {
    position: relative;
}

.about-info .btn {
    margin-top: 3rem;
    color: var(--surface-10);
    border: 1px solid var(--surface-07);
}

.attention-getter {
    font-size: 1.8rem;
    line-height: 1.9;
    font-weight: 300;
    color: var(--surface-01);
}

/* ==================================================
   EXPERTISE
================================================== */

.s-about .about-expertise {
    margin-top: 4rem;
}

/* ==================================================
   EXPERTISE / FEATURES
================================================== */

/* base hidden state */
.animate-expertise .text-pretitle,
.animate-expertise p.h1,
.animate-expertise .skills-list li {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition:
        opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

/* visible state */
.animate-expertise.is-visible .text-pretitle,
.animate-expertise.is-visible p.h1,
.animate-expertise.is-visible .skills-list li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* stagger */
.animate-expertise .text-pretitle {
    transition-delay: 0s;
}

.animate-expertise p.h1 {
    transition-delay: 0.15s;
}

.animate-expertise .skills-list li:nth-child(1) {
    transition-delay: 0.20s;
}

.animate-expertise .skills-list li:nth-child(2) {
    transition-delay: 0.25s;
}

.animate-expertise .skills-list li:nth-child(3) {
    transition-delay: 0.30s;
}

.animate-expertise .skills-list li:nth-child(4) {
    transition-delay: 0.35s;
}

.animate-expertise .skills-list li:nth-child(5) {
    transition-delay: 0.40s;
}

.animate-expertise .skills-list li:nth-child(6) {
    transition-delay: 0.45s;
}

/* ==================================================
   BUTTONS
================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--surface-01);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 1.2rem;
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 5rem;
    backdrop-filter: blur(5px);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--surface-05);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover {
    background: var(--surface-01);
    color: var(--surface-03);
}


.btn:hover::before {
    transform: translateY(0%);
}

/* ==================================================
   SKILLS BASE
================================================== */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    list-style: none;
    padding: 0;
}

.skills-list li {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    border-radius: 5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--surface-05);
    backdrop-filter: blur(5px);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.skills-list li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--surface-02);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.skills-list li::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--skills-border, rgba(0, 0, 0, 0.12));
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.skills-list li>* {
    position: relative;
    z-index: 1;
}

.skills-list li img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: brightness(0);
}

.skills-list li:hover {
    transform: translate3d(0, -5px, 0);
}

.skills-list li:hover::after {
    border-color: var(--surface-09);
}

.skills-list li:hover::before {
    opacity: 1;
}

/* -------------------------------
   HOVER STATE
-------------------------------- */
.skills-list li:hover {
    transform: translate3d(0, -5px, 0);
    border-color: var(--surface-09);
}

.skills-list li:hover::before {
    opacity: 1;
}

/* ==================================================
   WORKS
================================================== */

.folio-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    list-style: none;
    margin-top: 6rem;
}

.folio-list__item {
    position: relative;
    overflow: hidden;
}

.folio-list__item-pic {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--surface-05);
}

.folio-list__item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.folio-list__item:hover img {
    transform: scale(1.05);
}

.folio-list__item-text {
    margin-top: 2rem;
    padding-top: 2rem;
}

.folio-list__item-cat {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #888888;
    margin-bottom: 1rem;
}

.folio-list__item-title {
    font-size: 2.4rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.folio-list__item {
    position: relative;
}

.folio-list__item-link {
    display: block;
    transition: var(--transition-01);
}

.folio-list__item-pic {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--surface-05);
    transition: var(--transition-01);
}

.folio-list__item-pic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            var(--surface-12),
            transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.folio-list__item:hover .folio-list__item-pic::after {
    opacity: 1;
}

.folio-list__item:hover .folio-list__item-title {
    opacity: 0.7;
}

/* ==================================================
   WORKS
================================================== */

.s-works .text-pretitle,
.s-works .h1,
.s-works .folio-list__item {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition:
        opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.works-visible .text-pretitle,
.works-visible .h1,
.works-visible .folio-list__item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.works-visible .text-pretitle {
    transition-delay: 0s;
}

.works-visible .h1 {
    transition-delay: 0.12s;
}

.works-visible .folio-list__item:nth-child(1) {
    transition-delay: 0.18s;
}

.works-visible .folio-list__item:nth-child(2) {
    transition-delay: 0.26s;
}

.works-visible .folio-list__item:nth-child(3) {
    transition-delay: 0.34s;
}

.works-visible .folio-list__item:nth-child(4) {
    transition-delay: 0.42s;
}

/* ==================================================
   MODAL
================================================== */

#modal-01,
#modal-02,
#modal-03,
#modal-04 {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--modal-04);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
}

#modal-01.modal-is-visible,
#modal-02.modal-is-visible,
#modal-03.modal-is-visible,
#modal-04.modal-is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-popup {
    position: relative;
    width: 100%;
    max-width: 650px;
    background: var(--modal-01);
    border-radius: 1rem;
    padding: 6rem;
    box-shadow: 0 20px 60px var(--surface-08);
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-is-visible .modal-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--modal-05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    font-size: 0;
    z-index: 10;
    will-change: transform;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.18);
}

.modal-close:active {
    transform: scale(0.96);
}

.modal-close:focus-visible {
    outline: 2px solid var(--surface-09);
    outline-offset: 3px;
}

.modal-close img {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.modal-popup>img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    display: block;
    margin: 0 auto 3rem;
    border-radius: 0.5rem;
    background: #DADADA;
}

.modal-popup__desc h5 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.modal-popup__desc p {
    color: var(--modal-03);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-popup__cat {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-popup__cat li {
    background: var(--modal-05);
    border: 1px solid var(--modal-06);
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    flex: 0 1 calc(50% - 0.5rem);
    text-align: center;
}

/* ==================================================
   CONTACT
================================================== */

.s-contact {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.s-contact.contact-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-top {
    margin-bottom: 8rem;
}

.contact-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.contact-social {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    margin: 0 0 0 -10px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.contact-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-social a:hover img {
    transform: translateY(-3px);
    opacity: 0.8;
}

.contact-social a:focus-visible {
    outline: 2px solid var(--surface-09);
    outline-offset: 3px;
}

.contact-btn {
    height: 60px;
    color: var(--surface-10);
    background: var(--surface-05);
    border: 1px solid var(--surface-07);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* ==================================================
   FOOTER
================================================== */

.s-footer {
    position: relative;
    padding: 5rem 0;
}

.s-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 0.5px;
    background: var(--surface-07);
}

.ss-go-top a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--surface-07);
    border-radius: 50%;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    color: var(--surface-11);
    font-size: 2rem;
}

.ss-go-top a:hover {
    background: var(--surface-01);
    color: var(--surface-03);
    transform: translateY(-5px);
}

.ss-copyright {
    text-align: center;
    color: #777777;
    font-size: 1.3rem;
    padding-top: 2rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ss-go-top {
    margin-top: 2rem;
    text-align: center;
}

/* ==================================================
   DARK THEME STYLES
================================================== */

body.dark-theme {
    --modal-01: var(--surface-09);
    --modal-02: var(--surface-01);
    --modal-03: #bfbfbf;
    --modal-04: rgba(0, 0, 0, 0.75);
    --modal-05: rgba(255, 255, 255, 0.08);
    --modal-06: rgba(255, 255, 255, 0.15);
    --skills-border: rgba(255, 255, 255, 0.12);
}

body.dark-theme {
    background-color: var(--surface-04);
    color: #f5f5f5;
}

body.dark-theme .circles span {
    border: 1px solid var(--surface-01);
}

body.dark-theme #preloader {
    background: var(--surface-03);
}

body.dark-theme #loader {
    background: var(--surface-01);
}

body.dark-theme .cursor-ring {
    border: 1px solid var(--surface-01);
}

body.dark-theme .cursor-dot {
    background: var(--surface-01);
}

body.dark-theme .s-header {
    background-color: var(--surface-08);
}

body.dark-theme a {
    color: var(--surface-01);
}

body.dark-theme a::after {
    background: var(--surface-01);
}

body.dark-theme .main-nav a {
    color: var(--surface-01);
}

body.dark-theme .text-pretitle,
body.dark-theme .h1,
body.dark-theme .text-huge-title {
    color: var(--surface-01);
}

body.dark-theme .theme-toggle {
    background: var(--surface-05);
    border: 1px solid var(--surface-07);
    box-shadow: 0 0 0 1px var(--surface-06);
}

body.dark-theme .theme-toggle__sun {
    opacity: 0;
}

body.dark-theme .theme-toggle__moon {
    opacity: 1;
    color: var(--surface-09);
}

body.dark-theme .theme-toggle {
    background: var(--surface-08);
    border: 1px solid var(--surface-02);
}

body.dark-theme .theme-toggle__sun {
    opacity: 0;
}

body.dark-theme .theme-toggle__moon {
    opacity: 1;
    color: var(--surface-01);
}

body.dark-theme .icon-behance {
    content: url("../img/social/dark/behance-icon-logo.png");
}

body.dark-theme .icon-linkedin {
    content: url("../img/social/dark/linkedin-icon-logo.png");
}

body.dark-theme .icon-pinterest {
    content: url("../img/social/dark/pinterest-icon-logo.png");
}

body.dark-theme .about-info__text p {
    color: var(--surface-01);
}

body.dark-theme .about-info .btn {
    border: 1px solid var(--surface-02);
}

body.dark-theme .skills-list li img {
    filter: brightness(0) invert(1);
}

body.dark-theme .skills-list li::after {
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-theme .folio-list__item-pic::after {
    background: linear-gradient(to top,
            var(--surface-08),
            transparent);
}

body.dark-theme .modal-close {
    background: var(--modal-06);
}

body.dark-theme .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

body.dark-theme .btn::before {
    background: var(--surface-01);
}

body.dark-theme .contact-btn {
    border: 1px solid var(--surface-02);
}

body.dark-theme .ss-go-top a {
    border: 1px solid var(--surface-02);
}

body.dark-theme .s-footer {
    margin: 0 5rem;
    border-top: 1px solid var(--surface-02);
}

/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 1200px) {
    .intro-content {
        gap: 4rem;
    }
}

/* ================================
   PAGE READY ANIMATION SYSTEM
================================ */

@media screen and (min-width: 901px) {

    .main-nav li {
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: opacity, transform;
    }

    .page-ready .main-nav li {
        opacity: 1;
        transform: translateY(0);
    }

    .page-ready .main-nav li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .page-ready .main-nav li:nth-child(2) {
        transition-delay: 0.10s;
    }

    .page-ready .main-nav li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .page-ready .main-nav li:nth-child(4) {
        transition-delay: 0.20s;
    }

    .page-ready .main-nav li:nth-child(5) {
        transition-delay: 0.25s;
    }
}

@media screen and (max-width: 900px) {

    .intro-content,
    .about-info,
    .contact-bottom,
    .folio-list {
        grid-template-columns: 1fr;
    }

    .intro-content {
        flex-direction: column;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 6rem 3rem;
        gap: 3rem;
        background: var(--surface-01);
        border-left: 1px solid var(--surface-07);
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 9999;
    }

    .main-nav li {
        opacity: 0;
        transform: translateX(20px);
    }

    .s-header.menu-is-open .main-nav {
        transform: translateX(0);
    }

    .s-header.menu-is-open .main-nav li {
        opacity: 1;
        transform: translateX(0);
    }

    .s-header.menu-is-open .main-nav li:nth-child(1) {
        transition-delay: 0.10s;
    }

    .s-header.menu-is-open .main-nav li:nth-child(2) {
        transition-delay: 0.18s;
    }

    .s-header.menu-is-open .main-nav li:nth-child(3) {
        transition-delay: 0.26s;
    }

    .s-header.menu-is-open .main-nav li:nth-child(4) {
        transition-delay: 0.34s;
    }

    .s-header.menu-is-open .main-nav li:nth-child(5) {
        transition-delay: 0.42s;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .main-nav a {
        color: var(--surface-09);
    }

    .main-nav-wrap {
        display: block;
        width: 100%;
    }

    .header-mobile {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 90%;
        margin: auto;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .mobile-menu-toggle {
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 10000;
    }

    .bar {
        width: 30px;
        height: 2px;
        position: relative;
        transition: var(--transition-01);
    }

    .bar::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("../img/gfx/gfx_mobile-menu-bar.png") center/contain no-repeat;
    }

    .mobile-menu-toggle.is-clicked .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-clicked .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-clicked .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.dark-theme .main-nav {
        background: var(--surface-04);
        border-left: 1px solid var(--surface-02);
    }

    .text-huge-title {
        font-size: 5rem;
    }

    .theme-toggle-wrapper {
        top: unset;
        bottom: 0;
    }

    .intro-desc {
        font-size: 1.8rem;
    }

    .s-header {
        padding: 2rem 0;
    }

    .intro-content {
        align-items: flex-start;
    }

    .intro-social-icons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }

    .about-info {
        gap: 5rem;
    }

    .folio-list {
        gap: 3rem;
    }

}

@media screen and (max-width: 900px) and (min-width: 601px) {

    .about-info__pic {
        max-width: 320px;
    }

    .folio-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

}

@media screen and (max-width: 700px) {
    .text-huge-title {
        font-size: 4.5rem;
        letter-spacing: -0.1rem;
    }

    .intro-desc {
        font-size: 1.7rem;
    }

    .attention-getter {
        font-size: 1.6rem;
    }

    .folio-list {
        grid-template-columns: 1fr;
    }

    .modal-popup {
        padding: 5rem;
        max-width: 95%;
        max-height: 85vh;
    }

    .modal-close {
        width: 38px;
        height: 38px;
        top: 1rem;
        right: 1rem;
    }

    .modal-close img {
        width: 16px;
        height: 16px;
    }

    .modal-popup>img {
        max-height: 220px;
    }

    .modal-popup__desc h5 {
        font-size: 2rem;
    }

    .modal-popup__desc p {
        font-size: 1.4rem;
    }

    .contact-bottom {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    html {
        font-size: 56%;
    }

    .s-intro,
    .s-about,
    .s-works,
    .s-contact {
        padding: 10rem 0;
    }

    .skills-list {
        gap: 1.5rem;
    }

    .skills-list li {
        width: 100%;
        justify-content: flex-start;
        padding: 1.2rem 1.5rem;
        font-size: 1.3rem;
        text-align: center;
    }

    .skills-list li img {
        width: 26px;
        height: 26px;
    }

    .modal-popup__cat li {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media screen and (max-width: 500px) {

    .s-intro {
        padding-top: 14rem;
    }

    .text-huge-title {
        font-size: 3.8rem;
    }

    .skills-list li {
        font-size: 1.3rem;
        padding: 1.2rem 1.6rem;
    }

    .btn {
        width: 100%;
    }
}

/* --------------------------------------------- */
/* DISABLE CUSTOM CURSOR ON TOUCH DEVICES */
/* --------------------------------------------- */

@media (hover: none) and (pointer: coarse) {

    .cursor-ring,
    .cursor-dot {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

/* ==================================================
   ACCESSIBILITY (REDUCED MOTION)
================================================== */

@media (prefers-reduced-motion: reduce) {

    #modal-01,
    #modal-02,
    #modal-03,
    #modal-04,
    .modal-popup {
        transition: none !important;
        transform: none !important;
    }
}

/* ==================================================
   BASE HIDDEN STATE SUPPORT
================================================== */

[hidden] {
    display: none !important;
}