@import url(header.css);

@layer hero {
  .hero {
    position: relative;
    min-height: 100svh;
  }
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: min(1500px, 95%);
    height: auto;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  .hero-text div:first-of-type span {
    padding: 8px 12px;
    border-radius: 50px;
    letter-spacing: 2px;
    font-style: italic;
  }
  h1 {
    font-size: clamp(42px, 4vw, 64px);
  }
  h1 span {
    display: block;
    color: var(--color-blue);
  }
  .hero-text p {
    font-size: clamp(18px, 2vw, 24px);
  }
  .hero-text div:has(.button) {
    margin-top: 16px;
  }
  .hero-text .button {
    margin: 0 8px;
  }
  .hero-text .button:first-of-type {
    margin-left: 0;
  }

  .hero-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .circle {
    position: relative;
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    clip-path: circle();
    background-color: var(--color-blue);
  }
  .animation-skill {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: min(400px, 90vw);
    width: min(400px, 90vw);
  }
  .animation-skill span {
    position: absolute;
    z-index: 2;
    padding: 12px 16px;
    background-color: var(--color-white);
    border-radius: 50px;
  }
  .animation-skill span i {
    color: var(--color-azublue);
  }
  .animation-skill span:first-of-type {
    top: 50px;
  }
  .animation-skill span:nth-child(2) {
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
  }
  .animation-skill span:last-of-type {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@layer aboutUs {
  .block-text-skills {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
  }
  .block-text p {
    font-size: 22px;
    width: 90%;
    color: var(--color-grey);
  }
  .block-skills h4 {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .skills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* width: 80%; */
    gap: 24px;
  }
  .skills span {
    padding: 12px 24px;
    background-color: var(--color-gray);
    border-radius: 12px;
  }
  .skills span i {
    color: var(--color-blue);
    font-size: 20px;
    margin-right: 4px;
  }
  .block-media img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.4);
  }
}

@layer services {
  .block-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 450px 450px;
    gap: 24px;
  }
  .card {
    padding: 50px;
    border-radius: 12px;
    border: 2px solid var(--color-gray);
  }
  .card i {
    font-size: 24px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .card.white i {
    background-color: var(--color-azure);
    color: var(--color-blue);
  }
  .card.darkblue i {
    background-color: var(--color-grey);
    color: var(--color-white);
  }
  .card h4 {
    font-size: 32px;
    text-transform: capitalize;
  }
  .card.darkblue h4 {
    color: var(--color-white);
  }
  .card p {
    margin: 24px 0;
    color: var(--color-grey);
  }
  .card.darkblue p {
    color: var(--color-gray);
  }
  .card span {
    color: var(--color-blue);
    font-weight: bold;
    font-style: italic;
  }
}

@layer portfolio {
  .portfolio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .card-project {
    border: 3px solid var(--color-gray);
    box-shadow: 0 0 5px var(--color-gray);
    width: 100%;
  }
  .card-project img{
    width: 100%;
  }
}

@layer contact {
  .part-text-form {
    display: grid;
    grid-template-columns: 1fr 50%;
    align-items: center;
    gap: 48px;
  }
  .part-text h4 {
    font-size: 22px;
  }
  .part-text > p {
    font-size: 18px;
    margin: 16px 0;
    color: var(--color-grey);
  }
  .information div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0;
  }
  .information-i {
    height: 50px;
    width: 50px;
    background-color: var(--color-white);
    border-radius: 12px;
  }
  .information i {
    font-size: 20px;
    margin: auto;
    color: var(--color-blue);
  }
  .information p {
    font-weight: bold;
  }
  .information p span {
    display: block;
    font-weight: 100;
    margin-top: 2px;
    color: var(--color-grey);
  }
  .social {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .part-text h4:last-of-type   {
    margin: 24px 0;
  }
  .social a {
    padding: 12px;
    clip-path: circle();
    background-color: var(--color-blue);
    color: var(--color-white);
  }
  .part-form {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  form {
    padding: 50px;
    width: 100%;
    border-radius: 24px;

    @media screen and (max-width: 550px) {
      padding: 50px 12px;
    }
  }
  form label {
    display: block;
    margin: 8px 0;
    
  }
  form input:not([type="checkbox"]) {
    height: 40px;
    width: 100%;
    border: 2px solid var(--color-gray);
    outline: none;
    box-shadow: inset 2px 2px 5px var(--color-gray);
    padding: 0 12px;

  }
  form textarea {
    min-height: 300px;
    min-width: 100%;
    max-width: 100%;
    border: 2px solid var(--color-gray);
    outline: none;
    box-shadow: inset 2px 2px 5px var(--color-gray);
    padding: 8px;
  }

  form div {
    display: flex;
    gap: 6px;
    margin: 8px 0;
  }
  form [type="checkbox"] {
    width: 18px;
  }
  form span {
    color: var(--color-blue);
  }
  form div a {
    color: var(--color-blue);
  }
  form input[type="submit"] {
    background-color: var(--color-blue);
    color: var(--color-white);
    font-weight: bold;
    text-transform: capitalize;
    box-shadow: none;
    border: none;
    outline: none;
    cursor: pointer;
  }
}

@layer footer {
  .footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding-bottom: 70px;
    border-bottom: 1px solid var(--color-white);
  }
  .footer-content h5 {
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 24px;
  }
  .footer-text h5 {
    color: var(--color-blue);
  }
  .footer-text p {
    line-height: 28px;
    width: min(400px, 95%);
  }
  .footer-content :where(p, a, li)  {
    color: var(--color-grey-text);
  }
  .footer-content li {
    margin: 16px 0;
  }
  .footer-nav li a:hover {
    color: var(--color-blue);
  }
  .footer-contact i {
    margin-right: 6px;
    color: var(--color-blue);
  }
  .credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 ;
  }
  .credits p {
    color: var(--color-white);
  }
  .credits p a {
    color: var(--color-blue);
  }
  .credits .social a {
    background-color: var(--color-grey);
  }
}

@media screen and (max-width: 1024px) {
  /* BASE DI CSS */
  .col-2, .col-3, .col-4 {
    width: 100%;
  }

  /* HERO */
  .hero {
    height: 1000px;
  }
  .hero-content {
    display: grid;
    justify-content: center;
    text-align: center;
    gap: 80px;
  }
  .hero-text p {
    width: min(600px, 90%);
    margin: auto;
  }
  .hero-animation {
    grid-row: 1;
  }
  .animation-skill span:first-of-type {
    left: 0;
  }
  .animation-skill span:nth-child(2) {
    right: 0;
  }
  .animation-skill span:last-of-type {
    left: 120px;
  }

  /* ABOUT US */

  .block-text-skills {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .block-text p {
    margin: 0 auto;
  }
  .skills i {
    display: block;
    margin: 0 0 8px 0;
  }

  /* SERVICES */

  .block-card {
    grid-template-columns: 1fr;
  }

  /* PORTFOLIO */

  .portfolio-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CONTACT */

  .part-text-form {
    grid-template-columns: 1fr;
  }

  /* FOOTER */

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .credits {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }
  
  .honeypot {
    display: none;
  }
}