/* ========== GLOBAL RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  background: #121212;
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
}

/* ========== GLOBAL STRUCTURE ========== */
.container {
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* ====== NAVBAR ====== */
.navbar {
  width: 100%;
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #000;
  z-index: 50;
}

.links {
  display: none;
}

.menu {
  display: flex;
  gap: 2rem;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1.5px;
}

.menu a {
  color: #000;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

/* ========== HERO ========== */
.desktoptitle {
  font-family: "Roboto", sans-serif;
  font-size: 5rem;
  font-weight: 350;
  text-transform: none;
  letter-spacing: 1px;
  background-color: #ffffff;
  color: #000000;
  cursor: default;
  padding-top: 3rem;
}

.mobiletitle {
  font-family: "Roboto", sans-serif;
  font-size: 5rem;
  font-weight: 350;
  text-transform: none;
  letter-spacing: 1px;
  background-color: #ffffff;
  color: #000000;
  cursor: default;
  padding-top: 3rem;
}

.subtitle {
  font-size: 1rem;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  padding: 2rem 1rem 5rem 0rem;
  background-color: #ffffff;
  color: #000000;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.2s;
}

/* ========== YOUTUBE SECTION ========== */
.youtube {
  display: grid;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  grid-gap: 2rem;
  max-width: 100%;
  width: 80%;
  margin: 5rem auto 4rem auto;
  padding: 0;
}

/* Make iframe responsive */
.iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* keeps proper ratio */
  border-radius: 0.4rem;
  border-width: 0.4rem;
  border-color: #ffffff;
}

.iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ========== ABOUT SECTION ========== */
.about {
  width: 80%;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 3rem;
  animation: fadeInUp 1s ease forwards 0.6s;
  opacity: 0;
  transform: translateY(40px);
}

.heading1 {
  font-size: 1.4rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 3rem;
}

.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  max-width: 120px;
  border-bottom: 1px solid #666;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 5rem;
  align-items: center;
  margin: 0 auto;
}

.about-grid img {
  border-radius: 10px;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.about-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.about-text {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.7;
  color: #e0e0e0;
  text-align: justify;
  max-width: 700px;
  margin: 0 auto;
}

/* ========== FOOTER ========== */
.footer {
  background: #111;
  color: #fff;
  padding: 2.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.email {
  font-size: 1rem;
}

.socials {
  display: flex;
  gap: 1.8rem;
}

.icon {
  font-size: 1.6rem;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon:hover {
  color: #ff5252;
  transform: translateY(-3px);
}

/* Hamburger button - hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  cursor: pointer;
  padding-bottom: 0.4rem;
}

.mobile {
  display: none;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile: Show hamburger, hide menu */

/* Mobile adjustments */
@media only screen and (max-width: 700px) {
  /* Navbar container visible only on mobile */
  .links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
  }

  /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 20;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hidden menu (dropdown) */
  .menu.nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 1.5rem;
    width: 180px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .menu.nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .desktop {
    display: none;
  }
  .mobile {
    display: flex;
  }
  /* Mobile title style */
  .mobiletitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 1px;
    background: none;
    padding: 0;
  }
  .desktoptitle {
    display: none;
  }
  /* Subheadline spacing fix */
  .subtitle {
    font-size: 0.55rem;
    padding: 5rem 1rem 1rem 1rem;
    letter-spacing: 4px;
  }
  .youtube {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 8% 5% 0% 5%;
    padding: 0;
  }
  .iframe {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }

  /* About section layout */
  .about {
    width: 90%;
    margin-top: 2rem;
    padding: 1rem 0 0rem 0;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .about-text {
    font-size: 1rem;
  }

  /* Footer spacing */
  .footer {
    padding: 2rem 0;
  }
}

/* ====== ANIMATION ====== */
.animated-fade {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.subtitle.animated-fade {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 900px) {
  .menu {
    gap: 1rem;
  }

  .subtitle {
    letter-spacing: 3px;
  }

  .about-grid {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .menu {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .iframe {
    height: 180px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    font-size: 1rem;
  }

  .footer-content {
    text-align: center;
  }
}

@media only screen and (max-width: 480px) {
  .iframe {
    height: auto;
    aspect-ratio: 16/9;
  }
}
