/* Variables */
:root {
    /* Colors */
    --neutral-white: #FFFFFF;
    --background-light: #F4F4F4;
    --primary-color: #060606;
    --secondary-color: #828181;

    --primary-green-light: #B7EE48;
    --primary-green: #A1E716;
    --primary-green-dark: #4E7500;

    --accent-cyan-light: #2E9A9A;
    --accent-cyan: #0E9595;
    --accent-cyan-dark: #004B4B;

    --link: #0000FF;
    --link-hover: #0000BD;
    --link-dark: #0071E3;

    /* Fonts */
    --font-primary: 'Poppins', serif;
    --font-secondary: 'Montserrat', serif;

    /* Font size */
    --fs-xs: 12px;
    --fs-sm: 16px;
    --fs-md: 18px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-2xl: 32px;
    --fs-3xl: 40px;
    --fs-4xl: 56px;
    @media (max-width: 1200px) {
        --fs-md: 16px;
        --fs-lg: 18px;
        --fs-xl: 20px;
        --fs-4xl: 48px;
    }
    @media (max-width: 768px) {
        --fs-2xl: 24px;
        --fs-3xl: 32px;
        --fs-4xl: 40px;
    }
    @media (max-width: 576px) {
        --fs-3xl: 28px;
        --fs-4xl: 36px;
    }

    /* Line height */
    --lh-text: 1.4;
    --lh-headings: 1.2;

    /* Font weight */
    --fw-regular: 400; 
    --fw-medium: 500; 
    --fw-semibold: 600; 
    --fw-bold: 700;

    /* Font style */
    --fst-normal: normal; 
    --fst-italic: italic;

    /* Spacing */
    --sp-4: 4px;
    --sp-8: 8px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-32: 32px;
    --sp-48: 48px;
    --sp-56: 56px;
    --sp-64: 64px;
    --sp-72: 72px;
    --sp-80: 80px;
    --sp-88: 88px;
    --sp-96: 96px;
    @media (max-width: 992px) {
        --sp-96: 72px;
    }
    @media (max-width: 768px) {
        --sp-48: 40px;
        --sp-96: 56px;
    }

    /* Background figures */
    --circle: 150px;
    --line: 200px;
    @media (max-width: 992px) {
        --circle: 140px;
        --line: 150px;
    }
    @media (max-width: 768px) {
        --circle: 120px;
        --line: 120px;
    }

    /* Gradients */
    --gradient-primary: linear-gradient(180deg, var(--accent-cyan-light) 0%, var(--accent-cyan) 100%);
    --gradient-primary-hover: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-cyan-dark) 100%);

    --gradient-cv-button: linear-gradient(180deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    --gradient-cv-button-hover: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);

    --gradient-photo: linear-gradient(0deg, var(--primary-green-light) 0.09%, var(--accent-cyan-light) 99.91%);

    --gradient-green: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    --gradient-cyan: linear-gradient(90deg, var(--accent-cyan-light) 0%, var(--accent-cyan-dark) 100%);

    --gradient-grey: linear-gradient(180deg, var(--background-light) 0%, var(--background-light) 30%, var(--neutral-white) 100%);


/* Main styles */
body {
    font-family: var(--font-primary);
    background-color: var(--gradient-grey);
    color: var(--secondary-color);
    line-height: var(--lh-text);
    font-family: var(--font-secondary);
    font-size: var(--fs-lg);
    font-style: var(--fst-normal);
    font-weight: var(--fw-regular);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--primary-color);
    line-height: var(--lh-headings);
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    text-transform: capitalize;
}


h1 {
    margin-bottom: 0;
    font-size: var(--fs-4xl);
}
h2 {
    margin-bottom: 0;
    font-size: var(--fs-3xl);
}
h3 {
    margin-bottom: 0;
    font-size: var(--fs-2xl);
}
h4 {
    margin-bottom: 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
}
h5 {
    margin-bottom: 0;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}

p {
    margin-bottom: var(--sp-16);
}
p:last-of-type {
    margin-bottom: 0;
}

.container {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 1140px;
    padding: 0 15px;
}

@media (max-width: 992px) {
    .container {
        width: 100%;
        max-width: 960px;
    }
}
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 720px;
    }
}
@media (max-width: 576px) {
    .container {
        width: 100%;
        max-width: 540px;
    }
}

.fs-xs {
    font-size: var(--fs-xs);
}
.fs-sm {
    font-size: var(--fs-sm);
}
.fs-md {
    font-size: var(--fs-md);
}
.fs-lg {
    font-size: var(--fs-lg);
}
.fs-xl {
    font-size: var(--fs-xl);
}
.fs-2xl {
    font-size: var(--fs-2xl);
}
.fs-3xl {
    font-size: var(--fs-3xl);
}

.italic {
    font-style: var(--fst-italic);
}
.medium {
    font-weight: var(--fw-medium);
}
.bold {
    font-weight: var(--fw-bold);
}

.uppercase {
    text-transform: uppercase;
}
.underline {
    text-decoration: underline;
}

a {
    text-decoration: none;
    color: var(--link);
    transition: all .5s ease;
}
a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.night-mode a {
    text-decoration: none;
    color: var(--link-dark);
    transition: all .5s ease;
}
.night-mode a:hover {
    text-decoration: underline;
    color: var(--link-dark);
}

.primary__button {
    display: flex;
    padding: var(--sp-16) var(--sp-24);
    justify-content: center;
    align-items: center;
    width: fit-content;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--neutral-white);
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-transform: capitalize;
    transition: all .5s ease;
}
.primary__button:hover {    
    background: var(--gradient-primary-hover);
    color: var(--neutral-white);
    text-decoration: none;
    transform: scale(1.05);
}

.night-mode .primary__button {
    color: var(--neutral-white);
}
.night-mode .primary__button:hover {
    color: var(--neutral-white);
    text-decoration: none;
}

.link {
    font-weight: var(--fw-bold);
    font-size: var(--fs-xl);
}

.cv__button {
    display: flex;
    padding: var(--sp-16) var(--sp-24);
    justify-content: center;
    align-items: center;
    width: fit-content;
    border-radius: 12px;
    background: var(--gradient-cv-button);
    color: var(--primary-color);
    text-align: center;
    font-family: var(--font-secondary);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    transition: all .5s ease;
}
.cv__button:hover {    
    background: var(--gradient-cv-button-hover);
    color: var(--primary-color);
    text-decoration: none;
    transform: scale(1.05);
}

.night-mode .cv__button {
    color: var(--primary-color);
}
.night-mode .cv__button:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.img-responsive {
    width: 100%;
    max-width: 100%;
}

.heading h4 {
    margin-bottom: var(--sp-8);
}

.main {
    position: relative;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Background elements */
.bg-line, .bg-circle {
    transition: transform 0.2s ease;
}

.bg-circle {
    position: absolute;
    background-color: var(--primary-green-light);
    width: var(--circle);
    height: var(--circle);
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(16px);
    z-index: -1;
}

.bg-circle.circle-work {
    left: inherit; 
    right: -32px; 
    bottom: inherit; 
    top: -40px;
}
.bg-circle.circle-personal {
    right: inherit; 
    left: -4px; 
    bottom: inherit; 
    top: -48px;
}
.bg-circle.circle-services {
    right: inherit; 
    left: 32px; 
    bottom: inherit; 
    top: -32px;
}
.bg-circle.circle-skills {
    right: inherit; 
    left: -40px; 
    bottom: inherit; 
    top: -56px;
}

.bg-line {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--secondary-color);
    width: 2px;
    height: var(--line);
    opacity: 0.2;
    z-index: -1;
}
.bg-line.middle {
    height: calc(var(--line)*1.5);
}
.bg-line.big {
    height: calc(var(--line)*2);
}

.heading {
    width: fit-content;
    position: relative;
    animation: fadeIn 1s ease-in-out;
}

.heading {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.heading.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 110px;
    padding: 0 var(--sp-32);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease-in-out;
}

.header__night-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    height: 30px;
    gap: var(--sp-4);
    transition: background-color 0.3s ease;
}
.header__night-mode #moon-icon.active {
    padding-left: 3px;
}

.header__logo {
    width: 310px;
    max-width: 100%;
    transition: width .5s ease;
}

.header__menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--sp-24);
}
.header__nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    gap: var(--sp-24);
}

.header__night-mode .icon {
    transition: opacity 0.3s ease;
}
.header__night-mode .sun-bg {
    fill: var(--primary-color);
}
.header__night-mode .moon-bg {
    fill: var(--secondary-color);
}
.header__night-mode .moon-text {
    stroke: var(--secondary-color);
}
.switcher {
    position: relative;
    width: 50px;
    height: 30px;
    background-color: var(--secondary-color);
    border-radius: 15px;
}

.switcher__toggle {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: var(--neutral-white);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, .5);
    transition: transform 0.3s ease;
}
.header__night-mode.night-mode .switcher__toggle {
    transform: translateX(24px);
}

.header.scrolled {
    padding: var(--sp-16) var(--sp-32);
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    background-color: var(--neutral-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}
.header.scrolled .header__logo {
    width: 240px;
}

.header__nav li {
    padding: 0 var(--sp-4);
    font-size: var(--fs-lg);
}

.header__nav--link {
    color: var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.header__nav--link:hover,
.header__nav--link.active {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Humburger. Mobile Menu */
.header__hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    width: 24px;
}
.header__hamburger .hamburger__line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.header__hamburger.active .hamburger__line:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 7px;
}

.header__hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active .hamburger__line:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -7px;
}

.header__nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 110px;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1001;
    padding: var(--sp-24) var(--sp-32);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--sp-16) var(--sp-16);
}
.header.scrolled .header__nav.active {
    top: 58px;
}
.header__nav.active ul {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-24);
}

/* Intro Section */
.header.scrolled + .main .intro {
    margin-top: 110px;
}
.intro {
    padding: var(--sp-96) 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-in-out;
}
.intro__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.intro__text {
    width: 560px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-24);
}

.intro__photo {
    position: relative;
    display: flex; 
    justify-content: flex-end;
    align-items: center;
}
.intro__photo img {
    width: 470px;
    max-width: 100%;
}

.intro__text {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease, transform 1s ease;
}
.intro__photo {
    opacity: 0;
    transform: translateX(100%); 
    transition: opacity 1s ease, transform 1s ease;
}

.intro.active .intro__text {
    opacity: 1;
    transform: translateX(0); 
}
.intro.active .intro__photo {
    opacity: 1;
    transform: translateX(0); 
}

.intro .heading {
    opacity: 1;
    transform: none; 
}

/* Portfolio Section */
.portfolio {
    padding: 0 0 var(--sp-96) 0;
}
.portfolio .heading,
.skills .heading,
.clients .heading {
    margin-bottom: var(--sp-48);
}

.portfolio__item {
    margin-bottom: var(--sp-32);
    padding: 0 var(--sp-32);
    height: 560px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: var(--primary-color);
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease, transform 1s ease;
}
.portfolio__item.active {
    opacity: 1;
    transform: translateY(0);
}
.portfolio__item h3 {
    margin-bottom: 0;
}
.portfolio__item.item-1 {
    background: linear-gradient(90deg, #8BC24A 0%, #4F8411 100%);
}
.portfolio__item.item-2 {
    background: linear-gradient(270deg, #A626A1 0%, #750270 100%);
}
.portfolio__item.item-3 {
    background: linear-gradient(90deg, #DDA53F 0%, #986509 100%);
}
.portfolio__item.item-4 {
    background: #2E2E30;
}
.portfolio__item.item-5 {
    background: #404042;
}
.portfolio__item.even {
    justify-content: space-between;
}
.portfolio__item.even .portfolio__item--image {
    order: 2;
}

.portfolio__item--image {
    width: 640px;
    max-width: 100%;
}
.portfolio__item--image img {
    width: 640px;
    max-width: 100%;
    height: auto;
}

.portfolio__item--heading h4 {
    margin-bottom: var(--sp-4);
    color: var(--neutral-white);
}
.portfolio__item--heading h3 {
    color: var(--neutral-white);
}

.portfolio__item--description {
    padding-left: 35px;
    width: 355px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}
.portfolio__item--description p {
    color: var(--background-light);
    font-size: var(--fs-lg);
}

.portfolio__item--tags {
    margin-bottom: var(--sp-32);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-16);
}
.portfolio__item--tags div {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.08);
    font-size: var(--fs-sm);
    color: var(--neutral-white);
}

.portfolio__button {
    width: fit-content;
    display: flex;
    padding: var(--sp-16) var(--sp-24);
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.00);
    background: rgba(255, 255, 255, 0.35);
    color: var(--neutral-white);
    text-align: center;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    text-transform: capitalize;
    transition: all 0.3s ease;
}
.portfolio__button:hover {
    background-color: var(--primary-color);
    text-decoration: none;
    color: var(--neutral-white);
    transform: scale(1.05);
}

.night-mode .portfolio__button {
    color: var(--neutral-white);
}
.night-mode .portfolio__button:hover {
    color: var(--neutral-white);
    text-decoration: none;
}

.portfolio__links {
    padding-top: var(--sp-16);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-24);
}

.portfolio__links {
    opacity: 0; 
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
.portfolio__links.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    padding-bottom: var(--sp-56);
}
.services .heading {
    padding-top: var(--sp-24);
}

.services__inner {
    display: flex;
    gap: var(--sp-64);
}

.services__items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.services__item h3 {
    margin-bottom: 0;
}
.services__item {
    padding: var(--sp-32) var(--sp-16);
    width: 420px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}

.services__items {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
.services__items.active {
    opacity: 1;
    transform: translateY(0);
}

.services__item {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.services__item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Section */
.skills {
    padding: var(--sp-48) 0 var(--sp-16);
}
.skills__inner {
    display: flex;
    flex-direction: column;
}

h3 {
    margin-bottom: var(--sp-32);
}

.skills__block {
    margin-bottom: var(--sp-32);
}

.skills__item--inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.skills__item {
    margin-bottom: var(--sp-24);
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.skill__heading {
    font-size: var(--fs-md);
    color: var(--secondary-color);
    order: 2;
}

/* Progress Bar for Skills */
.skills__level {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 184px;
    height: var(--sp-8);
    background-color: var(--background-light);
    border-radius: 16px;
}

.skill-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--sp-8);
    width: 0%;
    background: var(--gradient-green);
    border-radius: 16px;
    transition: width 2s ease-in-out;
}
.development .skill-bar {
    background: var(--gradient-cyan);
}

.skill-percent {
    position: absolute;
    right: -48px;
    color: var(--secondary-color);
    font-size: var(--fs-md);
    line-height: var(--lh-headings);
    opacity: 0;
    transform: translateX(10px); 
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.skills__block .skills__item[data-skill-level] .skill-bar {
    width: 0%;
}
.skills__level.animated .skill-bar {
    transition: width 2s ease-in-out;
}
.skills__level.animated .skill-percent {
    opacity: 1;
    transform: translateX(0);
}

/* Clients */
.clients {
    padding: var(--sp-24) 0 var(--sp-96);
}

.clients__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.client {
    width: 240px;
    height: 96px;
    background-color: var(--background-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client img {
    width: auto;
}

.clients__list {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
.clients__list.active {
    opacity: 1;
    transform: translateY(0);
}

.client {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.client.active {
    opacity: 1;
    transform: translateY(0);
}

/* Recommendations */
.recommendations {
    position: relative;
    padding: 0 0 var(--sp-32);
}
.recommendations .heading {
    margin-bottom: var(--sp-32);
}
.recommendations p {
    margin-bottom: 0;
}

.recommendations__item {
    margin-bottom: var(--sp-16);
    padding: var(--sp-24);
    display: flex;
    gap: var(--sp-16);
}
.recommendations__item--heading {
    color: var(--primary-color);
}

.recommendations__item--img {
    display: flex;
    width: 96px;
    height: 96px;
}
.recommendations__item--img img {
    border-radius: 50%;
}

.recommendations__item--content {
    width: calc(100% - 96px - var(--sp-16));
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
}
.recommendations__item--heading {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.recommendations__item {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease, transform 0.8s ease; 
}
.recommendations__item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact */
.contact {
    padding: var(--sp-48) 0 var(--sp-24);
}
.contact .heading {
    margin-bottom: 0;
}
.contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact, .footer {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact.active, .footer.active {
    opacity: 1;
    transform: translateY(0);
}

.contact .heading {
    opacity: 1;
    transform: none;
}

/* Footer */
.footer__inner {
    padding: var(--sp-24) 0 var(--sp-48);
    border-top: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer__copyright ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    font-size: var(--fs-md);
    color: var(--primary-color);
}
.footer__copyright ul li {
    padding: 0 var(--sp-8);
    border-right: 1px solid var(--primary-color);
}
.footer__copyright ul li:first-of-type {
    padding-left: 0;
}
.footer__copyright ul li:last-of-type {
    border-right: 0;
    padding-right: 0
}
.footer__copyright ul a {
    color: var(--primary-color);    
    font-size: var(--fs-md);
    transition: all .5s ease;
}
.footer__copyright ul a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

.footer__socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-16);
}
.footer__socials ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-16);
}
.footer__socials p {
    color: var(--primary-color);
}
.footer__socials ul li a img {
    transition: all .5s ease;
}
.footer__socials ul li a:hover img {
    transform: scale(1.15);
}

/* ========= Night Mode ============== */

/* Night Mode Body */
body.night-mode {
    background: var(--primary-color);
    color: var(--background-light);
}

.night-mode h1,
.night-mode h2,
.night-mode h3,
.night-mode h4,
.night-mode h5 {
    color: var(--neutral-white);
}

/* Night Mode Header */
.night-mode .header.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.16);
}
.night-mode .logo-name {
    fill: var(--neutral-white);
}

.night-mode .header__nav--link {
    color: var(--neutral-white);
}

.night-mode .header__nav--link:hover {
    color: var(--secondary-color);
}

.night-mode .header__night-mode .sun-bg {
    fill: var(--background-light);
    opacity: 0.5;
}
.night-mode .header__night-mode .moon-bg,
.night-mode .header__night-mode .active .moon-bg {
    fill: var(--neutral-white);
}
.night-mode .header__night-mode .moon-text,
.night-mode .header__night-mode .active .moon-text {
    stroke: var(--neutral-white);
}
.night-mode .header__hamburger .hamburger__line {
    width: 100%;
    height: 3px;
    background-color: var(--neutral-white);
    border-radius: 4px;
}

/* Night Mode Reccomendations */
.night-mode .recommendations {
    padding-top: 0;
    background: var(--primary-color);
}
.night-mode .recommendations__item--heading p {
    color: var(--neutral-white);
}

/* Night Mode Footer */
.night-mode .footer__inner {
    border-top: 1px solid var(--neutral-white);
}
.night-mode .footer__copyright ul,
.night-mode .footer__copyright ul a,
.night-mode .footer__socials p {
    color: var(--neutral-white);
}
.night-mode .footer__copyright ul li {
    border-right: 1px solid var(--neutral-white);
}
.night-mode .footer__copyright ul li:last-of-type {
    border-right: 0
}
.night-mode .footer__socials ul li a:hover img {
    transform: scale(1.25);
}

/* Responsive */
@media (max-width: 1200px) {
    .bg-line {
        display: none;
    }
    .bg-circle.circle-personal {
        left: 2px;
    }
    .bg-circle.circle-services {
        left: 54px;
    }
    .bg-circle.circle-skills {
        left: -3px;
    }
    .header__logo {
        width: 220px;
    }
    .header.scrolled {
        padding: var(--sp-16);
    }
    .header.scrolled .header__logo {
        width: 200px;
    }
    .header__nav ul {
        gap: var(--sp-16);
    }
    .portfolio__item {
        height: auto;
    }
    .services__items {
        flex-direction: column;
    }
    .services__item {
        padding-bottom: var(--sp-16);
        width: 100%;
    }
    .clients__list {
        gap: var(--sp-16);
    }
    .client {
        padding: var(--sp-16);
        width: auto;
    }
}
@media (max-width: 992px) {
    .bg-circle.circle-work,
    .bg-circle.circle-personal,
    .bg-circle.circle-services,
    .bg-circle.circle-skills {
        left: -15px;
        top: -25px;
    }
    .bg-circle.circle-services {
        left: -15px;
        top: -65px;
    }
    .header {
        padding: var(--sp-16);
        height: auto;
    }
    .header__nav.active {
        display: flex; 
    }
    .header__menu {
        gap: var(--sp-16);
    }
    .header__hamburger {
        display: flex;
        order: 2;
    }
    .header__nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%; 
        position: absolute;
        top: 62px;
        right: 0;
        background-color: var(--neutral-white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: var(--sp-16) 0;
        z-index: 1001;
        border-radius: 16px;
        transition: all 5s ease-in-out;
    }
    .header__nav.active {
        top: 62px;
    }
    .header__nav.active li {
        padding: 0;
    }
    .header__nav.active li a {
        color: var(--primary-color);
    }
    .header__nav.active li a:hover {
        color: var(--secondary-color);
    }
    .night-mode .header__nav.active {
        background: rgba(6, 6, 6, .95);
    }
    .night-mode .header__nav.active li a {
        color: var(--background-light);
    }
    .night-mode .header__nav.active li .cv__button {
        color: var(--primary-color);
    }
    .intro__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: var(--sp-24);
    }
    .intro__text {
        order: 2;
        width: 100%;
    }
    .intro__photo {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    .portfolio__item {
        padding-bottom: var(--sp-48);
        flex-direction: column;
    }
    .portfolio__item.item-1 {
        background: linear-gradient(180deg, #8BC24A 0%, #4F8411 100%);
    }
    .portfolio__item.item-2 {
        background: linear-gradient(180deg, #A626A1 0%, #750270 100%);
    }
    .portfolio__item.item-3 {
        background: linear-gradient(180deg, #DDA53F 0%, #986509 100%);
    }
    .portfolio__item--image {
        margin-bottom: var(--sp-32);
        width: 100%;
        order: 1;
    }
    .portfolio__item--image img {
        margin: 0 auto;
        display: block;
    }
    .portfolio__item--description {
        padding: 0;
        width: 100%;
        max-width: 100%;
        order: 2;
    }
    .portfolio__item--tags {
        margin-bottom: var(--sp-16);
    }
    .services {
        padding-bottom: var(--sp-24);
    }
    .services .heading {
        padding-top: 0;
    }
    .services__inner {
        flex-direction: column;
        gap: var(--sp-48);
    }
    .services__item {
        margin-bottom: var(--sp-32);
        padding: 0;
    }
    .skills__item--inner {
        justify-content: space-between;
    }
    .skills__item {
        width: 50%;
    }
    .skills__level {
        width: 80%;
    }
}
@media (max-width: 768px) {
    .intro__text, .intro__photo {
        transform: translateX(0); 
    }
    .portfolio__item {
        padding: 0 var(--sp-16) var(--sp-24);
    }
    .skills__item {
        width: 90%;
    }
    .skills__level {
        width: 90%;
    }
    .clients__list {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: var(--sp-24);
    }
    .recommendations {
        padding-bottom: 0;
    }
    .recommendations .heading {
        margin-bottom: var(--sp-48);
    }
    .recommendations__item {
        padding: 0;
    }
    .contact__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-24);
    }
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-24);
    }
}
@media (max-width: 576px) {
    .header .header__logo {
        width: 220px;
    }
    .header.scrolled .header__logo {
        width: 200px;
    }
    .portfolio__links {
        flex-direction: column;
        align-items: center;
    }
    .client {
        width: 200px;
    }
    .recommendations__item {
        margin-bottom: var(--sp-48);
        flex-direction: column;
    }
    .recommendations__item--content {
        width: 100%;
    }
}
@media (max-width: 460px) {
    .header .header__logo {
        width: 180px;
    }
    .header.scrolled .header__logo {
        width: 180px;
    }
    .header__nav .header__night-mode {
        display: flex;
        gap: var(--sp-16);
        align-items: center;
        justify-content: center;
    }
    .header__nav .cv__button {
        margin-bottom: var(--sp-16);
    }
    .switcher {
        width: 36px;
        height: 24px;
    }
    .icon {
        width: 20px;
    }
    .switcher__toggle {
        width: 24px;
        height: 24px;
    }
    .header__night-mode.night-mode .switcher__toggle {
        transform: translateX(15px);
    }
    .footer__copyright ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-8);
    }
    .footer__copyright ul li {
        padding: 0;
        border-right: 0;
    }
    .footer__socials {
        padding-top: var(--sp-16);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-8);
        border-top: 1px solid var(--primary-color);
    }
    .night-mode .footer__socials {
        border-top: 1px solid var(--neutral-white);           
    }
    .night-mode .footer__copyright ul li {
        border-right: 0;
    }
    .night-mode .footer__copyright ul li:last-of-type {
        border-right: 0;
    }
}

@media (max-width: 390px) {
    .header .header__logo {
        width: 140px;
    }
    .header.scrolled .header__logo {
        width: 140px;
    }
}

/* =============================== */

/* Legal Notice & Privacy Policy */
.legal .header.scrolled + .main .legal__content {
    margin-top: 110px;
}

.legal__content {
    padding: var(--sp-96) 0;
}

.legal h1 {
    margin-bottom: var(--sp-48);
}

.legal h3 {
    margin: var(--sp-32) 0 var(--sp-8);
}

.legal p strong {
    color: var(--primary-color);
}

.legal.night-mode p strong {
    color: var(--neutral-white);
}

.legal main ul {
    padding-left: 32px;
}
.legal main ul li {
    margin-bottom: 8px;
}

.legal .footer {
    opacity: 1;
    transform: none;
}
.legal .intro {
    padding: 0;
}

/* =============================== */

/* Error Page 404 */
.error .header.scrolled + .main .error-section {
    margin-top: 110px;
}
.error {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.error-section {
    padding: var(--sp-96) 0;
    text-align: center;
}

.error .main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.error-section__inner {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--sp-48);
}

.error h3 {
    margin: var(--sp-32) 0 var(--sp-8);
}

.error .footer {
    opacity: 1;
    transform: none;
}