 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

.index, .about, .shop, .contact, .checkout, .thank-you {
    margin-top: 100px;
    padding-top: 20px;
    padding-bottom: 50px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffee1; /* Light cream background */
    text-align: center;
    padding: 100px 20px 20px; /* Add top padding for navbar */
    color: black;
}

h1 {
    color: #146f77; /* Dark teal */
    font-size: 32px;
    font-weight: 600;
}

h2 {
    color: #237778; /* Deep sea green */
    font-size: 24px;
    font-weight: 400;
    margin-top: 20px;
}

p, li {
    font-size: 18px;
    color: #237778;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

ul, ol {
    max-width: 700px;
    margin: 0 auto;
}

img.logo {
    display: block;
    margin: 0 auto;
    max-width: 250px;
}

form {
    background: #2dafa1;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 20px auto;
}

form * {
    font-family: 'Poppins', sans-serif;
    color: #fffee1;
}

input, textarea {
    width: 90%;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #78e4e6;
    border-radius: 5px;
    font-size: 16px;
    background: #fffee1;
    color: #237778;
    display: block;
}

input::placeholder, textarea::placeholder {
    color: #237778;
    opacity: 0.8;
}

button {
    background-color: #34b2ae;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

button:hover {
    background-color: #146f77;
}

/* Navigation Bar */
nav {
    width: 100%;
    background-color: #237778;
    display: flex;
    justify-content: center; /* Center everything */
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

/* Navigation List */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Left side (Home, Shop, About Us) */
nav .left {
    display: flex;
    gap: 20px; /* Spacing between Home, Shop, About Us */
}

/* Right side (Contact Us) */
nav .right {
    margin-left: auto; /* Push to the right */
    margin-right: 60px; /* Add a margin so it doesn’t touch the edge */
}

/* Navigation Links */
nav ul li a {
    font-family: 'Poppins', sans-serif;
    color: #fffee1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 4px 12px; /* Smaller padding inside buttons */
    border: 1.5px solid #fffee1; /* Thinner border */
    border-radius: 6px; /* Slightly rounded for a sleek look */
    transition: 0.3s ease-in-out;
}

/* Hover Effect */
nav ul li a:hover {
    background-color: #34b2ae;
    color: white;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-logo {
    max-width: 200px; /* Adjust size */
    display: block;
    margin: 0 auto;
}

.home-sections {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.home-item {
    position: relative;
    width: 1000px; /* Doubled width */
    height: 450px; /* Slightly taller */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center align */
}

.home-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px; /* Larger title */
    font-weight: 600;
    color: #fffee1;
    background: rgba(45, 175, 161, 0.8);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    transition: opacity 0.3s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 111, 119, 0.85); /* Dark overlay for contrast */
    color: #fffee1; /* Cream text */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 30px;
}

.overlay div {
    display: flex;
    flex-direction: column; /* Stack each point below the previous one */
    gap: 15px; /* Space between each point */
}

.overlay p {
    font-size: 22px; /* Readable text */
    font-weight: 400;
    line-height: 1.6;
}

.home-item:hover .overlay {
    opacity: 1;
}
.overlay p, 
.overlay h1, 
.overlay h2 {
    color: #fffee1; /* Creamy color */
}
.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay div {
    width: 100%;
}

.overlay {
    display: flex;
    flex-wrap: wrap;
}

.overlay {
    padding: 15px;
}

.text-container {
    width: 1000px; /* Ensures it matches the image width */
    max-width: 100%; /* Prevents overflow on smaller screens */
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

p, li, ul, ol {
    max-width: 1000px; /* Match image width */
    text-align: center; /* Ensure alignment */
}

/* Center the logo properly */
.nav-logo, .logo-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Align vertically */
    width: 100%; /* Ensure full width */
    margin: 0 auto; /* Center in the available space */
    position: relative;
}

/* Ensure logo size is correct */
img.logo {
    max-width: 180px; /* Adjust size */
    height: auto; /* Maintain aspect ratio */
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    width: 100%;
}

/* Ensure navigation bar sticks to the top */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

/* Make navigation bar semi-transparent when scrolling */
nav.scrolled {
    background-color: rgba(35, 119, 120, 0.85); /* Semi-transparent dark green */
}

/* Hide logo when scrolling down */
.logo-container {
    transition: opacity 0.3s ease-in-out;
}

.scrolled .logo-container {
    opacity: 0;
    pointer-events: none;
}

.navbar-links {
    display: none; /* Hide menu by default */
}

.navbar-links.active {
    display: block; /* Show menu when active */
}

/* Default navbar size */
.navbar {
    transition: all 0.3s ease-in-out;
    height: 80px;  /* Original height */
    display: flex;
    justify-content: space-between; /* Keep left and right sections positioned correctly */
    align-items: center;
    padding: 10px 20px;
    pointer-events: auto !important; /* Ensures it's always clickable */
}

/* Smaller navbar when scrolled */
.navbar.scrolled {
    height: 50px;  /* Adjust this value as needed */
}

.nav-logo {
    position: absolute;  /* Ensures it stays in the center */
    left: 49%;
    transform: translateX(-50%);  /* Truly centers it */
    pointer-events: none; /* Prevents logo from blocking clicks */
}

/* Default logo size */
.nav-logo img {
    transition: all 0.3s ease-in-out;
    height: 110px;  /* Original size */
}

/* Smaller logo when navbar is scrolled */
.navbar.scrolled .nav-logo img {
    height: 40px;  /* Adjust size as needed */
}

body {
  padding-top: 100px; /* try 80-100px depending on your actual navbar height */
}

.home-button {
    background-color: #237778;
    color: #fffee1;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #34b2ae;
    color: white;
}

.thank-you-container {
  text-align: center;
  margin-top: 100px;
}

/* Desktop only */
.desktop-only {
  display: flex;
}

/* Hide mobile stuff by default */
.nav-mobile-left,
.nav-mobile-right,
.mobile-nav {
  display: none;
}

/* Mobile layout only */
@media (max-width: 768px) {
   .mobile-nav li a {
     border: none !important;
     border-radius: 0 !important;
   }
 
   /* Reduce navbar padding so cart isn't cut off */
   .navbar {
     padding: 10px;
     justify-content: center;
     position: fixed;
   }
 
   /* Hide desktop navigation */
   .navbar ul.left,
   .navbar ul.right {
     display: none;
   }
 
   /* Show mobile hamburger and cart icons */
   .nav-mobile-left,
   .nav-mobile-right {
     display: block;
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
   }
 
   .nav-mobile-left {
     left: 20px;
   }
 
   .nav-mobile-right {
     right: 20px;
   }
 
    .hamburger {
     font-size: 24px;
     background: none;
     border: none;
     color: #fffee1;
     cursor: pointer;
   }
 
   /* Hide mobile nav menu by default */
   .mobile-nav {
     display: none;
     flex-direction: column;
     background-color: #237778; /* Match navbar color */
     position: absolute;
     top: 100px; /* below navbar */
     left: 0;
     width: 100%;
     padding: 10px 0;
     z-index: 999;
   }
 
   /* Show mobile menu when toggled */
   .mobile-nav.show {
     display: flex;
   }
 
     .mobile-nav li {
   text-align: left;
   padding: 10px 20px;
   }

    .mobile-nav li a {
      display: block;
      color: #fffee1;
      text-decoration: none;
      font-size: 16px;
      font-weight: 600;
      padding: 5px 0;
      border: none;           /* ✅ Remove the frame */
      border-radius: 0;       /* ✅ No rounded corners */
    }

    .mobile-nav {
      align-items: flex-start; /* Make sure links align left */
    }

    .mobile-nav {
      align-items: flex-start;
      text-align: left;
      padding-left: 20px; /* optional, for spacing */
    }
    
    .mobile-nav li {
      width: 100%; /* make list item full width */
    }
    
    .mobile-nav li a {
      display: block;
      text-align: left;      /* ✅ force text alignment */
      padding: 10px 0;
      color: #fffee1;
      text-decoration: none;
      font-size: 16px;
      font-weight: 600;
    }
    
    .mobile-nav {
      display: none;
      flex-direction: column;
      background-color: #237778;
      position: fixed;
      top: 90px; /* 🔼 increase this to push it below logo */
      left: 0;
      width: 100%;
      padding: 10px 0;
      z-index: 999;
    }
    
    .nav-mobile-right {
      right: 40px;
    }

    /* Navbar shrinks and becomes semi-transparent when scrolled */
    .mobile-nav.scrolled {
        top: 60px;
        background-color: rgba(35, 119, 120, 0.85);
    }

    /* Ensure navigation bar sticks to the top */
    mobile-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: background-color 0.3s ease-in-out;
    }
    
    /* Hide logo when scrolling down */
    .logo-container {
        transition: opacity 0.3s ease-in-out;
    }
    
    .scrolled .logo-container {
        opacity: 0;
        pointer-events: none;
    }
    
    .navbar-links {
        display: none; /* Hide menu by default */
    }
    
    .navbar-links.active {
        display: block; /* Show menu when active */
    }
    
    /* Default navbar size */
    .navbar {
        transition: all 0.3s ease-in-out;
        height: 70px;  /* Original height */
        display: flex;
        justify-content: space-between; /* Keep left and right sections positioned correctly */
        align-items: center;
        padding: 10px 20px;
        pointer-events: auto !important; /* Ensures it's always clickable */
    }
    
    /* Smaller navbar when scrolled */
    .navbar.scrolled {
        height: 40px;  /* Adjust this value as needed */
    }
    
    .nav-logo {
        position: absolute;  /* Ensures it stays in the center */
        left: 45%;
        transform: translateX(-50%);  /* Truly centers it */
        pointer-events: none; /* Prevents logo from blocking clicks */
    }
    
    /* Default logo size */
    .nav-logo img {
        transition: all 0.3s ease-in-out;
        height: 110px;  /* Original size */
    }
    
    /* Smaller logo when navbar is scrolled */
    .navbar.scrolled .nav-logo img {
        height: 40px;  /* Adjust size as needed */
    }

    .nav.scrolled {
        top: 40px;  /* Adjust this value as needed */
        background-color: rgba(35, 119, 120, 0.85);
    }

    .hamburger.scrolled {
        background-color: rgba(35, 119, 120, 0.85);
    }

    .mobile-nav.scrolled {
      top: 60px;
      background-color: rgba(35, 119, 120, 0.85);
    }

    .hamburger {
       background: none !important;
    }
  
    .hamburger.scrolled {
       background: none !important;
    }

    .home-item {
     width: 95%;               /* Responsive width on mobile */
     max-width: 100%;          /* Prevent overflow */
     height: auto;             /* Let the height adjust naturally */
     aspect-ratio: 2 / 1;      /* Optional: keep rectangular shape */
     margin: 10px auto;
   }
   
   .home-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;        /* Maintain good image cropping */
   }
   
   .title {
     font-size: 22px;
     padding: 10px 20px;
   }
   
   .overlay p {
     font-size: 16px;
   }

   .text-container,
   p, li, ul, ol {
     padding-left: 16px;
     padding-right: 16px;
     font-size: 16px;
     line-height: 1.6;
     text-align: center;
     max-width: 100%;
     box-sizing: border-box;
   }

   h1 {
     font-size: 24px;
   }
   
   h2 {
     font-size: 20px;
   }

   .overlay p {
     font-size: 14px;
     line-height: 1.4;
     padding: 0 10px;
     max-width: 90%;
   }

   .overlay {
     display: flex;
     justify-content: center;   /* center horizontally */
     align-items: center;       /* center vertically */
     text-align: center;
     flex-direction: column;
     font-size: 12px;
     padding: 10px;
     height: 100%;              /* ensure full height of parent */
     box-sizing: border-box;
   }
 
   .overlay div {
     width: 100%;
     max-width: 90%;
     margin: 0 auto;
   }
 
   .overlay p {
     font-size: 14px;
     line-height: 1.4;
     padding: 0;
     margin: 5px 0;
   }

    .home-item .overlay {
      font-size: 12px; /* slightly smaller font */
      padding: 12px;
      max-height: 280px; /* increase height */
    }
  
    .home-item {
      height: 280px; /* match the overlay */
    }
}
