* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

:root {
  --bg-color: #FDD9ED;
  --main-color: #B6ADFB;
  --2nd-main-color: #150831;
  --text-color: #fff;
  --2nd-text-color: #00068A;
  --box-color: #201313;
  --date-color: #866666;
  --big-font: 5rem;
  --h2-font: 1.9rem;
  --p-font: 1rem;
}

body {
  background: url("../img/Background.webp") no-repeat center center;
  background-size: cover;
  color: var(--text-color);
}

/* Header */
header {
  width: 100%;
}

.top-bar {
  height: 90px;
  background: var(--2nd-main-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

#title {
  color: var(--text-color);
  font-size: 48px;
  letter-spacing: 4px;
  font-weight: 300;
}

/* Navbar */
.navbar {
  height: 45px;
  background: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-buttons {
  display: flex;
  gap: 40px;
}

.navbar a {
  margin: 0 15px;
  font-size: 16px;
  font-weight: 500;
  color: var(--2nd-text-color)
}

.lang-buttons {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 12px;
}

.lang-buttons button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

/* Home */
.home {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
}

/* Home: Left section, planets and astronaut */
.home-left {
  position: relative;
  flex: 1;
  height: 100%;
}

.home-planets {
  position: absolute;
  width: clamp(580px, 90%, 1300px);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.home-astronaut {
  position: absolute;
  width: clamp(200px, 50%, 520px);
  top: clamp(25%, 25vw, 70%);
  left: 62%;
  transform: translateX(-50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0px);
  }

  50% {
    transform: translateX(-50%) translateY(-15px);
  }

  100% {
    transform: translateX(-50%) translateY(0px);
  }
}

/* Home: Right section, text */
.home-right {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-right: 60px;
  text-align: center;
}

.home-text {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text-color);

}

.home-square-wrapper {
  width: 100%;
  background: rgba(1, 0, 21, 0.85);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 30px);
}

.home-square-wrapper p {
  font-size: clamp(14px, 1.4vw, 20px);
  /* scales smoothly */
  line-height: 1.7;
  color: var(--text-color);
}

/* Current Project */
.current-project {
  width: 100%;
}

/* Current Project: Top section, Song of The Peacock */
.cp-top {
  position: relative;
  width: 100%;
}

.cp-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.cp-info-panel {
  position: absolute;
  top: -110px;
  right: 0;
  width: 38%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cp-info-square {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 0;
  overflow: hidden;
}

.cp-square-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.cp-info-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 6vw, 100px);
  padding-bottom: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 3vw, 40px);
  padding-left: clamp(80px, 10vw, 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  height: 100%;
}

.cp-heading {
  font-size: clamp(18px, 2.5vw, 38px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--2nd-text-color);
  line-height: 1.2;
}

.cp-info-square p {
  font-size: clamp(12px, 1.2vw, 28px);
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--2nd-text-color);
  text-align: left;
  line-height: 1.6;
}

/* Current Project: Bottom section, world*/
.cp-bottom {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 60px 40px;
}

.cp-world-square {
  flex: 0 0 40%;
  position: relative;
  display: flex;
}

.cp-world-square .cp-square-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.cp-world-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 32px;
}

.cp-subheading {
  font-size: clamp(18px, 2.5vw, 38px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-color);
  line-height: 1.2;
}

.cp-world-content p {
  font-size: clamp(12px, 1.2vw, 28px);
  letter-spacing: 0.03em;
  font-weight: 400;
  color: var(--text-color);
}

.cp-screenshots {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-screenshot-main {
  width: 100%;
  flex: 1;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.cp-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cp-screenshot-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.cp-separation img {
  width: 100%;
  height: auto;
  display: block;
}

/* Team */
.team-image-wrapper {
  width: 100%;
  background-image: url("../img/TeamBackground.png");
  background-size: cover;
  background-position: center;
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  margin: clamp(10px, 5vw, 30px) 0;
}

.team-heading {
  color: #5E0000;
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.team-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 60px);
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.team-member>img {
  width: 100%;
  height: auto;
}

.team-member h2 {
  color: #5E0000;
  font-size: clamp(12px, 1.8vw, 40px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 8px;
}

.team-member p {
  color: #940C0C;
  font-size: clamp(10px, 1.3vw, 24px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
}

.team-member-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.team-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 2.5vw, 36px);
  height: clamp(24px, 2.5vw, 36px);
  min-width: 24px;
  border-radius: 50%;
  background: rgba(148, 12, 12, 0.15);
  color: #940C0C;
  transition: 0.2s ease;
  overflow: hidden;
}

.team-social-icon svg {
  width: 55%;
  height: 55%;
}

.team-social-icon:hover {
  background: #940C0C;
  color: #fff;
}

/* Contact */
.contact {
  font-size: 16px;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 32px;
}

.contact-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-social-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  background: var(--2nd-main-color);
  border: 1px solid rgba(182, 173, 251, 0.3);
  border-radius: 6px;
  padding: 20px 30px;
  text-decoration: none;
  color: var(--text-color);
  transition: 0.2s ease, border-color 0.2s ease;
}

.social-card:hover {
  background: rgba(21, 8, 49, 0.9);
  border-color: var(--main-color);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(182, 173, 251, 0.15);
  color: #00c8b4;
  flex-shrink: 0;
  overflow: hidden;
}

.social-icon svg {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
}

.social-card p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Footer */
.footer {
  width: 100%;
  background: var(--2nd-main-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(182, 173, 251, 0.15);
  color: #00c8b4;
  transition: 0.2s ease;
  overflow: hidden;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
}

.footer-social-icon:hover {
  background: var(--main-color);
  color: var(--2nd-main-color);
}

@media (max-width: 1024px) {
  /* Header */
  #title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .top-bar {
    height: 70px;
  }

  .navbar {
    height: auto;
    flex-direction: column;
    padding: 8px 16px;
    gap: 6px;
  }

  .navbar-buttons {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar a {
    font-size: 13px;
    margin: 0 6px;
  }

  .lang-buttons {
    position: static;
    gap: 8px;
  }

  /* Home */
  .home {
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 20px 40px;
    gap: 0;
  }

  /* Home: Left section, planets and astronaut */
  .home-left {
    position: relative;
    width: 100%;
    height: 260px;
    flex: none;
  }

  .home-planets {
    position: absolute;
    width: 80%;
    max-width: 320px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .home-astronaut {
    position: absolute;
    width: 38%;
    max-width: 150px;
    bottom: 0;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite;
  }

  /* Home: Right section, text */
  .home-right {
    flex: none;
    width: 100%;
    padding: 0;
    gap: 24px;
    align-items: center;
    margin-top: 30px;
  }

  .home-text {
    font-size: 40px;
    font-weight: 300;
  }

  .home-square-wrapper p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Current Project: Top section, Song of the Peacock*/
  .cp-top {
    flex-direction: column;
  }

  .cp-illustration {
    height: 200%;
  }

  .cp-info-panel {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    margin-top: 0;
  }

  .cp-info-square {
    margin-top: 0;
    flex-direction: column;
    min-height: 0;
  }

  .cp-info-square .cp-square-bg {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .cp-info-content {
    position: static;
    padding: 20px;
    margin-top: 0;
    overflow-y: visible;
  }

  .cp-info-square {
    background: rgba(255, 255, 255, 1);
    border-radius: 8px;
    margin: 16px;
    display: block;
  }

  .cp-info-square .cp-square-bg {
    display: none;
  }

  .cp-info-content {
    position: static;
    inset: unset;
    padding: 24px 20px;
    gap: 12px;
  }

  .cp-heading {
    font-size: 22px;
  }

  .cp-info-square p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Current Project: Bottom section, world*/
  .cp-bottom {
    flex-direction: column;
    padding: 20px 16px;
    gap: 20px;
  }

  .cp-world-square {
    flex: none;
    width: 100%;
    min-height: 0;
  }

  .cp-world-square .cp-square-bg {
    display: none;
  }

  .cp-world-square {
    background: rgba(1, 0, 21, 1);
    border-radius: 8px;
  }

  .cp-world-content {
    padding: 24px 20px;
    gap: 16px;
  }

  .cp-subheading {
    font-size: 22px;
  }

  .cp-world-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .cp-screenshots {
    width: 100%;
    gap: 8px;
  }

  .cp-screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  /* Team */
  .team-image-wrapper {
    padding: 40px 6%;
    gap: 24px;
    align-items: center;
  }

  .team-heading {
    font-size: clamp(20px, 5vw, 32px);
    text-align: center;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-member>img {
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  .team-member h2 {
    font-size: clamp(12px, 3.5vw, 20px);
  }

  .team-member p {
    font-size: clamp(10px, 2.5vw, 14px);
  }

  .team-social-icon {
    width: 32px;
    height: 32px;
  }

  /* Contact*/
  .contact {
    padding: 30px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-image {
    display: none;
  }

  .social-card {
    flex: none;
    padding: 16px 20px;
  }

  /* Footer */
  .footer {
    font-size: 12px;
    padding: 16px;
    align-items: center;
  }
}

@media (max-width: 756px) {
  /* Home */
  .home {
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 20px 40px;
    gap: 0;
  }

  /* Home: Left section, planets and astronaut */
  .home-left {
    position: relative;
    width: 100%;
    height: 260px;
    flex: none;
  }

  .home-planets {
    position: absolute;
    width: 80%;
    max-width: 320px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .home-astronaut {
    position: absolute;
    width: 38%;
    max-width: 150px;
    bottom: 0;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite;
  }

  /* Home: Right section, text */
  .home-right {
    flex: none;
    width: 100%;
    padding: 0;
    gap: 24px;
    align-items: center;
    margin-top: 50px;
  }

  .home-text {
    font-size: 40px;
    font-weight: 300;
  }

  .home-square-wrapper p {
    font-size: 14px;
    line-height: 1.6;
  }

  /*Team*/
  .team-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: clamp(8px, 5vw, 20px) 0;
    padding-bottom: 30px;
    height: auto;
    position: relative;
  }

  .team-grid {
    gap: 8px;
    width: 88%;
  }

  .team-member h2 {
    font-size: clamp(10px, 3vw, 16px);
  }

  .team-member p {
    font-size: clamp(8px, 2.5vw, 12px);
  }

  /* Contact*/
  .contact {
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    overflow: hidden;
  }

  .contact-social-media {
    width: 100%;
    height: auto;
  }

  .social-card {
    flex: none;
    padding: 12px 14px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .social-card p {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .social-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

}