/* ================================
   Global Variables
================================ */
:root {
  --primary: #1e4620;
  --secondary: #f4c542;
  --accent: #f7fdf9;
  --dark: #222;
  --white: #fff;
  --text: #222;
  --highlight: #a3c585;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ================================
   Base
================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--accent);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  padding-top: 70px; /* match header height */
}
/* ================================
   Header / Navigation
================================ */
header {
  background: linear-gradient(90deg, #008080, #2E8B57);
  color: var(--white);
  box-shadow: 0 4px 6px var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between; /* logo left, menu right */
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;  /* keeps whole logo inline */
  color: var(--white);
}

.logo .separator {
  margin: 0 8px;
  font-weight: normal;
  color: var(--secondary);
}

.logo .title {
  white-space: nowrap; /* ensures Certified Nutritionist stays together */
  font-weight: normal; /* optional: lighter than name */
}


.navbar {
  display: flex;
  align-items: center;
  position: relative;
}

/* desktop nav */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* menu toggle (hamburger) */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
}

/* ================================
   Mobile Navigation
================================ */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
  }

  .logo {
    font-size: 1.1rem;
    line-height: 1.4;
    white-space: normal;
  }

  /* Burger menu visible on mobile */
  .menu-toggle {
    display: block;
    margin-left: auto; /* pushes it to the right side */
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 55px;        /* right below navbar */
    right: 10px;      /* align on right side */
    background: #222;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 0;     /* collapsed state */
    width: 180px;
    z-index: 999;
  }

  .nav-links.show {
    max-height: 400px;
    padding: 15px;
  }
}


/* ================================
   Hero Section
================================ */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('slider1.jpg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260') 
              no-repeat center center/cover;
  height: calc(90vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 70px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: slideUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: auto;
  animation: fadeIn 2s ease-in;
}

/* ================================
   Slider
================================ */
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 850px;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: #000;
}

.active-slide {
  display: block;
  animation: fadeSlide 1s ease-in-out;
}

@keyframes fadeSlide {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero text overlay */
.hero-text {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -25%);
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
  max-width: 80%;
}

.hero-text h1 {
  font-size: 3rem;
  margin-top: 10px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #000;
}

/* Slider arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0.5 1rem;
  z-index: 2;
}

.slider-nav button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background-color 0.3s;
}
#prev {
  left: 9px;  /* adjust how far from left edge */
}

#next {
  right: 9px; /* adjust how far from right edge */
}

.slider-nav button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* Desktop (keep cover for wide screens) */
.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block; /* avoid inline gaps */
}

/* Mobile Slider Fix */
@media (max-width: 768px) {
  .slider { max-height: 100vh; }
  .slide img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    object-position: top 20%; 
  }
  .hero-text {
    top: 20%;
    transform: translate(-50%, -25%);
    max-width: 90%;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }

}



/* Mobile Slider Fix */

/* @media (max-width: 768px) {
  .slider { max-height: 100vh; }
  .slide img {
    height: 100vh;
    object-fit: cover;
    object-position: center;  /* ✅ slight shift towards left */
  }
  
 /* .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* keep full coverage */
/*    object-position: right top; /* cut left side, show right */
/*    display: block;
  }
  
  .hero-text {
    top: 20%;
    transform: translate(-50%, -20%);
    max-width: 90%;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
} */

/* Tablets */
@media (max-width: 1024px) {
  .slide img {
    object-position: top 15%;  /* slightly left */
  }
}

/* Very small mobiles */
@media (max-width: 480px) {
  .slide img {
    object-position: top 35%;  /* even more left */
  }
}


/* ================================
   Sections
================================ */
.section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  animation: fadeIn 1s ease-in;
  scroll-margin-top: 100px;
}

.section h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
  border-left: 6px solid var(--secondary);
  padding-left: 12px;
}

.service-box, 
.transformation-gallery img {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--shadow);
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s;
}

.service-box {
      display: flex;
      align-items: flex-start; /* keeps text aligned with image top */
      gap: 15px; /* space between image and text */
      flex-wrap: wrap; /* allows stacking on small screens */
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px var(--shadow);
}

.service-box img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* ensure text doesn't break oddly */
.service-content {
  flex: 1;
}

.service-content h1{
      margin: 10px 0;       /* spacing between lines */
      white-space: normal; /* allows wrapping if needed */
      text-align: left;
}


/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .service-box  {
    flex-direction: column;
    text-align: center;   /* center content for small screens */
  }

  .service-box img {
    margin: 0 auto 15px auto;
    max-width: 100%;
  }

  .service-content p {
    text-align: left;  /* keep text left aligned under image */
  }
 .service-content h1 {
  margin: 10px 0;
  display: block;
  font-size: 1.5rem;
  text-align: center;
  white-space: nowrap; /* keep text in one line */
}
}


.transformation-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.transformation-gallery img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.transformation-gallery img:hover {
  transform: scale(1.05);
}

.timings ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}

.service-box {
  display: flex;
  align-items: flex-start;   /* keep items aligned */
  gap: 20px;
  text-align: left;          /* text stays aligned */
}

.faq h4 {
  margin-top: 20px;
  color: var(--primary);
  cursor: pointer;
}

.faq p {
  display: none;
  margin-top: 5px;
}

/* ================================
   Footer
================================ */
footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 25px 0;
  margin-top: 60px;
  font-size: 0.95rem;
}

/* ================================
   Animations
================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================================
   Responsive
================================ */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-text p { font-size: 0.9rem; }
  .transformation-gallery { flex-direction: column; align-items: center; }
}

.hero-text {
    top: 20%;
    left: 50%;
    transform: translate(-50%, -25%); /* same position */
    max-width: 90%; /* little wider for small screens */
  }

.consultation-text {
  font-size: 30px;   /* adjust as needed */
  margin: 5px;
  text-align: left;
  text-decoration: solid;
}

.consultation-text .line1,
.consultation-text .line2 {
  display: inline;  /* default: desktop → inline */
  white-space: nowrap; /* prevent breaking inside words */
}

@media (max-width: 768px) {
  .consultation-text .line1,
  .consultation-text .line2 {
    display: block; /* mobile → stacked lines */
    font-size: 26px;
    text-align: left;
  }
}
    
    /* portfolio for desktop */
    #portfolio {
      text-align: left;
      margin-top: 50px;
    }
    
    #portfolio .portfolio-text {
      font-size: 2rem;
      margin-bottom: 20px;
      text-align: left;
    }
    
    #portfolio .portfolio-gallery1 {
      display: flex;
      justify-content: left;
      gap: 20px;
      flex-wrap: wrap; /* Responsive layout */
      margin-bottom: 15px;
    }
    
    #portfolio .portfolio-gallery1 img {
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      transition: transform 0.3s ease;
      height: 100%;
      max-width: 250px; /* Ensures images are responsive */
    }
    
    #portfolio .portfolio-gallery2 {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap; /* Responsive layout */
      margin-bottom: 15px;
    }
    
    #portfolio .portfolio-gallery2 img {
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      transition: transform 0.3s ease;
      width: 100%;
      height: 100%;
    }
    
    /* Hover effect for desktop */
    #portfolio .portfolio-gallery1 img:hover {
      transform: scale(1.1);
    }
    #portfolio .portfolio-gallery2 img:hover {
      transform: scale(1.1);
    }
    
    /* Mobile View (Max width 768px) */
    @media (max-width: 768px) {
      #portfolio .portfolio-gallery1 {
        flex-direction: column; /* Stack images vertically on mobile */
        align-items: center;    /* Center the images */
      }
    
      #portfolio .portfolio-gallery1 img {
        max-width: 90%;  /* Allow images to take up more space */
        margin-bottom: 15px;  /* Space between images */
        max-height: 100%;
      }
      #portfolio .portfolio-gallery2 {
        flex-direction: column; /* Stack images vertically on mobile */
        align-items: center;    /* Center the images */
      }
    
      #portfolio .portfolio-gallery2 img {
        max-width: 100%;  /* Allow images to take up more space */
        margin-bottom: 15px;  /* Space between images */
        max-height: 100%;
      }
    
      #portfolio .portfolio-text {
        font-size: 26px;  /* Slightly smaller text */
        text-align: left;
      }
    }
    
    /* Very small mobile screens (Max width 480px) */
    @media (max-width: 480px) {
      #portfolio .portfolio-gallery img {
        max-width: 80%;  /* Images take up full width on very small screens */
        margin-bottom: 10px;  /* Reduce spacing */
        max-height: 90%;
      }
    
      #portfolio .portfolio-text {
        font-size: 26px;  /* Even smaller text for tiny screens */
        text-align: left;
      }
    }
    
    
