
body {
  min-height: 100vh;
  overflow: auto;
  margin: 0;
  padding: 0;
  position: relative;
}
 
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("images/Background\ Website_long_version.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  will-change: transform;
}

.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


.site-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 45px;
  height: auto;
  z-index: 1000;
}


header {
  display: flex;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: white;
  font-weight: bold;
  white-space: nowrap;
  cursor: default;
  z-index: 1000;
}

header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

header nav a {
  color: #E9E9E9;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin: 0 10px;
}

header nav a:hover {
  text-decoration: underline;
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.lang-sep {
  color: rgba(233, 233, 233, 0.4);
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(233, 233, 233, 0.55);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  color: #FF4D00;
}

.lang-btn:hover:not(.active) {
  color: #E9E9E9;
}


.social-icons {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.social-icons a img {
  width: 2rem;
  height: auto;
  transition: transform 0.2s ease;
}

.social-icons a img:hover {
  transform: scale(1.2);
}


.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px 10%;
  overflow: hidden;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  margin-top: -50px;
}

.text-group {
  text-align: center;
  transform: translateY(25%);
}


.foreground-text {
  position: relative;
  font-size: 8vw;
  z-index: 1;
  bottom: 5%;
}


.background-text {
  white-space: nowrap;
  bottom: -10%;
}

.background-text span {
  position: relative;
  white-space: nowrap;
}

.background-text span::before {
  content: "software Developer";
  color: #E9E9E9;
  animation: words 20s infinite;
}



@keyframes words {
  0%,  20% { content: "creating Characters."; }
  21%, 40% { content: "animating 3D Models."; }
  41%, 60% { content: "drawing Concepts."; }
  61%, 80% { content: "coming up with ideas."; }
  81%,100% { content: "creating."; }
}


h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #FF4D00;
  font-family: 'Quanta Grotesk Pro', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #E9E9E9;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 4rem);
}

h3 {
  position: relative;
  color: #E9E9E9;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(4rem, 6vw, 8rem);
}

h4 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0;
  font-weight: 700;
}

h5 {
  color: #E9E9E9;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 6rem);
}

p {
  position: relative;
  color: #E9E9E9;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 2rem);
}


.about {
  color: #E9E9E9;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.about-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: white;
  padding: 2rem 3rem;
}

.about-me-pic {
  flex-shrink: 0;
}

.avatar {
  width: 200px;
  height: 260px;
  border-radius: 1em;
  object-fit: cover;
  display: block;
}

.about-text {
  flex-grow: 1;
}

.bio {
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #E9E9E9;
}

.btn-contact {
  display: inline-block;
  padding: 12px 25px;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  margin-top: 1rem;
}

.btn-contact:hover {
  background: #E9E9E9;
  color: black;
}


.artworks {
  padding: 4em 2em;
  position: relative;
}

.artworks__header {
  text-align: center;
  margin-bottom: 2em;
}

.artworks__header a {
  text-decoration: none;
}

.artworks__slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1em;
}

.artworks__track {
  display: flex;
  gap: 1.5em;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 1em 0.5em;
}

.artworks__track::-webkit-scrollbar {
  display: none;
}

.artworks__arrow {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artworks__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ── Project Cards ── */
.item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: white;
  width: 360px;
  min-width: 360px;
  height: 360px;
  scroll-snap-align: start;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.item__image {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.item:hover .item__image img {
  transform: scale(1.05);
}

.item__content {
  padding: 1em 1.2em 0.8em;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.item__title {
  margin: 0 0 0.4em;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
}

.item__desc {
  margin: 0 0 0.8em;
  font-size: 0.875rem;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: auto;
}

.item__tag {
  padding: 6px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: white;
  white-space: nowrap;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — TABLET  (max 850px)
═══════════════════════════════════════════════════ */

@media (max-width: 850px) {
  /* Hide side social icons — they overlap content */
  .social-icons {
    display: none;
  }

  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 1.5rem 1.5rem;
  }

  .avatar {
    width: 160px;
    height: 200px;
  }

  .about-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (max 600px)
═══════════════════════════════════════════════════ */

@media (max-width: 600px) {

  /* Logo */
  .site-logo {
    width: 36px;
    top: 14px;
    left: 14px;
  }

  /* Header pill stays centered but shrinks */
  header {
    top: 12px;
    padding: 8px 14px;
    border-radius: 14px;
  }

  header nav a {
    margin: 0 6px;
    font-size: 0.85rem;
  }

  .lang-btn {
    font-size: 0.78rem;
  }

  /* Hero */
  .hero {
    padding: 10px 5%;
  }

  .hero-card {
    margin-top: 0;
  }

  .text-group {
    transform: translateY(10%);
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(1.1rem, 5vw, 2rem);
    bottom: 80px;
    white-space: normal;
    width: 90vw;
  }

  .background-text {
    white-space: normal;
  }

  /* About */
  .about {
    padding: 24px 14px;
  }

  .about-card {
    gap: 16px;
    padding: 1.2rem 1rem;
    border-radius: 14px;
  }

  .avatar {
    width: 130px;
    height: 170px;
  }

  h4 {
    font-size: 1.5rem;
  }

  .bio {
    font-size: 0.95rem;
  }

  /* Artworks */
  .artworks {
    padding: 2em 0.75em;
  }

  .artworks__arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* On mobile: disable blur on cards to prevent lag */
  .item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(30, 30, 40, 0.65);
    width: 260px;
    min-width: 260px;
    height: 300px;
  }

  .item__image {
    height: 150px;
  }

  /* Also disable blur on about card for perf */
  .about-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(30, 30, 40, 0.65);
  }

  /* And nav */
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(30, 30, 40, 0.75);
  }
}