﻿@media (max-width: 1000px) {

  /* Navbar â†’ fixed top, burger visible */
  .navbar {
    position: absolute;
    top: 0;
    z-index: 300;
    padding: 0 24px;
    height: 80px;
    background-color: transparent;
  }

  .nav-container {
    align-items: flex-start;
    margin-top: 30px;
  }

  .nav-logo {
    height: auto;
    gap: 2px;
  }

  .nav-logo-text {
    color: var(--white);
  }

  .nav-links,
  .lang-switcher {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100dvh;
    align-items: flex-start;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    padding: 96px 24px 90px;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    margin-top: 0;
    gap: 28px;
  }

  .legal-back,
  .privacy-back {
    display: flex;
  }

  .legal-notice,
  .privacy-policy {
    padding: 80px 40px;
  }

  /* Foto */
  .hero-photo {
    width: 500px;
    height: 595px;
  }

  /* Text-Bereich */
  .hero-text {
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    align-items: center;
  }

  .hero-logo {
    height: auto;
    flex: 1;
    gap: 40px;
    justify-content: flex-start;
    width: 100%;
  }

  /* Scroll-Indicator zentriert im Restplatz bis zur 100dvh-Unterkante */
  .scroll-indicator-container {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
  }

  /* Social-Icons: absolute â†’ static, horizontal */
  .social-icons {
    position: static;
    transform: none;
    flex-direction: row;
    top: auto;
    right: auto;
  }

  .s-icons {
    flex-direction: row;
    gap: 20px;
  }

  /* Name */
  .hero-name {
    font-size: 80px;
    gap: 2px;
    justify-content: center;
  }

  /* Titel */
  .hero-title {
    text-align: center;
    font-size: 36.3px;
  }

  .hero-text-wrapper {
    align-items: center;
  }

  .nav-logo-icon img {
    content: url('../assets/images/Bilal_Logo.png');
    width: 40px;
  }

  /* Background shape: anderes Bild, statisch, keine Effekte */
  .background img {
    content: url('../assets/icons/Ellipse 35.png');
    width: 100%;
    animation: none;
    transition: none;
  }

  .background {
    animation: none;
  }

  .hero-photo:hover .background img {
    transform: none;
    filter: none;
  }

  .photo-oval div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    -webkit-mask-image: url('../assets/icons/Ellipse 35.png');
    mask-image: url('../assets/icons/Ellipse 35.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
  }

  .profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .profile-img-1 {
    display: block;
    position: absolute;
    z-index: 2;
    width: auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 50%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
  }

  .logo-container {
    display: none;
  }

  .mobile-menu {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
  }

  body:has(#legal-notice.active) .arrow-up-mobile-container,
  body:has(#privacy-policy.active) .arrow-up-mobile-container {
    display: none;
  }


  .why-me-container {
    height: auto;
    margin: 10px 0 60px;
    gap: 32px;
    justify-content: flex-start;
  }

  .why-me-info {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .talk-button-container {
    display: none;
  }

  .talk-button-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .why-me-text {
    text-align: center;
  }

  .my-skills {
    height: auto;
    margin: 50px 0 110px;
  }

  .my-skills-container {
    gap: 40px;
  }

  .my-skills-left-right {
    flex-direction: column;
    height: auto;
    gap: 40px;
  }

  .my-skills-left {
    gap: 30px;
  }

  .skills-motivation br {
    display: none;
  }

  .my-skills-right {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 20px;
  }

  .skills-ellipse-content {
    order: -1;
    width: 50%;
    padding: 0 40px 0 0;
    text-align: left;
  }

  .my-skills-right img {
    position: relative;
    z-index: 1;
  }

  .skills-ellipse-bg {
    left: 50%;
  }

  .skills-group {
    gap: 6px;
  }

  .projects-container {
    margin-top: 0px;
  }

  .projects-container h3 {
    margin-bottom: 40px;
  }

  .project-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    gap: 0;
  }

  .project-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-full {
    display: none;
  }

  .tab-short {
    display: inline;
  }

  .project-tab {
    flex-shrink: 0;
    width: 206px;
    height: 68px;
    font-size: 24px;
  }

  .project-panel.active {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 22px 0 38px 0;
    gap: 20px;
  }

  .project-panels {
    height: auto;
    border-radius: 0 30px 30px 30px;
  }

  .panel-left {
    width: 100%;
    order: 3;
    padding: 20px 54px 0 54px;
  }

  .panel-right {
    display: contents;
  }

  .project-duration {
    display: none;
  }

  .panel-header-mobile {
    display: flex;
    flex-direction: column;
    order: 0;
    width: 100%;
    gap: 4px;
  }

  .panel-project-name {
    font-family: 'JosefinSans', sans-serif;
    font-size: 46px;
    color: var(--white);
    margin: 0;
  }

  .panel-header-mobile h3 {
    margin: 16px 0 0 0;
    color: var(--blue);
  }

  .panel-header-mobile span {
    font-family: 'JosefinSans', sans-serif;
    font-size: 16px;
    color: var(--white);
    padding-left: 54px;
    display: none;
  }

  .panel-screenshot {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .panel-buttons {
    order: 4;
    width: 100%;
  }

  .my-skills-right img {
    width: 130px;
  }

  .my-skills-right:hover .skills-ellipse-bg {
    transform: none;
    opacity: 0.07;
  }

  .my-skills-right:has(img:hover) .skills-ellipse-bg {
    transform: rotate(45deg);
    opacity: 0.15;
  }

  .location {
    gap: 25px;
    justify-content: center;
  }

  .references {
    padding: 80px 20px 45px;
  }

  .references-cards {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 12px;
    margin-top: 40px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.5s ease;
  }

  .references-cards.scrolling,
  .references-cards:hover {
    scrollbar-color: var(--blue) transparent;
  }

  .references-cards .reference-card {
    flex-shrink: 0;
  }

  .references-cards::-webkit-scrollbar {
    height: 6px;
  }

  .references-cards::-webkit-scrollbar-button {
    display: none;
  }

  .references-cards::-webkit-scrollbar-track {
    background: transparent;
  }

  .references-cards::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
    transition: background-color 0.5s ease;
  }

  .references-cards.scrolling::-webkit-scrollbar-thumb,
  .references-cards:hover::-webkit-scrollbar-thumb {
    background-color: var(--blue);
  }

  .contact {
    padding: 10px 20px 110px;
  }

  .contact-container {
    height: auto;
    gap: 40px;
  }

  .legal-heading,
  .privacy-heading {
    margin-bottom: 40px;
  }

  .legal-back,
  .privacy-back {
    display: block;
  }

  .footer-container {
    padding: 0px 50px;
  }

  .location {
    width: 100%;
  }

}

@media (max-width: 950px) {
  .footer-container {
    padding: 0px 20px;
  }

  .references-container {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
}

@media (max-width: 885px) {
  .arrow-up-container {
    padding: 0px 350px;
  }

  .project-tab {
    width: 150px;
    height: 60px;
  }
}

@media (max-width: 785px) {
  .arrow-up-container {
    padding: 0px 400px;
  }

  .my-skills-left img {
    height: 80px;
  }

  .skills-ellipse-bg {
    left: 52%;
  }
}

@media (max-width: 700px) {
  .arrow-up-container {
    padding: 0px 420px;
  }

  .my-skills-left img {
    height: 70px;
  }
}