/* ------------ Crédit ------------ *//*

 Project:   Portfolio Grafmi
 Version:   6.0
 Author:    Grafmi
 Website:   https://grafmi.com/

/* ------------ Fonts ------------ */
@font-face {
    font-family: 'MOREKS-Demo';
    font-style: normal;
    font-weight: normal;
    src: 
        url('./font/MOREKS-Demo.otf') format('opentype'),
        url('./font/MOREKS-Demo.otf') format("opentype") tech(color-COLRv1),
}

@font-face {
    font-family: 'Moon 2.0 Regular';
    font-style: normal;
    font-weight: normal;
    src: 
        url('./font/Moon2.0-Regular.otf') format('opentype'),
        url('./font/Moon2.0-Regular.otf') format("opentype") tech(color-COLRv1),
}
    
@font-face {
    font-family: 'Moon 2.0 Bold';
    font-style: normal;
    font-weight: normal;
    src:
        url('./font/Moon2.0-Bold.otf') format('opentype'),
        url('./font/Moon2.0-Bold.otf') format("opentype") tech(color-COLRv1);
}
@font-face {
    font-family: 'Moon 2.0 Light';
    font-style: normal;
    font-weight: normal;
    src: 
        url('./font/Moon2.0-Light.otf') format('opentype'),
        url('./font/Moon2.0-Light.otf') format("opentype") tech(color-COLRv1);
}

/* ------------ Website Theme ------------ */
:root {
    /* HSL color mode */
    --first-color: (210, 96%, 54%);
    --first-color-light: (210, 96%, 69%);
    --first-color-alt: (210, 96%, 37%);
    --first-color-lighter: (210, 14%, 96%);
    --title-color: (210, 12%, 15%);
    --text-color: (210, 12%, 35%);
    --text-color-light: (210, 12%, 65%);
    --main-color-1: #966BFF;
    --section-padding: 4rem;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-color {
    color: var(--main-color-1);
}

body {
    --main-color-2: #DBAD00;
    --main-color-dark-2: #c59a00;
    --bg-color: #e3e3e3;
    --bg-color-1: #ede5ff;
    --bg-color-2: #fff;
    --bg-color-3: #cccccc;
    --bg-color-4: #fff;
    --bg-color-5: #a68ee3;
    --bg-color-transparent: rgba(255, 255, 255, 0.8);
    --heading-color: #121212;
    --shadow-color: #00000010;
    --text-color: #222729;
    --modale:  rgba(255, 255, 255, 0.85);    
    --modale-dark:  rgba(255, 255, 255, 0.50);
    --green: rgb(174 243 31);
    --orange: #F28135;
    --background-nav: rgba(0, 0, 0, 0.05);
    --border: #3a393c4d;
    --box-shadow: rgba(0, 0, 0, 0.10);

}

body.dark {
    --bg-color: #171717;
    --bg-color-1: #2A2A2A;
    --bg-color-2: #000000;
    --bg-color-3: #2A2A2A;
    --bg-color-4: rgba(23, 21, 30, 0.8);
    --bg-color-5: #6424FF;
    --bg-color-transparent: 257 23%, 19%, 0.6;
    --heading-color: #ffffff;
    --shadow-color: #ffffff14;
    --text-color: #ebeadf;
    --modale:  rgba(0, 0, 0, 0.85);
    --modale-dark:  rgba(0, 0, 0, 0.50);
    --border: #8f8e954d;
    --background-nav: rgba(255, 255, 255, 0.05);
    --box-shadow: rgba(255, 255, 255, 0.10);
}

/* ------------ Reusable CSS Code ------------ */
.sub-heading {
    font-family: 'Moon 2.0 Light';
    display: flex;
    align-items: self-start;
    margin-bottom: 1.5rem;
}

.box-heading {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.box-heading h3 {
    padding-inline: 1rem;
    border: solid 2px var(--main-color-1);
    background-color: rgba(150, 107, 255, 0.5);
    backdrop-filter: blur(15px);
    color: var(--heading-color);
    border-radius: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}


.sub-heading span {
    padding: 0.5rem 0.5rem;
    border: solid 2px var(--main-color-1);
    background-color: rgba(150, 107, 255, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    color: var(--heading-color);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1.5px;
}


.sub-head {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 2rem !important;
    font-weight: 500;
    transition: 0.3s color;
    align-items: center;
    text-align: center;
    margin: 0;
    
}

.heading {
    color: var(--heading-color);
    font-size: 2.25rem;
    font-family: 'MOREKS-Demo';
    font-weight: 700;
    line-height: 1;
    align-items: left;
    text-align: left;
    text-transform: uppercase;
    margin: 0;
}

.text {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 2rem 0;
    line-height: 2;
    transition: 0.3s color;
    
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
}

.form-input {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    background: var(--bg-color-3);
    border: 2px solid var(--main-color-1);
    width: 100%;
    border-radius: 17px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--heading-color);
    outline: none;
    transition: 0.3s;
}

.form-input::placeholder {
    color: var(--text-color);
}

.form-input:hover {
    filter: brightness(97%);
}

.form-input:valid,
.form-input:focus {
    filter: brightness(100%);
    background: var(--bg-color-1);
    border-color: var(--main-color-1);
}

/* ------------ Navbar Styling ------------ */

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-content: space-around;
    flex-wrap: nowrap;
    flex-direction: row;
}

.logo-font {
    margin-left: 0.3rem;
    font-size: 1.5rem;
    font-family: 'moon 2.0 Bold';
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.nav-list {
    display: flex;
    gap: 1.3rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--heading-color);
  background: var(--background-nav);
  transform: translateY(-2px);
  border-radius: 1rem;
}

/* Icons */
.icon {
  transition: var(--transition-medium);
  vertical-align: middle;
}

.chevron-icon {
  transition: transform var(--transition-medium);
}

.has-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.hidden {
  display: none;
}

/* Dropdown Menus */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all var(--transition-medium);
  box-shadow: 0 10px 30px var(--shadow-color);
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
}

.dropdown li {
  list-style: none;
}

.dropdown a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.7rem 1rem;
  display: block;
  transition: all var(--transition-medium);
  margin-bottom: 2px;
}

.dropdown a:hover {
  background: rgba(33, 150, 243, 0.15);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Search Bar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */

.toggle-btn {
    color: var(--heading-color);
    min-width: 40px;
    height: 40px;
    background-color: var(--bg-color-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 10px 0px rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.toggle-btn:hover {
    filter: brightness(97%);
}


/* Hamburger Menu */
.nav-toggle {
    border-radius: 50%;
    display: none;
    cursor: pointer;
    background: var(--box-shadow);
    padding: 0.8rem;
    transition: var(--transition-medium);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hamburger {
  width: 24px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  position: absolute;
  transition: all var(--transition-medium);
  border-radius: 10px;
}

.hamburger span:first-child {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
  width: 70%;
}

.hamburger span:last-child {
  top: 18px;
}

/* Mobile Menu Active State */
.nav-active .hamburger span:first-child {
  transform: rotate(45deg);
  top: 9px;
}

.nav-active .hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-active .hamburger span:last-child {
  transform: rotate(-45deg);
  top: 9px;
}

/* Responsive Design */
@media (max-width: 1500px) {
    .nav-list {
        gap: 0rem;
    }

    .navbar {
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: flex;
  }
  .nav-link:hover, .nav-link.active {
    background: none;
    transform: none;
  }

  .navbar {
    margin: 5%;
    box-shadow: none;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    height: calc(50vh - 70px);
    gap: 0rem;
  }

  .nav-active .nav-menu {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background: rgba(33, 150, 243, 0.15);
  }

  .dropdown {
    position: static;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    padding-left: 1rem;
    margin-left: 1rem;
    display: none;
    box-shadow: none;
    transform: none;
  }

  .dropdown::before {
    display: none;
  }

  .has-dropdown.active .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .dropdown a {
    padding: 0.8rem 1rem;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .theme-toggle {
    align-self: flex-start;
  }

  .chevron-icon {
    position: absolute;
    right: 1rem;
  }

  .has-dropdown.active .chevron-icon {
    transform: rotate(180deg);
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    width: 100%;
  }
}

/* ------------ Showcase Area Styling ------------ */

.showcase-area,
.showcase-button {
    padding: 80px 0px 0 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.showcase-area .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-button .container {
    align-items: center;
}

.showcase-area .sub-heading,
.showcase-button .sub-heading {
    margin-bottom: 0.7rem;
}

.showcase-area .heading,
.showcase-button .heading {
    font-size: 3.5rem;
}

.showcase-area .text,
.showcase-button .text {
    margin: .8rem 0;
}

.showcase-info {
    display: flex;
    justify-content: left;
    align-items: left;
    flex-direction: column;
    gap: 2rem;
}


.cta {
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta .btn,
.cta .btn-mail {
    margin-right: 1.5rem;
}

/* ------------ Button Styling Primary ------------ */

.btn-mail {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px var(--shadow-color);
    padding-block: 0.6rem;
    padding-inline: 1rem;
    background-color: var(--main-color-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    gap: 10px;
    font-weight: bold;
    border: 1px solid var(--shadow-color);
    outline: none;
    overflow: hidden;
    font-size: 1rem;
    cursor: pointer;
}

.btn-mail:hover {
    transform: scale(1.05);
    border-color: var(--shadow-color);
}
  
.btn-mail:hover::before {
    animation: shine 1.5s ease-out infinite;
}
  
.btn-mail::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -100px;
    opacity: 0.6;
}

.btn-filter {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 5px 5px var(--shadow-color);
    padding-block: 0.6rem;
    padding-inline: 1rem;
    background-color: var(--main-color-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffff;
    gap: 10px;
    font-weight: bold;
    border: 1px solid var(--shadow-color);
    outline: none;
    overflow: hidden;
    font-size: 1rem;
    cursor: pointer;
}

.btn-filter:hover {
    transform: scale(1.05);
    border-color: #fff9;
}
  
.btn-filter:hover::before {
    animation: shine 1.5s ease-out infinite;
}
  
.btn-filter::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -100px;
    opacity: 0.6;
}


.filter-btn {
    color: var(--heading-color);
    outline: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    transition: 0.3s color;
}

.filter-btn.mixitup-control-active {
    color: var(--heading-color);
    background-color: var(--main-color-1);  
}

@keyframes shine {
    0% {
      left: -100px;
    }
  
    60% {
      left: 100%;
    }
  
    to {
      left: 100%;
    }
}
  
.btn-size {
    font-size: 0.8rem;
}

/* ------------ Button Styling Secondary ------------ */

.btn-software {
    background-color: var(--bg-color);
    color: var(--heading-color);
    font-size: 1rem;
    margin: 0 0.4rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.3s;
    box-shadow: 0px 10px 20px var(--shadow-color);
    padding-block: 0.6rem;
    padding-inline: 1rem;
    gap: 10px;
    font-weight: bold;
    border: 1px solid var(--shadow-color);
    outline: none;
    overflow: hidden;
}

.btn-cv {
    color: var(--heading-color);
    box-shadow: 0px 10px 20px var(--shadow-color);
    gap: 10px;
    font-weight: bold;
    border-width: 0;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    z-index: 1;
    border: 1px solid var(--shadow-color);
    overflow: hidden;
}

.btn-software a {
    color: var(--heading-color);
    text-decoration: none;
}
  
.btn-cv .docs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 2rem;
    z-index: 1;
    background-color: var(--bg-color);
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.showcase-image {
    position: relative;
    margin-left: 5%;
    width: 100%;
    min-height: 110%;
    margin-top: -100px;
}

.showcase-image .person {
    position: absolute;
    width: 80%;
    bottom: 0;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.3rem;
}


[class*="btn-glitch-"] {
  display: inline-block;
  font-family: "VT323", monospace;
  border: 1px solid white;
  color: white;
  padding: 10px 13px;
  min-width: 175px;
  line-height: 1.5em;
  white-space: no-wrap;
  text-transform: uppercase;
  cursor: pointer;
  .text,
  .decoration {
    display: inline-block;
  }
  .decoration {
    display: inline-block;
    float: right;
  }
  &:hover,
  &:focus {
    animation-name: glitch;
    animation-duration: 0.2s;
    background-color: var(--main-color-1);
    color: var(--bg-color);
    border: 1px solid var(--main-color-1);
    .text-decoration {
      animation-name: blink;
      animation-duration: 0.1s;
      animation-iteration-count: infinite;
    }
    .decoration {
      animation-name: blink;
      animation-duration: 0.1s;
      animation-iteration-count: infinite;
    }
    :before {
      content: " ";
      width: 15px;
      border: 1px solid var(--bg-color);
      position: absolute;
      right: 25%;
      bottom: 3px;
      transform: rotate(35deg);
    }
    :after {
      animation-name: shrink;
      animation-duration: 0.5s;
      animation-iteration-count: 1;
      animation-fill-mode: forwards;
      content: " ";
      width: 75%;
      border: 1px solid var(--bg-color);
      position: absolute;
      left: 0;
      bottom: 5px;
    }
  }
  &:active {
    background: none;
    color: var(--main-color-1);
    .text-decoration {
      animation-name: none;
    }
    .decoration {
      animation-name: none;
    }
    :before,
    :after {
      display: none;
    }
  }
}

@keyframes glitch {
  25% {
    background-color: red;
    transform: translateX(-10px);
    letter-spacing: 10px;
  }
  35% {
    background-color: green;
    transform: translate(10px);
  }
  59% {
    opacity: 0;
  }
  60% {
    background-color: blue;
    transform: translate(-10px);
    filter: blur(5px);
  }
  100% {
    background-color: var(--main-color-1);
    blur: (5px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shrink {
  100% {
    width: 10%;
  }
}

/* ------------ Footer Styling ------------ */

footer {
    padding: 3rem 0;    
}

footer .container {
    display: grid;
    grid-template-columns: repeat(2, 0.5fr);
    column-gap: 1rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
    align-content: center;
}

footer .container .socials {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem; 
    width: 100%;
}

.social-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 1rem;
    background-color: var(--bg-color-1);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-link i {
    font-size: 1.5rem;
    transition: 0.3s color;
}

.social-link:hover {
    color: var(--main-color-1);
}


/* ------------ Responsible 1200px Screens ------------ */

@media (max-width: 1200px) {
    .sub-heading {
        font-size: 0.9em;
    }

    .btn-mail {
        padding-inline: 0.5em;
    }

    .srv-card {
        padding: 1rem;
    }

    .heading {
        font-size: 2.4rem;
    }

    .showcase-area .heading {
        font-size: 2.8rem;
    }

    .text {
        font-size: 0.5rem;
        margin: 0.3rem 0;
    }

    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 1.1rem;
        border-radius: 15px;
        min-width: 100px;
    }

    .btn.secondary-btn {
        font-size: 1.1rem;
    }
    
    .form-input {
        padding: 0.8rem 1.45rem;
        border-radius: 15px;
        font-size: 1rem;
    }

    .form-input::placeholder {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .showcase-area {
        padding: 20px 20px;
    }

    .showcase-area .container {
        height: 500px;
    }

    .skills-box {
        padding: 4rem;
    }

    .sk-progress {
        transform: scale(0.85);
    }

    .services .container {
        display: flex;
        flex-direction: column;
        align-content: stretch;
        justify-content: space-evenly;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .contact .container {
        column-gap: 2.5rem;
    }

    .contact-form {
        padding: 2.5rem 2rem;
    }

    .contact-form h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .contact .form-input {
        margin-bottom: 0.9rem;
    }

    .sub-box {
        padding: 3.5rem 2.5rem;
        column-gap: 2rem;
    }

    .filter-btn {
        font-size: 1rem;
    }
    .hamburger {
        display: block;
    }

    .links {
        order: 3;
        flex-basis: 100%; /*width: 100%*/
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0 2rem;
        opacity: 0;
        transition: 0.4s;
    }
    
    header nav {
        justify-content: space-between;
    }

    .links ul {
        position: relative;
        flex-direction: column;
    }

    .nav-link {
        margin: 0;
        color: var(--heading-color);
        font-weight: 500;
        font-size: 1rem;
    }

    .toggle-btn {
        margin: 0;
    }
    
    .btn {
        margin-top: 1rem;
    }
    
    .links ul::after {
        content: "";
        position: absolute;
        width: 0%;
        height: 0.5px;
        background-color: var(--heading-color);
        opacity: 0;
        top: -0.5rem;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: 0.4s;
    }

    .overlay {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        position: fixed;
        background-color: var(--modale-dark);
        z-index: 6;
        opacity: 0;
        transition: 0.4s;
        pointer-events: none;
    }

    header {
        height: 505px;
        max-height: 100px;
        overflow: hidden;
    }

    body.open header {
        max-height: 60%;
        background-color: var(--bg-color-2);
    }

    body.open .overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.open .links ul::after {
        opacity: 0.7;
        width: 100%;
    }

    body.open .links {
        opacity: 1;
    }
    .card_container {
        margin-top: 1rem;
    }

    .card_content {
        margin: 2rem ;
        padding: 0.5rem;
    }

    .box-heading {
        margin-left: 2%;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        align-content: center;
        justify-content: center;
    }

    .srv-card .card-title {
        gap: 1rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        color: var(--heading-color);
    }
    .container {
        padding: 0px;
    }
}

/* ------------ Responsible 768px Screens ------------ */

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem
    }

    .triangle {
        width: 70px;
    }

    .dots {
        width: 55px;
    }

    .showcase-area .container {
        height: max-content;
        display: flex;
        justify-items: center;
    }

    .showcase-image {
        min-height: revert;
        height: 100vw;
        max-height: 570px;
        max-width: 450px;
        margin-top: 0px;
        border-radius: 40px;
    }

    .showcase-info {
        width: 100%;
    }

    .showcase-area .text {
        margin: 0.2rem 0;
    }

    .cta {
        margin-top: 1rem;
    }

    .showcase-area .square {
        left: 80%;
        top: 20%;
    }

    .about .container {
        grid-template-columns: 1fr;
    }

    .about-grid {
        order: 3;
    }

    .heading br {
        display: none;
    }

    .about-grid {
        grid-template-columns: 150px 150px;
        grid-template-rows: 150px 150px;
        margin: 2.5rem 0 0 0;
        column-gap: 2rem;
        row-gap: 80px;
    }

    body.open header {
        max-height: 50%;
        background-color: var(--bg-color-2);
    }
    
    .icon {
        width: 50px;
    }

    .about-card h3 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .about-grid::before {
        width: 150px;
        height: 150px;
        border-width: 10px;
    }

    .box-desc {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }
    
    .skills-wrap {
        grid-template-columns: repeat(2, 150px);
        row-gap: 1rem;
    }

    .sk-title {
        margin-top: 0;
    }

    .services .container {
        align-items: center;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .services .text {
        margin: 1.5rem 0 0.5rem;
    }

    .services-grid {
        column-gap: 1.5rem;
        max-width: 600px;
    }

    .srv-card {
        padding: 1.8rem 1.7rem;
        min-height: 260px;
    }

    .srv-card h3 {
        font-size: 1rem;
    }

    .srv-card .text {
        margin: 0.4rem 0 0.8rem;
    }
    
    .portfolio-title {
        padding-bottom: 0;
    }

    .testimonials {
        padding: var(--section-padding) 0;
    }

    .testimonials .container {
        position: revert;
        grid-template-columns: 1fr;  
        max-width: 620px;      
    }

    .section-background {
        transform: translateX(0);
        left: 0;
        border-radius: 0;
        top: 0;
        height: 100%;
        background-image:  linear-gradient(
            45deg,
            var(--main-color-2) 17%,
            var(--main-color-1) 17%
        );
    }

    .section-background .person,
    .section-background .circle {
        display: none;
    }

    .swiper {
        order: 2;
        padding: 2rem 0;
    }

    .testimonials-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0 0 3rem 0;
    }

    .swiper-slide {
        padding: 0 2rem;
    }

    .swiper-slide .text {
        margin: 1rem 0 0;
    }

    .swiper-pagination {
        margin-top: 3rem;
    }
    
    .client {
        grid-template-columns: 65px 1fr;
    }

    .client-info h4 {
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    .client-info h5 {
        font-size: 1rem;
    }

    .section-background .square {
        left: 86%;
        top: 12%;
        width: 60px;
    }

    .contact .container {
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }

    .contact .square {
        position: absolute;
        width: 60px;
        top: 30%;
        left: 80%;
    }

    .contact .triangle {
        left: 20%;
        top: 101%;
    }
    
    .card_content {
       gap: 0rem;
       grid-template-columns: 1fr;
       grid-template-rows: auto;
    }

    .srv-card .card-title {
        gap: 1rem;
        flex-direction: row;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
    }
}

/* ------------ Responsible 500px Screens ------------ */

@media (max-width: 500px) {
    :root {
        --section-padding: 1rem
    }

    .container {
        padding: 0 1rem;
    }

    .showcase-area .square {
        display: none;
    }

    .navbar {
        margin: 9%;
        box-shadow: none;
    }

    .showcase-area .heading,
    .showcase-button .heading {
        font-size: 2.4rem;
    }

    .skills-box {
        padding: 3rem 2.5rem;
    }

    .skills-wrap {
        display: flex;
        grid-template-columns: 1fr;
        row-gap: 2rem;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .srv-card {
        transform: none !important;
        min-height: auto;
    }

    .srv-card .text  { 
        font-size: 1rem;
    }

    .portfolio-header {
        margin-bottom: 2rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .portfolio-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filter-btns {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-content: center;
    }

    body.open header {
        max-height: 45%;
    }

    .filter-btn {
        margin-top: 0.8rem;
    }

    .portfolio .slider-wrap {
        width: calc(100 - 2rem);
        grid-template-columns: 50px 1fr 50px;
    }

    .images {
        grid-column: 1/4;
        grid-row: 1/2;
    }

    .prev-btn {
        grid-column: 1/2;
        grid-row: 1/2;
        z-index: 1;
        color: #333;
    }

    .next-btn {
        grid-column: 3/4;
        grid-row: 1/2;
        z-index: 1;
        color: #333;
    }

    .contact-form p {
        font-size: 1.4rem;
    }

    footer {
        padding: var(--section-padding) 0 0.5rem;
    }

    footer .text {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        margin-top: -1rem;
    }

    footer .container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
     
}

/*------------ Credit ------------ *//*

Gestion hébergement et création du site par Grafmi

/*------------ EndCredit ------------ */