
/* HERO */

.hero {
    min-height: calc(100vh - var(--nav-height));
    height: calc(100vh - var(--nav-height));
    position: relative;
    top: 0;
    
  }
  
  .hero-container {
    width: min(100% - 64px, var(--content-width));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 535px 1fr 30px;
    align-items: center;
    position: relative;
  
  }
  
  .hero-image {
    width: 535px;
    height: 100%;
    top: -120px;
    position: relative;
  }
  
  .avatar-mobile-circle {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .avatar-bg {
    position: absolute;
    width: 480px !important;
    height: 710px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    object-fit: contain;
    z-index: 1;
  }
  
  .avatar {
    position: absolute;
    width: 480px;
    height: 638px;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    object-fit: contain;
    z-index: 2;
  }
  
  .avatar-bg-mobile-new,
  .avatar-mobile-new,
  .avatar-photo-mask {
    display: none;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    text-align: center;
    margin-right: 40px;
  }
  
  .hero-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 34px;
    position: relative;
  }
  
  .hero-logo {
    width: 66px;
    height: auto;
  }
  
  .logo-name {
    position: relative;
    left: 7px;
  }
  
  .logo-role {
    color: var(--primary);
    position: relative;
    right: 2px;
  }
  
  .hero-text h1 {
    font-family: 'Anta', sans-serif;
    font-size: 56px;
    line-height: 1;
    font-weight: 400;
    padding-bottom: 18px;
                           
  }
  
  .hero-text > p {
    font-size: 28px !important;
    line-height: 1;
    font-weight: 400;
  
  }
  
  .hero-icons {
    width: 30px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px !important;
    align-self: start;
    padding-top: 120px;
    justify-content: flex-start !important;
  }
  
  .hero-icons a,
  .footer-right a {
    width: 30px;
    height: 30px;
    position: relative;
  }
  
  .icon,
  .footer-icon {
    position: absolute;
    inset: 0;
    width: 30px;
    height: 30px;
  }
  
  .hover,
  .footer-icon.hover {
    display: none;
  }
  
  .hero-icons a:hover .normal,
  .footer-right a:hover .normal {
    display: none;
  }
  
  .hero-icons a:hover .hover,
  .footer-right a:hover .hover {
    display: block;
  }
  
  .scroll-down {
    position: absolute;
    left: 74%;
    bottom: 54px;
    transform: translateX(-50%);
    width: 38px;
    height: 89px;
  }
  
  /* NAV */
  
  .hero-nav {
    height: var(--nav-height);
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 max(40px, calc((100% - var(--content-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: none;
  }
  
  .nav-logo,
  .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .nav-logo img,
  .footer-center img {
    width: 53px;
  }
  
  .logo-name-dark,
  .logo-role-dark,
  .footer-logo-name,
  .footer-logo-role {
    font-size: 16px;
    line-height: 1;
    position: relative;
  }
  
  .logo-name-dark,
  .footer-logo-name {
    color: var(--secondary);
    left: 8px;
  }
  
  .logo-role-dark,
  .footer-logo-role {
    color: var(--bg-and-main);
    left: 0;
  }
  
  .hero-nav ul {
    display: flex;
    gap: 56px;
    list-style: none;
  }
  
  .hero-nav a {
    font-size: 28px !important;
    font-weight: 500;
    line-height: 200%;
    color: var(--bg-and-main);
  }
  
  .hero-nav ul a:hover,
  .language a.active,
  .language a:hover {
    color: var(--secondary);
  }
  
  .language {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 92px;
    justify-content: center;
  }
  
  .language a {
    width: 40px;
    height: 32px;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .language a.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/icons/language-bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
  }
  
  /* SECTIONS */
  
  #why-me,
  #skills,
  #projects,
  #references,
  #contact {
    scroll-margin-top: calc(var(--nav-height) + 24px);
  }
  
  .why-me,
  .skills,
  .references,
  .contact {
    width: min(100% - 64px, var(--content-width));
    margin: 104px auto 0;
  }
  
  .projects {
    width: 100%;
    margin: 104px auto 0;
  }
  
  .why-me h2,
  .skills h2,
  .projects h2,
  .contact h2 {
    font-family: 'Anta', sans-serif;
    font-size: clamp(54px, 5vw, 68px);
    color: var(--primary);
    text-align: center;
    font-weight: 400;
  }


  /* HOVER IMAGES */

.hover-bg {
    display: none;
  }
  
  .avatar-mobile-circle:hover .normal-bg,
  .learning-circle:hover .normal-bg,
  .reference-image-card:hover .normal-bg {
    display: none;
  }
  
  .avatar-mobile-circle:hover .hover-bg,
  .learning-circle:hover .hover-bg,
  .reference-image-card:hover .hover-bg {
    display: block;
  }
  
  .avatar-mobile-circle .hover-bg,
  .avatar-mobile-circle .normal-bg {
    position: absolute;
    width: 594px;
    height: 710px;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    object-fit: contain;
  }
  
  .learning-circle .hover-bg,
  .learning-circle .normal-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .learning-circle .hover-bg {
    transform: scale(1.28);
  }
  
  .reference-image-card .hover-bg,
  .reference-image-card .normal-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .reference-image-card .hover-bg {
    transform: scale(1.28);
  }
  
  /* LEGAL PAGE */
  
  .legal-page {
    background-color: var(--bg-and-main);
    min-height: calc(100dvh - var(--nav-height) - var(--footer-height));
    padding: 72px 0 96px;
  }
  
  .legal-content {
    width: min(100% - 64px, 980px);
    margin: 0 auto;
    color: var(--secondary);
    line-height: 1.45;
  }
  
  .legal-content h1 {
    font-family: 'Anta', sans-serif;
    font-size: clamp(36px, 4vw, 64px);
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 48px;
  }
  
  .legal-content h2 {
    font-family: 'Anta', sans-serif;
    font-size: clamp(26px, 2.6vw, 42px);
    color: var(--primary);
    font-weight: 400;
    margin: 44px 0 18px;
  }
  
  .legal-content h3 {
    color: var(--primary);
    font-size: 24px;
    margin: 34px 0 12px;
  }
  
  .legal-content h4 {
    color: var(--primary);
    font-size: 19px;
    margin: 24px 0 8px;
  }
  
  .legal-content p {
    font-size: 18px;
    margin-bottom: 14px;
  }
  
  .legal-content a {
    color: var(--primary);
    word-break: break-word;
  }
  
  .legal-content a:hover {
    color: var(--secondary);
  }
  
  .legal-date {
    margin-top: 40px;
    color: var(--primary);
    font-weight: 700;
  }
  
  .legal-footer {
    margin-top: 0;
  }
  
  .hero-nav ul a.active::before {
    content: "";
    position: absolute;
    inset: -3px -8px;
    background-image: url("../assets/icons/language-bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
    
  }
  
  .hero-nav ul a {
    position: relative;
    z-index: 1;
  }
  
  
  .hero-nav ul a.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-active-icon {
    display: none;
    position: absolute;
    width: 90px !important;
    height: 60px !important;
    z-index: 1;
    opacity: 1;
  }
  
  .hero-nav ul a.nav-item.active .nav-active-icon {
    display: block !important;
  }
  
  .hero-nav ul a.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-nav ul a.nav-item.active,
  .hero-nav ul a.nav-item.active span {
    color: var(--secondary) !important;
  }
  
  .location-box p {
    position: relative;
    display: inline-block;
   
   
  }

  .location-highlight {
    color: var(--primary) !important;
  }
  
  #sendButton.disabled-look {
    opacity: 0.5;
  }
  
  .scroll-down:hover,
  .arrow-up:hover {
    background-color: rgba(116, 114, 109, 0.45);
    border: none;
    border-radius: 50px;
  }
  
  #privacyError.visible {
    display: block;
  }
  
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: transparent;
    font-size: 16px;
    
  }
  
  .contact-form input,
  .contact-form textarea {
    box-sizing: border-box;
  }

  .project-tab.active {
    color: white !important;
  }

  
@media (min-width: 1025px) and (max-width: 1280px) and (min-height: 800px) {
  .hero-image {
    position: relative !important;
    top: 60px !important;
     white-space: nowrap !important;
   
  }

}

@media (min-width: 1025px) and (max-width: 1300px) and (hover: none) and (pointer: coarse) {
  .hero-text h1 {
    font-size: 50px !important;
    white-space: nowrap !important;
  }

  .hero-text > p {
    font-size: 24px !important;
    white-space: nowrap !important;
  }

  .hero-image {
    top: -20px !important;
  }
}

@media (min-width: 431px) and (max-width: 499px) {
  .mobile-learn-text {
    width: 215px !important;
    max-width: 215px !important;
    transform: translateX(-20px) !important;
  }
}



@media (min-width: 1025px) and (max-width: 1300px) and (hover: none) and (pointer: coarse) {
  .hero-text h1 {
    font-size: 50px !important;
    white-space: nowrap !important;
  }

  .hero-text > p {
    font-size: 24px !important;
    white-space: nowrap !important;
  }

  .hero-image {
    top: -20px !important;
  }
}

@media (min-width: 431px) and (max-width: 499px) {
  .mobile-learn-text {
    width: 215px !important;
    max-width: 215px !important;
    transform: translateX(-20px) !important;
  }
}


@media (min-width: 1600px) {
  .hero-container {
    width: min(100% - 64px, var(--content-width));
    max-width: var(--content-width);
    margin: 0 auto;
    grid-template-columns: 1fr 500px 500px 1fr;
    column-gap: 48px;
    align-items: center;
  }

  .hero-image {
    grid-column: 2;
    justify-self: center;
    width: 500px;
    top: 80px;
    left: 40px;
  }

  .hero-text {
    grid-column: 3;
    justify-self: center;
    margin-right: 0;
    position: relative;
    top: 80px;
    left: 40px;
  }

  .hero-icons {
    grid-column: 4;
    justify-self: start;
    padding-top: 500px;
  }

  .scroll-down {
    left: 70%;
    bottom: 180px;
    transform: translateX(-50%);
  }


  .avatar-bg-mobile-new,
  .avatar-photo-mask,
  .avatar-mobile-new {
    display: block !important;
  }

  .avatar-mobile-circle {
    width: 300px;
    height: 340px;
    margin: 0 auto;
    position: relative;
    top: 420px !important;
    left: 90px;
  }

  .avatar-bg-mobile-new {
    position: absolute;
    width: 730px !important;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    z-index: 1;
  }

  .avatar-photo-mask {
    position: absolute;
    width: 255px;
    height: 320px;
    left: 46%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 3;
  }

  .avatar-mobile-new {
    position: absolute;
    width: 285px;
    left: 52%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 4;
  }

  .avatar-bg,
  .avatar {
    display: none;
  }

  .avatar-bg.hover-bg {
    display: none !important;
  }

  .skills-grid {
    width: 100%;
    max-width: 660px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 32px;
    justify-items: center;
    margin: 0 auto;
    justify-content: flex-start;
  }

  .why-content,
  .skills-content {
    width: min(100% - 64px, 1100px);
    margin-left: auto;
    margin-right: auto;
  }

  .why-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
  }

  .location-box {
    margin-left: 0 !important;
    justify-self: start;
  }

  .avatar-mobile-circle {
    width: 360px;
    height: 400px;
  }
  
  .avatar-bg-mobile-new {
    width: 820px !important;
  }
  
  .avatar-photo-mask {
    width: 300px;
    height: 370px;
  }
  
  .avatar-mobile-new {
    width: 460px;
    top: 18px;
    
  }
}