body {
  margin-left: 5%; /* 5% of viewport width on left */
  margin-right: 5%; /* 5% of viewport width on right */
  margin-top: 80px;
  width: auto; /* Allows margin to adjust width */
  max-width: 90%; /* Prevents it from exceeding 90% of viewport */
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: rgba(70, 87, 148, 0.9);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  /* justify-content: center; Centers vertically */
}

/* screenshot of iphone */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 400px;
  margin: 30px auto;
}

.screenshot-image {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid #000000; /* Stroke color matching your theme */
  border-left: 3px solid #000000;
  border-right: 3px solid #000000;
  border-top: 3px solid #000000;
  border-bottom: none; /* No bottom border */
  border-radius: 20px 20px 0 0; /* Rounded corners only on top */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow */
  object-fit: contain; /* Ensures image fits properly */
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Side Navigation Panel */
.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(30, 42, 68, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 0 30px 0;
}

.side-nav.active {
    left: 0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link:hover {
    background: rgba(216, 167, 177, 0.2);
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(216, 167, 177, 0.3);
    color: #d8a7b1;
}

/* Icon for nav links */
.nav-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #d8a7b1;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: center; /* Centers logo and tagline horizontally */
  max-width: 400px; /* Matches container max-width */
}

.logo {
  width: 15vw; /* Relative to viewport width, adjustable */
  padding-top: 15vw; 
  background: url('/images/protok.png') no-repeat center;
  background-size: contain;
  max-width: 130px; /* Caps the max size */
  min-width: 50px;
  box-sizing: border-box; /* Ensures padding doesn’t add to total size */
}

.tagline {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2em;
  color: #d8a7b1;
  white-space: nowrap; /* Prevents wrapping unless necessary */
  overflow: clip; 
  text-overflow: clip;
}

.container {
  text-align: center;
  width: 90%; 
  max-width: 400px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nutrient-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.nutrient-box div {
  background: #fff;
  color: #1e2a44;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  margin: 0 5px;
}

.nutrient-box div:nth-child(1) { background: #d8a7b1; } /* Protein */
.nutrient-box div:nth-child(2) { background: #a68b5e; } /* Carbs */
.nutrient-box div:nth-child(3) { background: #f28c82; } /* Fat */

.food-item {
  display: flex;
  justify-content: space-between;
  background: #2e3a5e;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
}

.food-item div {
  flex: 1;
  text-align: center;
}

.food-item .serving {
  font-size: 0.8em;
  color: #ccc;
}

/* Custom font style */
:root {
  --custom-font-body-color: rgba(70, 87, 148, 0.9);
}

/* Style for the "ProTOK" part */
.custom-font-title span {
  display: block; /* Forces each span onto a new line */
}

/* Custom title font style for landing page */
.custom-font-title {
  font-family: 'Futura', 'Trebuchet MS', sans-serif; /* Modern, geometric font stack */
  font-size: 2em; /* Larger size for impact */
  font-weight: 700; /* Bold for emphasis */
  line-height: 1.2; /* Tight line spacing for modern feel */
  text-transform: uppercase; /* Uppercase for a bold, catchy look */
  letter-spacing: 0.15em; /* Increased spacing for style */
  color: #d8a7b1; /* Matches your Protein color for brand consistency */
}

/* Style for the "ProTOK" part */
.custom-font-title .highlight {
  color: #f28c82; /* Matches your Fat color for contrast */
  font-weight: 900; /* Extra bold for "ProTOK" */
  letter-spacing: 0.2em; /* Slightly more spacing for emphasis */
}

.custom-font-body {
  color: var(--custom-font-body-color);
  font-family: 'Helvetica Neue', Arial, sans-serif; /* Clean, modern font stack */
  font-size: 1.1em; /* Slightly larger for emphasis */
  font-weight: 500; /* Medium weight for readability */
  line-height: 1.5; /* Comfortable line spacing */
  letter-spacing: 0.1em; /* Added character spacing */
}

.custom-font-small {
  color: var(--custom-font-body-color);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.9em; /* Slightly larger for emphasis */
  font-weight: 200; 
  line-height: 1.5; /* Comfortable line spacing */
}

/* Reusable button style */
.app-button {
  display: inline-block;
  padding: 12px 20px;
  background: #d8a7b1;
  color: #1e2a44;
  text-decoration: none;
  border-radius: 20px;
  margin-top: 10px;
  font-size: 1.2em;
  text-align: center;
  transition: background 0.3s; /* Smooth hover effect */
}

.app-button:hover {
  background: #c28a9b; /* Slightly darker shade on hover */
}

/* download button style */
.app-button-download {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(70, 87, 148, 0.9);
  color: #1e2a44;
  text-decoration: none;
  border-radius: 20px;
  margin-top: 10px;
  font-size: 1.2em;
  text-align: center;
  transition: background 0.3s; /* Smooth hover effect */
}

.app-button-download:hover {
  background: rgba(55, 74, 143, 0.9); /* Slightly darker shade on hover */
}

/* Form Styles */
.form-section-background {
  margin-top: 40px;
  width: 100vw;
  background: rgba(240, 240, 240, 0.5); /* Light grey with transparency */
  display: flex;
  justify-content: center;
}

.form-container {
  width: 90%;  
  max-width: 400px;
  margin: 40px;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(70, 87, 148, 0.3);
  border-radius: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1em;
  color: rgba(70, 87, 148, 0.9);
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #d8a7b1;
}

.form-input::placeholder {
  color: rgba(70, 87, 148, 0.5);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}
.instagram-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #ffffff;
}

.instagram-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.instagram-icon svg {
  width: 22px;
  height: 22px;
}
/* 
@media (max-width: 768px) {
  .instagram-icon {
      top: 25px;
      right: 25px;
      width: 35px;
      height: 35px;
  }
  
  .instagram-icon svg {
      width: 20px;
      height: 20px;
  }
} */

@media (max-width: 480px) {
  .image-container {
    width: 96%;
    margin: 20px auto;
  }

  .form-container {
    width: 96%;
    margin-left: 2%; /* 5% of viewport width on left */
    margin-right: 2%; /* 5% of viewport width on right */
  }
  
  .form-input {
    padding: 12px 15px;
    font-size: 1em;
  }
  .logo {
    width: 20vw;
    padding-top: 20vw;
    min-width: 40px;
  }
  .logo-container {
    flex-direction: column; /* Stack logo and tagline vertically on small screens */
    text-align: center;
  }
  .tagline {
    margin-top: 10px;
    white-space: normal; /* Allows wrapping on mobile */
    text-overflow: clip; /* No ellipsis on mobile */
  }

  .container {
    padding: 20px;
    margin-left: 5%; /* 5% of viewport width on left */
    margin-right: 5%; /* 5% of viewport width on right */
    width: auto; /* Allows margin to adjust width */
    max-width: 90%; /* Prevents it from exceeding 90% of viewport */
  }
  .nutrient-box {
    flex-direction: column;
  }
  .nutrient-box div {
    margin: 5px 0;
  }
  .food-item {
    flex-direction: column;
    text-align: center;
  }
  .custom-font-body {
    font-size: 1em; /* Slightly smaller on mobile */
  }
  .custom-font-title {
    font-size: 1.2em; /* Reduced for mobile */
    letter-spacing: 0.12em;
  }
  .custom-font-title .highlight {
    letter-spacing: 0.15em;
  }
  .app-button {
    padding: 8px 16px; /* Slightly smaller on mobile */
    font-size: 0.9em;
  }
}