@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');

/* Reset some browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 }
/* Global Styles */
html, body {
  height: 100%;
}

p, a, button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #fff;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #000000;
  color: #fff;
  margin: 0;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
}

.logo {
  font-family: 'Poetsen One', sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
}

.logo:hover {
  color: #d9d9d9;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-size: 1rem;
}

.nav a:hover {
  color: #00f75a;
}

.sign-up {
  background-color: #00f75a;
  color: #000;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.sign-up:hover {
  background-color: #00d84a;
  color: #fff;
  transition: background-color 0.3s ease;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 50px;
  height: calc(100vh - 98.4px); /* Adjust height to fit the header */
  overflow: hidden;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: Roboto;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #ccc;
}

.cta-btn {
  background-color: #00f75a;
  color: #000;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.cta-btn:hover {
  background-color: #00d84a;
  color: #fff;
  transition: background-color 0.3s ease;
}

.hero-img {
  height: 100%;
  max-height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 50px;
  height: calc(100vh - 99.2px); /* Adjust height to fit the header */
}

.section {
  padding: 60px;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  
}

.section:not(.hidden) {
  display: block;
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* About Section */

.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 60px;
  height: calc(100vh - 99.2px); /* Adjust height to fit the header */
  box-sizing: border-box;
  gap: 40px;
  height: auto !important;
}

.about-text {
  flex: 1;
  max-width: 50%;
}

.about-text h1 {
  font-family: Roboto, sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
}

.about-text p {
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-image img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Features Section */
.features-section {
  padding: 50px 50px 25px 50px;
  text-align: center;
  color: #fff;
}

.features-section h1 {
  font-family: Roboto, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 80px;
  text-align: center;
  color: #ccc;
}

.features-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 20px;
  background-color: #121212;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item img {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
}

.feature-item h2 {
  font-family: Roboto, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #58c692;
}

.feature-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #ccc;
}

/* Why Section */

.why-section h1 {
  font-family: Roboto, sans-serif;
}

.why-section p {
  font-family: Montserrat, sans-serif;
}

.why-section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}
.why-section p {
  font-size: 1.2rem;
  margin-bottom: 0px;
  color: #ccc;
}

.why-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:60px 60px 45px 60px;
  gap: 60px;
  box-sizing: border-box;
}

.why-text {
  flex: 1;
  max-width: 50%;
}

.why-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.why-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

/* ---------------------------- */
/* 📱 Mobile Layout Starts Here */
/* ---------------------------- */

.hamburger {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: 60px; /* Adjust based on header height */
  display: none;
  z-index: 9999;
}

@media screen and (max-width: 768px) {

  .header {
    position: sticky;
    top: 0;
    height: 60px;
    padding: 1rem 2rem;
    background-color: #000;
    z-index: 999;
    min-height: 60px;
  }

  .hamburger {
    display: block;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    z-index: 1000;
  }

  .nav,
  .sign-up {
    display: none;
  }

  .mobile-menu {
    display: none;
    top: 60px;
    left: 1rem;
    right: 1rem;
    background-color: #000000;
    padding: 1rem;
    border-radius: 10px;
    flex-direction: column;
    z-index: 1000;
  }

  .mobile-menu.show {
    display: flex;
  }

  .mobile-menu a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
  }

  .hero-img {
    display: none;
  }

  .hero-section {
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 1rem;
    position: relative;
  }

  .hero-text {
    background-color: rgba(0, 0, 0, 0.0);
    padding: 1.5rem;
    border-radius: 12px;
  }

  .hero-text h1 {
    color: white;
    text-shadow: 0 0 4px rgba(0,0,0,0.7); /* makes it pop on background */
    margin-top: 60px;
  }

  .about-section {
    background-image: url('assets/about-puzzle.png'); /* change path if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1rem 1rem 1rem;
    position: relative;
    height: auto !important;
  }

  .about-text {
    background-color: rgba(0, 0, 0, 0.5); /* optional overlay for contrast */
    padding: 1.5rem;
    border-radius: 12px;
    padding-top: 2rem;
  }

  .about-text h1 {
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
    padding-top: 0rem;
  }

  .about-text p {
    color: #ccc;
  }

  .about-text {
   max-width: 90%;
   padding: 0 0rem;
   text-align: center;
   margin: 0 auto;
  }

 .about-image {
   display: none;
 }

 .feature-item {
    margin: 0 auto;
  }

 .why-section {
   background-image: url('assets/why.png'); /* adjust path if needed */
   background-size: cover;
   background-position: center top;
   background-repeat: no-repeat;
   padding: 2rem 1rem;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
  }

 .why-image {
   display: none;
 }

 .why-container {
   margin: 0 auto !important;
   padding: 2rem 1rem !important;
   padding-top: 1rem !important;
   gap: 1rem  !important;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   margin-top: 10rem;
 }

 .why-text {
   max-width: 90%;
   width: 100%;
   margin: 0 auto !important;  
   text-align: center;
   background-color: rgba(0, 0, 0, 0.1); /* optional */
   border-radius: 12px;
 }

.why-text h1 {
   font-size: 1.5rem;
   color: white;
   text-shadow: 0 0 4px rgba(0,0,0,0.7);
 }

.why-text p {
   color: #ccc;
   text-shadow: 0 0 4px rgba(0,0,0,0.7);
   line-height: 1.6;
   margin-bottom: 1.2rem;
 }

}
