/* ---------------------
   RESET & GLOBAL STYLES
   --------------------- */
   :root {
    --primary-color: #00BCD4; /* Bright Cyan */
    --secondary-color: #007B9E; /* Darker Cyan/Blue */
    --accent-color: #FF8A65; /* Soft Orange/Coral Accent */
    --light-bg: #F0FBFF; /* Very Light Blue */
    --medium-bg: #E0F7FA; /* Light Cyan */
    --dark-text: #333;
    --light-text: #fff;
    --heading-font: 'Lobster', cursive;
    --body-font: 'Poppins', sans-serif;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 10px;
    --transition-speed: 0.3s;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
  }
  
  body {
    font-family: var(--body-font);
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  main {
    flex: 1; /* Ensure footer stays at bottom */
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
  }
  
  a:hover {
    color: var(--primary-color);
  }
  
  ul {
    list-style: none;
  }
  
  h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 0.75em;
  }
  
  h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-family: var(--heading-font); color: var(--secondary-color); } /* Responsive heading */
  h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--secondary-color); }
  h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--secondary-color); }
  p { margin-bottom: 1em; }
  
  /* ----------------
     UTILITIES & BUTTONS
     ---------------- */
  .btn {
    display: inline-block;
    padding: 0.8em 1.8em;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
  }
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
  }
  
  .btn-small {
    padding: 0.5em 1.2em;
    font-size: 0.85rem;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0; /* Adjusted */
    position: relative;
    padding-bottom: 15px;
  }
  
  .section-title::after {
    content: '';
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    display: block;
    margin: 10px auto 0;
  }
  
  .alt-bg {
    background-color: var(--medium-bg);
  }
  
  /* ----------------
     HEADER / NAVBAR
     ---------------- */
  #main-header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: top 0.3s ease-in-out;
  }
  
  .header-scrolled { /* Class added by JS on scroll */
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img {
    max-height: 60px; /* Adjusted logo size */
    transition: max-height var(--transition-speed) ease;
  }
  
  .header-scrolled .logo img {
       max-height: 50px; /* Slightly smaller logo on scroll */
  }
  
  /* NAV (Desktop) */
  nav ul {
    display: flex;
  }
  
  nav ul li {
    margin-left: 25px;
  }
  
  nav ul li a.nav-link {
    color: var(--dark-text);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  nav ul li a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
  }
  
  nav ul li a.nav-link:hover::after,
  nav ul li a.nav-link.active::after {
    width: 100%;
  }
  
  nav ul li a.nav-link.active {
      color: var(--primary-color);
  }
  
  /* Hamburger Menu Button */
  .menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above nav */
  }
  
  .menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
  }
  
  /* Hamburger animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  
  /* -------------------
     OVERLAY (MOBILE MENU)
     ------------------- */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 998; /* Below header, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* ----------------
     HERO SECTION
     ---------------- */
  .hero {
    min-height: 95vh; /* Slightly less than full viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px; /* Account for fixed header */
  }
  
  .hero-content {
    max-width: 800px;
  }

  .video-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
  }
  
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Adjust darkness here */
    z-index: -1;
  }
  
  .hero h1 {
      font-size: clamp(3rem, 8vw, 6rem); /* Larger hero heading */
      margin-bottom: 0.2em;
      color: var(--light-text);
      text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  }
  
  .hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 1.5em;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  }
  
  .hero .btn {
      padding: 1em 2.5em;
      font-size: 1rem;
  }
  
  /* Hero content entrance animation */
  .hero-content.animate-on-load {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 0.8s 0.3s ease forwards;
  }
  
  @keyframes fadeInUp {
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  
  /* ------------------------
     CATEGORIES SECTION (Index Page)
     ------------------------ */
  .categories, .flavor-category {
    padding: 80px 0;
  }
  
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
  }
  
  .category-card, .product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  .category-card:hover, .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
  }
  
  .category-image, .product-image {
    overflow: hidden; /* Keep image zoom contained */
    height: 250px; /* Fixed height for consistency */
    position: relative;
  }
  
  .category-image img, .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop */
    transition: transform 0.4s ease;
  }
  
  .category-card:hover .category-image img,
  .product-card:hover .product-image img {
    transform: scale(1.08);
  }
  
  .category-info, .product-info {
    padding: 25px 20px;
    flex-grow: 1; /* Allow info section to grow */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button down in category card */
  }
  
  .category-info h3, .product-info h3 {
      margin-top: 0;
      margin-bottom: 0.5em;
  }
  
  .category-info p, .product-info p {
    font-size: 0.9rem;
    margin-bottom: 1.5em;
    color: #555;
    flex-grow: 1; /* Takes up space before button */
  }
  
  .category-info .btn {
      margin-top: auto; /* Pushes button to bottom */
  }
  
  
  /* ------------------------
     ABOUT US SECTION
     ------------------------ */
  .about {
      padding: 80px 0;
      background-color: var(--medium-bg);
  }
  
  .about-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
  }
  
  .about-content ul {
      margin-top: 20px;
      padding-left: 5px;
  }
  
  .about-content ul li {
      margin-bottom: 10px;
      font-weight: 500;
      display: flex;
      align-items: center;
  }
  
  .about-content ul li i {
      color: var(--primary-color);
      margin-right: 10px;
      font-size: 1.2em;
  }
  
  .about-image img {
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-medium);
  }
  
  /* ------------------------
     DAIRY LINK SECTION
     ------------------------ */
  .dairy-link-section {
      padding: 80px 0 0; /* Padding top only */
      text-align: center;
  }
  .dairy-link-section .container p {
      max-width: 600px;
      margin: 0 auto 30px;
  }
  
  .dairy-cover {
    margin-top: 40px;
    position: relative;
    width: 100%;
    min-height: 40vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url("sf_images/cover-image.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .dairy-cover .btn {
    padding: 1em 2.5em;
    font-size: 1rem;
  }
  
  
  /* ------------------------
     FLAVORS PAGE SPECIFIC
     ------------------------ */
  .flavors-page .page-title-section {
      background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
      color: var(--light-text);
      padding: 100px 0 60px;
      text-align: center;
      margin-top: 70px; /* Adjust for header height */
  }
  
  .flavors-page .page-title-section h1 {
      color: var(--light-text);
      font-family: var(--body-font); /* Use body font for this H1 */
      font-weight: 700;
      font-size: clamp(2rem, 5vw, 3rem);
      margin-bottom: 0.2em;
  }
  
  .flavors-page .page-title-section p {
      font-size: 1.1rem;
      opacity: 0.9;
  }
  
  
  /* ----------------
     FOOTER
     ---------------- */
  footer {
    background: var(--secondary-color);
    color: #e0f7fa; /* Light text on dark background */
    padding-top: 50px;
    margin-top: 60px; /* Space above footer */
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    align-items: start; /* Align items to the top */
  }
  
  .footer-logo img {
      max-height: 50px;
      margin-bottom: 15px;
  }
  
  .footer-container h4 {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
  }
  
  .footer-container p,
  .footer-container ul li a {
    color: #e0f7fa;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .footer-container ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  }
  
  .footer-contact i {
      margin-right: 8px;
      color: var(--primary-color);
  }
  
  .footer-social a {
      color: #e0f7fa;
      font-size: 1.5rem;
      margin-right: 15px;
      transition: color var(--transition-speed) ease;
  }
  
  .footer-social a:hover {
      color: var(--primary-color);
      transform: scale(1.1);
  }
  
  .footer-bottom {
    background: #005f73; /* Slightly darker shade */
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #ade8f4;
  }

  .footer-contact p {
    margin-bottom: 12px;
    line-height: 1.6;
}

  .footer-contact i {
      min-width: 20px;
      margin-right: 10px;
  }

  .footer-contact a {
      color: #e0f7fa;
      text-decoration: none;
      transition: color var(--transition-speed) ease;
  }

  .footer-contact a:hover {
      color: var(--primary-color);
  }
  
  
  /* ----------------
     ANIMATIONS (Scroll Reveal)
     ---------------- */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger reveal animations */
  .category-card.reveal:nth-child(2), .product-card.reveal:nth-child(2) { transition-delay: 0.1s; }
  .category-card.reveal:nth-child(3), .product-card.reveal:nth-child(3) { transition-delay: 0.2s; }
  .category-card.reveal:nth-child(4), .product-card.reveal:nth-child(4) { transition-delay: 0.3s; }
  /* Add more if needed */
  

  /* ------------------------
   PRODUCT GRID ADJUSTMENTS
   ------------------------ */
.product-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  max-width: none !important;
  margin: initial;
}

.footer-logo {
  background-color: white;
  padding: 10px;
}

  
  /* ----------------
     RESPONSIVE
     ---------------- */

    /* For larger screens - 3 columns */
  @media (min-width: 1024px) {
    .product-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  }

  /* Mobile first approach - 1 column */
  @media (max-width: 767px) {
    .product-grid {
      grid-template-columns: 1fr;
    }
  }
   
  
  /* Tablets and smaller desktops */
  @media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        margin-top: 30px;
        max-width: 500px; /* Limit image width */
        margin-left: auto;
        margin-right: auto;
    }
    .about-content ul {
        justify-content: center; /* Center list items */
        padding-left: 0;
    }
  }
  
  /* Mobile devices */
  @media (max-width: 768px) {
    html {
      font-size: 15px; /* Slightly smaller base font on mobile */
    }
  
    /* Show hamburger menu */
    .menu-toggle {
      display: flex;
    }
  
    /* Style the mobile nav menu */
    nav ul#nav-menu {
      position: fixed;
      top: 0px; /* Position below header */
      right: -100%; /* Start offscreen */
      width: 300px; /* Or percentage like 80% */
      max-width: 80%;
      height: 100vh;
      background: #fff;
      box-shadow: -3px 0 15px rgba(0, 0, 0, 0.15);
      flex-direction: column;
      align-items: flex-start;
      padding: 100px 30px 30px; /* Top padding for header */
      transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
      z-index: 999;
    }
  
    nav ul#nav-menu.active {
      right: 0; /* Slide in */
    }
  
    nav ul li {
      margin: 0 0 20px 0; /* Vertical spacing */
      width: 100%;
    }
  
    nav ul li a.nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block; /* Make links take full width */
        width: 100%;
    }
     nav ul li a.nav-link::after {
         display: none; /* Hide underline on mobile nav */
     }
     nav ul li a.nav-link.active {
          color: var(--primary-color); /* Highlight active link */
          font-weight: 700;
      }
  
    .hero {
        min-height: 70vh;
        background-attachment: scroll; /* Parallax often doesn't work well on mobile */
    }
  
    .category-grid, .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
  
    .footer-container {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
     .footer-container > div {
        margin-bottom: 20px;
     }
      .footer-container h4 {
          display: inline-block; /* Keep underline contained */
          border-bottom: 1px solid var(--primary-color);
          padding-bottom: 5px;
      }
      .footer-logo img {
          margin: 0 auto 15px; /* Center logo */
      }
       .footer-social {
          margin-top: 15px;
      }
  
  }