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

@font-face {
  font-family: 'Apple Garamond';
  src: url('fonts/AppleGaramond.ttf') format('truetype');
}

  .bg {
  background-image: url("home/bg.png"); /* no need to escape space */
  background-attachment: fixed; /* key for parallax effect */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 50%;
  z-index: -1; /* push behind everything */
}

  body {
    font-family: 'Apple Garamond' , serif;
  background-color: #0052ff;
  color: black;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.works-section {
  position: relative;
  top: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

nav {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 12px;
  transition: 0.3s;
}

nav a:hover {
  text-decoration: underline;
}

.logo-left, .logo-right {
  position: absolute;
  top: 0;
  z-index: 9999; 
}

.logo-left img,
.logo-right img {
  display: inline-block;
  transition: transform 0.3s ease;
  pointer-events: all;
}

.logo-left img:hover,
.logo-right img:hover {
  transform: scale(1.1);
}

.logo-left img {
  width: 210px;
  height: auto;  
}

.logo-right {
  right: 50px;
  top: 32px;
}

.logo-right img {
  width: 80px;
  height: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
  padding: 20px;
  width: 100%;
  max-width: 1300px;
  max-height: 2000px;
  margin: auto;
  padding-bottom: 200px;
}

.grid-item {
  background-color: white;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* PACKAGE PAGE (SORA) */

/* Desktop Carousel */
.carousel {
  width: 1300px;
  max-width: 100vw;
  height: 1000px;
  padding-bottom: 1000px;
  position: relative;
  justify-content: center;
  margin: auto;
  overflow: hidden;
}

.carousel .carousel-items {
  position: absolute;
  width: max-content;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  transition: 1s;
}

.carousel .carousel-items .carousel-item img {
  width: 1300px;
  height: 100%;
  object-fit: contain;
}

.carousel .carousel-controls {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10; 
}

.carousel .carousel-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  border: none;
  font-size: 16px; 
  font-family: Arial, sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel .carousel-controls button:hover {
  background-color: rgba(255, 255, 255, 0.8); 
}

.carousel .pagination-dots {
  position: absolute;
  top: 50%; /* Vertically center */
  left: 50%; /* Horizontally center */
  transform: translate(-50%, -50%); /* Adjust for exact centering */
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.carousel .pagination-dots .dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  margin: 10px;
  border-radius: 50%;
  transition: 0.5s;
}

.carousel .pagination-dots .dot.active {
  width: 15px;
  background-color: #FF5447;
}

/* Grid Positioning & Styling */
.strawberry-image {
  grid-area: 1 / 1 / span 2 / span 2;
  height: 635px;
}

.blueberry-image {
  grid-area: 1 / 3 / span 2 / span 2;
  height: 315px;
}

.red-info-text {
  grid-area: 1 / 5 / span 1 / span 2;
  background: #e43d3d;
  color: white;
  font-size: 25px;
  padding: 15px;
  text-align: left;
  height: 475px;
}

.fruit-description {
  grid-area: 5 / 1 / span 2 / span 2;
  padding: 20px;
  text-align: left;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 290px;
}

.fruit-description h2 {
  color: #b10000;
  margin-bottom: 10px;
}

.basket-image {
  grid-area: 3 / 3 / span 3 / span 2;
  height: 610px;
}

.orange-image {
  grid-area: 4 / 5 / span 2 / span 2;
  height: 449px;
}

.dropdown-wrapper {
  position: relative;
  width: fit-content;
  margin: 20px auto; 
  z-index: 10;
  text-align: center;
}

.menu-toggle {
  background-color: rgb(217, 243, 99);
  color: #0052ff;
  padding: 10px 15px;
  border-radius: 90%;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
}

.dropdown-menu {
  display: none;
  position: relative;
  top: 0%;
  left: 0;
  width: 180px;
  background-color: rgb(217, 243, 99);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0;
  transform: scale(0.95); 
  transition: transform 0.3s ease;
}

.dropdown-menu.show {
  display: block;
  transform: scale(1);
}

.dropdown-menu li {
  list-style: none;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #0052ff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.title {
  margin-top: 20px;
  justify-content: center;
  width: 100%;
}

.title-img {
  width: 800px;
  max-width: 80%;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 10px 0;
  font-size: 14px;
  color: blue;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1180px) {



  .grid-item {
    width: 100%;
    max-width: 373px;
    background: white;
    border-radius: 20px;
    padding: 10px;
  }

  .grid-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  
}

/* FULL MOBILE SUPPORT */
@media (max-width: 768px) {

  nav {
    gap: 20px;
  }

  nav a {
    font-size: 20px;
    margin-top: 100px;
  }

  .logo-left{
        width: 100px;
        top: -13px;
        left: -10px;

      }

  .logo-right img {
    width: 60px;
  }
  .carousel {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 50px;
  }

  .carousel .carousel-items {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row; /* Carousel scrolls horizontally through 4 carousels */
    transition: transform 0.5s ease;
  }

  .carousel .carousel-item {
    min-width: 100%; /* One carousel per screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 20px;
    align-items: center;
  }

  .grid-item {
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    padding: 10px;
  }

  .grid-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .red-info-text,
  .fruit-description {
    text-align: center;
    font-size: 16px;
    padding: 20px;
    height: auto;
  }

  .carousel .carousel-controls {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 100;
  }

  .carousel .carousel-controls button {
    background-color: rgba(0,0,0,0.3);
    color: white;
    font-size: 20px;
  }

  .carousel .pagination-dots {
    display: none; /* Optional */
  }
}
