/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f8f8f8;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: relative;
  z-index: 2;
}

.logo {
  width: 10%;
}

.logo img {
  width: 60px;
}

.links a,
.auth-links a {
  text-decoration: none;
  color: #000;
  font-weight: 400;
  margin: 0 12px;
  font-size: 16px;
  transition: color 0.3s;
}

.links a:hover,
.auth-links a:hover {
  color: #696969;
}

.sign-in {
  background: transparent;
  border: 1px solid #000;
  padding: 8px 10px;
  border-radius: 15px;
  font-weight: 400;
  font-size: 16px;
  color: black;
  transition: background 0.3s;
}

.sign-in:hover {
  background: #e2e6eb;
}

.sign-up {
  padding: 8px 10px;
  border-radius: 15px;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s;
  background-color: #2d64ee;
  color: white !important;
}

.sign-up:hover {
  background: #193d96;
  color: white !important;
  transform: translateY(-2px);
}

/* SECTION1 */
.section1 {
  margin: 10px auto;
}

.section1 h2 {
  padding: 0 50px;
  font-size: 64px;
}

.search-box {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 90%;
  outline: 1px solid #ffffff;
  border-radius: 20px;
  padding: 8px 10px;
  margin: 10px auto;
  background-color: #e8edf5;
}

.fa-search {
  color: #000;
}

.search-box input {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background-color: #e8edf5;
  font-weight: 400;
  outline: none;
  font-size: 16px;
  color: #000000;
}

[contenteditable] {
  outline: 0px solid transparent;
}

.search-box input::placeholder {
  color: #000000;
  opacity: 1; /* Firefox */
}

.search-box button {
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #000000;
}

.search-box button i {
  color: #000000;
  font-size: 1rem;
  padding: auto;
}

/* CATEGORIES SECTION */
.categories-section {
  width: 90%;
  margin: 50px auto;
}

.categories-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin: 40px auto;
  text-align: left;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 20px 0;
}

.category-card {
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.category-card:hover {
  border-color: #007bff;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.category-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.explore-btn {
  color: #333;
  border: 1px solid #e0e0e0;
  padding: 8px 8px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 35%;
}

.explore-btn:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateY(-1px);
}

/* FOOTER SECTION */
.footer {
  background-color: #001534;
  color: white;
  padding: 60px 40px 40px;
}

.footer-container {
  width: 100%;
  max-height: 70%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 10px 5px;
}

/* Logo Section */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 120px;
  height: 120px;
}

.footer-logo img {
  width: 100%;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #b8c5d6;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

/* Contact Section */
.contact-info p {
  color: #b8c5d6;
  font-size: 16px;
  margin-bottom: 12px;
}

.contact-info .email {
  color: white;
  font-weight: 500;
}

.contact-info .phone {
  color: white;
  font-weight: 500;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-icons img {
  width: 28px;
  height: 28px;
}

.social-icon:hover {
  transform: translateY(-2px);
}

/* Copyright Section */
.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #344a6b;
  text-align: center;
  color: #b8c5d6;
  font-size: 14px;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Navigation Styles */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 999;
  padding: 80px 20px 20px;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  margin: 15px 0;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mobile-nav .auth-links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.mobile-nav .sign-in,
.mobile-nav .sign-up {
  border: 1px solid #ffffff;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 16px;
  color: white;
  text-align: center;
  transition: all 0.3s;
  width: 80%;
  margin: 0 auto;
}

.mobile-nav .sign-up {
  background-color: #2d64ee;
  border-color: #2d64ee;
}

.mobile-nav .sign-in:hover {
  background-color: #ffffff;
  color: #000000;
}

.mobile-nav .sign-up:hover {
  background-color: #193d96;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
    position: relative;
  }

  .logo {
    width: auto;
  }

  .logo img {
    width: 50px;
  }

  /* Hide desktop navigation */
  .links,
  .auth-links {
    display: none;
  }

  /* Show hamburger menu */
  .hamburger {
    display: flex;
  }

  .hero {
    top: 12%;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
    width: 95%;
    margin-bottom: 15px;
  }

  .hero p {
    width: 95%;
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .search-box {
    max-width: 320px;
    padding: 8px 15px;
    margin-top: 25px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-actions a {
    margin: 5px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 12px 15px;
    background-color: #00000088;
  }

  .logo img {
    width: 45px;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
  }

  .mobile-nav {
    padding: 70px 15px 15px;
  }

  .mobile-nav a {
    font-size: 18px;
    margin: 12px 0;
  }

  .hero {
    top: 8%;
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 1.7rem;
    width: 100%;
  }

  .hero p {
    font-size: 0.95rem;
    width: 100%;
  }

  .search-box {
    max-width: 280px;
    padding: 6px 12px;
  }

  .hero-actions a {
    font-size: 13px;
    padding: 6px 14px;
  }

  .footer {
    padding: 30px 15px 25px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
  }

  .footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer-section a {
    font-size: 14px;
  }

  .contact-info p {
    font-size: 14px;
  }

  .social-icons {
    justify-content: center;
    gap: 6px;
  }

  .social-icons img {
    width: 24px;
    height: 24px;
  }

  .footer-bottom {
    margin-top: 25px;
    padding-top: 20px;
    font-size: 12px;
  }
}

-left {
  min-width: unset;
  text-align: center;
}

body.menu-open {
  overflow: hidden;
}

.mobile-nav {
  z-index: 9999;
}

.hamburger {
  z-index: 10000;
  position: relative;
}
/* End of Hamburger Menu Styles */
