@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@font-face {
  font-family: "Odetta"; 
  src: url("./assets/fonts/Odetta.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
    --neutral-0: #ffffff;
    --neutral-950: #000000;
    --blue-100: #dae2ff;
    --blue-200: #8384FF;
    --blue-500: #4647c2;
    --blue-900: #2a2e48;
    --emerald-400: #66c3ba;
    --red-500: #d73328;

    --ff-primary: "Nunito Sans", sans-serif;
    --ff-accent: "Archivo Black", serif;
    --ff-page-title: "Odetta", cursive;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6.4rem;
}

body {
    font-family: var(--ff-primary);
    font-size: 1.6rem;
    background-color: var(--neutral-0);
    color: var(--blue-900);
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

button {
    font-family: var(--ff-primary);
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

picture {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.content,
.header-content,
.footer-content {
    width: 88vw;
    max-width: 108rem;
    margin-inline: auto;
}

.header-content {
    position: relative;
}

.btn-primary {
    background-color: var(--blue-900);
    color: var(--neutral-0);
    display: inline-block;
    padding: 1rem 3.2rem;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: .5rem;
}

.btn-primary:hover {
    background-color: var(--blue-500);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--blue-900);
    color: var(--blue-900);
    padding: 1rem 3.2rem;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: .5rem;
}

.btn-outline:hover {
    background-color: var(--blue-900);
    color: var(--neutral-0);
}

.lead-text {
    font-size: 1.6rem;
    line-height: 150%;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 100%;
    text-align: center;
    position: relative;
    width: fit-content;
    margin-inline: auto;
    z-index: 0;
    margin-bottom: 3.2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom:0;
    left: 0;
    width: 115%;
    height: 1rem;
    transform: translate(-5%, -45%);
    background-color: var(--emerald-400);
    z-index: -1;
}

/* PAGE HEADER */
.page-header {
    padding-block: 1.6rem;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 30;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* .page-header.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
} */

.abstract-circle-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 11.5rem;
    height: 11.5rem;
    border-radius: 100vmax;
    background-color: var(--blue-100);
    z-index: -1;
    transform: translate(77%, -60%);
}

.logo-menuIcon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.open-menu-btn {
    background-color: transparent;
    border: none;
}

.page-navigation {
    position: absolute;
    top: -0.5rem;
    width: 100%;
    background-color: var(--neutral-0);
    border-radius: 1rem;
    padding-block: 6.4rem 3.2rem;
    padding-inline: 1.6rem;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, .2);
    z-index: 20;
    display: none;
}

.page-navigation.open {
    display: block;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: transparent;
    border: none;
    z-index: 10;
}

.nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.8rem;
}

.nav-link {
    color: var(--blue-900);
    text-align: center;
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.contact-btn {
    margin-top: 4.8rem;
    background-color: var(--blue-900);
    color: var(--neutral-0);
    padding: 1rem 3.2rem;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: .5rem;
    font-size: 2rem;
    display: block;
    width: fit-content;
    margin-inline: auto;
}

.contact-btn:hover {
    background-color: var(--blue-500);
}

/* HERO SECTION */
.hero-section {
    padding-block: 4.8rem;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 3.2rem;
}

.hero-content {
    order: 1;
    text-align: center;
}

.subtitle {
    font-weight: 300;
    line-height: 120%;
    margin-bottom: .5rem;
}

.page-title {
    line-height: 150%;
    font-size: 4.2rem;
    /* font-weight: 900; */
    margin-block: 1.6rem;
    font-family: var(--ff-page-title);
}

.page-title span {
    color: var(--blue-500);
}

.hero-btns-wrapper {
    margin-top: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-img-wrapper {
    width: 100%;
    max-width: 40rem;
    justify-self: center;
}

.hero-img-wrapper img {
    width: 100%;
}

/* ABOUT ME SECTION */
.about-section {
    padding-block: 4.8rem 8.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-grid {
    margin-top: 4.8rem;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2.4rem;
}

.num {
    font-family: var(--ff-accent);
    font-size: 3.2rem;
    color: var(--blue-500);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 0;
}

.num:after {
    content: attr(data-num);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(20%);
    color: transparent;
    -webkit-text-stroke: 1px var(--blue-100);
    z-index: -1;
}

.feature-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.abstract-circle-about {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 11.5rem;
    height: 11.5rem;
    border-radius: 100vmax;
    background-color: var(--blue-100);
    transform: translate(-50%, 50%);
    z-index: -1;
}

/* MY SERVICES */
.my-services {
    padding-block: 4.8rem;
    text-align: center;
}

.my-services-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: 15rem 15rem;
    grid-auto-rows: 15rem;
    column-gap: 1.2rem;
    row-gap: 1.2rem;
    margin-top: 2.4rem;
}

.my-services-grid > div {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 1.6rem;
}

.my-services-grid > div > p {
    font-weight: 700;
    text-align: left;
}

.logo-indentita {
    grid-column: 1/-1;
    grid-row: 1/ span 2;
    background-image: url("./assets/backgrounds/Logo-Identita-Bg.png");
}

.tlacoviny {
    background-image: url("./assets/backgrounds/tlačoviny-BG.png");
    grid-column: 1/-1;
}

.frontend-web {
    background-image: url("./assets/backgrounds/FrontEnd-Web-Bg.png");
    grid-column: 1/2;
}

.ux-ui {
    background-image: url("./assets/backgrounds/UX-UI-Bg.png");
    grid-column: 2/-1;
}

.grafika-social-siete {
    background-image: url("./assets/backgrounds/socialne-siete-bg.png");
    grid-column: 1/-1;
}

.tvorba-na-mieru {
    background-image: url("./assets/backgrounds/Individualna-Tvorba-Bg.png");
    grid-column: 1/-1;
}

.logo-indentita p,
.tlacoviny p,
.grafika-social-siete p {
    color: var(--neutral-0);
    justify-self: start;
    align-self: end;
}

.frontend-web p,
.tvorba-na-mieru p {
    color: var(--blue-900);
    justify-self: start;
    align-self: end;
}

.ux-ui p {
    justify-self: end;
    align-self: end;
    color: var(--blue-900);
}

/* PORTFOLIO SECTION */
.portfolio-section {
    padding-block: 4.8rem;
}

.frontend-portfolio-wrapper {
    margin-top: 3.2rem;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue-500);
    margin-bottom: 2.4rem;
}

.frontend-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 4.8rem;
}

.single-frontend-project:first-child {
    transition-delay: 100ms;
}

.project-img {
    width: 100%;
    aspect-ratio: 1.5/1;
    object-fit: cover;
    margin-bottom: 1rem;
}

.project-title {
    font-weight: 800;
    text-transform: uppercase;
}

.tags {
   color: var(--blue-500);
   font-weight: 600;
   text-transform: uppercase;
}

.links-container {
    display: flex;
    align-items: center;
    gap: 3.6rem;
    margin-top: 1rem;
}

.project-link {
    text-transform: uppercase;
    color: var(--blue-900);
    border-bottom: 2px solid var(--emerald-400);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 150%;
}

.graphic-design-portfolio {
    margin-top: 6.4rem;
}

.graphic-designs-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    row-gap: 3rem;
}

.shape-square { aspect-ratio: 1/1;}
.shape-wide {  aspect-ratio: 2/1;}
.shape-tall { aspect-ratio: 1/2;}
.shape-extra-wide {  aspect-ratio: 3/1;}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pre-animation {
    opacity: 0;
    translate: -100%;
    transition: 800ms ease-in;
    transition-delay: 300ms;
}

.moved-in {
    opacity: 1;
    translate: 0;
}

@media (prefers-reduced-motion: reduce) {
    .pre-animation {
        opacity: 1;
        translate: 0;
        transition: none;
    }
}

.load-more-btn {
    display: block;
    background-color: var(--blue-900);
    color: var(--neutral-0);
    padding: 1rem 3.2rem;
    letter-spacing: 1px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: .5rem;
    margin-inline: auto;
    margin-top: 4rem;
}

.load-more-btn:hover {
    background-color: var(--blue-500);
}

/* CONTACT SECTION */
.contact-section {
    padding-block: 4.8rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2.4rem;
}

.form-input,
textarea {
    font-family: var(--ff-primary);
    font-weight: 500;
    color: var(--blue-900);
    width: 100%;
    padding: 1.6rem;
    border: none;
    border-bottom: 1px solid var(--blue-900);
}

textarea {
    resize: none;
}

::placeholder {
    color: var(--blue-500);
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
}

.err-msg {
    color: var(--red-500);
    font-style: italic;
    font-weight: 700;
    font-size: 1.2rem;
    padding-left: 1.6rem;
}

.form-input.error {
    border-color: var(--red-500);
    color: var(--red-500);
}

.oblast-prac {
    margin-top: 3.2rem;
    border: none;
}

.oblast-prac legend {
    font-size: 2rem;
    font-weight: 500;
    color: var(--blue-900);
    margin-bottom: 2rem;
}

.checkbox-form-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-form-input-wrapper:not(:last-child) {
    margin-bottom: 1.2rem;
}

.checkbox-form-input-wrapper label {
    color: var(--blue-900);
}

.checkbox-input {
    appearance: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 4px;
    border: 1px solid var(--blue-900);
    background-color: var(--neutral-0);
    box-shadow: 1px 1px 0 0 var(--blue-900);
    position: relative;
}

.checkbox-input::after {
    content: "✔";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 1rem;
    color: var(--neutral-0);
    transform: scale(0);
    transition: all 150ms linear;
}

.checkbox-input:checked {
    background-color: var(--blue-900);
}

.checkbox-input:checked::after {
    transform: scale(1);
    transition: all 200ms linear;
}

.submit-btn {
    margin-top: 2rem;
    padding: 1.25rem 3.2rem;
    font-size: 1.8rem;
}

.submit-btn:disabled {
    background-color: var(--blue-100);
}

.contact-form-img {
    display: none;
}

/* FOOTER */
.page-footer {
    background-color: var(--blue-900);
    padding-block: 2.4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    width: 14rem;
}

.legal-text {
    color: var(--blue-100);
    font-size: 1.4rem;
    font-weight: 300;
}

.social-links-wrapper {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.social-link:hover svg path {
    fill: var(--emerald-400);
}

.popup-msg {
    position: fixed;
    width: 42rem;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    background-color: var(--neutral-0);
    padding: 5.6rem;
    text-align: center;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    border-radius: .5rem;
    border-bottom: 0.75rem solid transparent;
    display: none;
    opacity: 0;
    visibility: hidden;
    z-index: 40;
    transition: all 500ms ease-in;
}

.msg-title {
    font-size: 3.6rem;
    margin-bottom: .65rem;
}

span.material-icons-outlined {
    font-size: 4rem;
}

.popup-msg.show {
    display: initial;
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease-in;
}

.popup-msg.show.error {
    border-color: var(--red-500);
}

.popup-msg.show.success {
    border-color: var(--emerald-400);
}


.material-icons-outlined.success-icon { 
    display: none; 
}

.material-icons-outlined.error-icon {
    display: none;
}

.popup-msg.success .material-icons-outlined.success-icon {
    display: initial;
}

.popup-msg.error .material-icons-outlined.error-icon {
    display: initial;
}

@media screen and (min-width: 50rem) {
     html  {
        scroll-padding-top: 7.7rem;
    }

    .abstract-circle-header {
        left: clamp(8rem, 5vw, 45%);
        top: -7%;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }

    .open-menu-btn {
        display: none;
    }

    .page-navigation {
        position: static;
        top: initial;
        width: initial;
        background-color: transparent;
        border-radius: 0;
        padding-block: 0 0;
        padding-inline: 0;
        box-shadow: none;
        z-index: initial;
        display: flex;
        justify-content: space-between;
    }

    .close-menu-btn {
        display: none;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        gap: 4rem;
    }

    .nav-link {
        font-size: 1.8rem;
    }

    .contact-btn {
        margin-top: 0;
        font-size: 1.8rem;
        margin-inline: initial;
    }

    .lead-text {
        max-width: 64ch;
        margin-inline: auto;
    }

    .my-services-grid {
        margin-top: 4.8rem;
        justify-content:  center;
        grid-template-columns: repeat(4, 15rem);
        grid-auto-rows: calc(15rem + 3px);
        column-gap: 1.2rem;
        row-gap: 1.2rem;
    }

    .logo-indentita {
        grid-column: 1/3;
        grid-row: 1/ span 2;
    }

    .tlacoviny {
        grid-column: 3/-1;
        grid-row: 1/1;
    }

    .frontend-web {
        grid-column: 3/4;
        grid-row: 2/2;
    }

    .ux-ui {
        grid-column: 4/-1;
        grid-row: 2/2;
    }

    .grafika-social-siete {
        grid-column: 1/3;
    }

    .tvorba-na-mieru {
        grid-column: 3/-1;
    }

    .frontend-projects-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 3.2rem;
    }

    .graphic-designs-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
        column-gap: 0rem;
        row-gap: 0rem;
    }

    .portfolio-img {
        padding: 1rem;
    }
    .shape-square { grid-column: span 1; grid-row: span 1; aspect-ratio: 1/1;}
    .shape-wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1;}
    .shape-tall { grid-column: span 1; grid-row: span 2; aspect-ratio: 1/2;}
    .shape-extra-wide { grid-column: span 3; grid-row: span 1; aspect-ratio: 3/1;}
}

@media screen and (min-width: 67.5rem) {
     .page-navigation {
        justify-content: space-between;
    }

    .nav-list {
        gap: 8rem;
    }

    .hero-section {
        padding-block: 6.4rem;
    }

    .hero-content-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 5.2rem;
        row-gap: 0;
        align-items: center;
    }

    .hero-content {
        order: 0;
        text-align: left;
    }

    .page-title {
        font-size: 6.4rem;
    }

    .hero-lead-text {
        max-width: 41ch;
        margin-inline: 0;
    }

    .hero-btns-wrapper {
        margin-top: 3.2rem;
        justify-content: start;
        gap: 2rem;
    }

    .hero-img-wrapper {
        max-width: initial;
    }

    .section-title {
        font-size: 3.6rem;
        line-height: 105%;
        text-align: center;
        margin-bottom: 4.2rem;
    }

    .about-section {
        padding-block: 6.4rem 12rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2.4rem;
        row-gap: 0;
    }

    .feature-title {
        margin-bottom: 1rem;
    }

    .my-services-grid {
        grid-template-columns: repeat(6, 15rem);
        grid-auto-rows: calc(15rem + 0px);
        column-gap: 1.2rem;
        row-gap: 1.2rem;
    }

    .logo-indentita {
        grid-column: 1/3;
        grid-row: 1/ span 2;
    }

    .tlacoviny {
        grid-column: 3/5;
        grid-row: 1/1;
    }

    .frontend-web {
        grid-column: 3/4;
        grid-row: 2/2;
    }

    .ux-ui {
        grid-column: 4/5;
        grid-row: 2/2;
    }

    .grafika-social-siete {
        grid-column: 5/-1;
        grid-row: 1/1;
    }

    .tvorba-na-mieru {
        grid-column: 5/-1;
        grid-row: 2/2;
    }

    .portfolio-title {
        font-size: 2.4rem;
        margin-bottom: 3.2rem;
    }

    
    .project-title  {
        font-size: 1.8rem;
    }

    .contact-section {
        padding-block: 4.8rem 12rem;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr 1fr;
        row-gap: 2.4rem;
        column-gap: 4.8rem;
    }

    .oblast-prac,
    .email-wrapper,
    .message-wrapper {
        grid-column: 1/-1;
    }

    .oblast-prac {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .contact-form-img {
        display: block;
        justify-self: end;
    }

    .submit-btn {
        grid-column: 1/-1;
        align-self: end;
        margin-top: 0;
    }

    .page-footer {
        padding-block: 3.6rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    .shape-square { background: white; aspect-ratio: 1/1;}
    .shape-wide { background: white; aspect-ratio: 2/1;}
    .shape-tall { background: white; aspect-ratio: 1/2;}
    .shape-extra-wide { background: white; aspect-ratio: 3/1;}
}

@media screen and (min-width: 90rem) {
   .abstract-circle-header {
        left: clamp(8rem, 25vw, 45%);
        top: -7%;
    }
}