:root {
    --accent: orange;
    --bg: #121212;
    --fg: #f0f0f0;
    --card-bg: #1e1e1e;
    --hover-bg: #292929;
    --label-bg: #2e2e2e; /* Background for nutrition label */
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px; /* Default font size */
  }
  
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
  }
  
  nav {
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  nav .logo {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
  }
  
  nav ul {
    display: flex;
    gap: 1.5rem;
  }
  
  nav ul li {
    list-style: none;
  }
  
  nav ul li a {
    color: var(--fg);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
  }
  
  nav ul li a:hover {
    color: var(--accent);
  }
  
  section {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: auto;
  }
  
  /* Typography Project Styles */
  .typography-project {
    margin-bottom: 3rem;
  }
  
  .typography-demo h4 {
    color: var(--accent);
    margin-top: 1.5rem;
    font-size: 1.2rem;
  }
  
  .large-text {
    font-size: 2rem;
  }
  
  .medium-text {
    font-size: 1.5rem;
  }
  
  .small-text {
    font-size: 1rem;
  }
  
  .bold-text {
    font-weight: 700;
  }
  
  .italic-text {
    font-style: italic;
  }
  
  h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    text-align: center;
  }
  
  /* Section animations */
  section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
  }
  
  section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Hover effects for buttons and links */
  nav ul li a {
    position: relative;
    display: inline-block;
  }
  
  nav ul li a:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }
  
  nav ul li a:hover:before {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* Footer hover effect */
  footer h3 {
    transition: transform 0.3s ease;
  }
  
  footer h3:hover {
    transform: scale(1.1);
  }
  
  footer {
    background-color: var(--card-bg);
    color: var(--fg);
    text-align: center;
    padding: 2rem 1rem;
  }
  
  footer h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.2rem;
  }
  
  .contact-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .contact-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--fg);
    font-size: 1.1rem;
    background-color: var(--card-bg);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    border: 1px solid var(--hover-bg);
  }
  
  .contact-icon:hover {
    background-color: var(--hover-bg);
    color: var(--accent);
  }
  
  .contact-icon img {
    width: 20px;
    height: 20px;
  }
  
  /* Nutrition Label Styles */
  * {
    box-sizing: border-box;
  }
  
  .label {
    border: 2px solid var(--fg);
    width: 270px;
    margin: 20px auto;
    padding: 0 7px;
    background-color: var(--label-bg);
  }
  
  label header h1 {
    text-align: center;
    margin: -4px 0;
    letter-spacing: 0.15px;
    font-size: 1.5rem;
    color: var(--accent);
  }
  
  label p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: var(--fg);
  }
  
  .divider {
    border-bottom: 1px solid #888989;
    margin: 2px 0;
  }
  
  .bold {
    font-weight: 800;
  }
  
  .large {
    height: 10px;
  }
  
  .large, .medium {
    background-color: var(--accent);
    border: 0;
  }
  
  .medium {
    height: 5px;
  }
  
  .small-text {
    font-size: 0.85rem;
  }
  
  .calories-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  .calories-info h2 {
    margin: 0;
  }
  
  .left-container p {
    margin: -5px -2px;
    font-size: 2em;
    font-weight: 700;
  }
  
  .calories-info span {
    margin: -7px -2px;
    font-size: 2.4em;
    font-weight: 700;
  }
  
  .right {
    justify-content: flex-end;
  }
  
  .indent {
    margin-left: 1em;
  }
  
  .double-indent {
    margin-left: 2em;
  }
  
  .daily-value p:not(.no-divider) {
    border-bottom: 1px solid #888989;
  }

  .daily-value p {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }  
  
  .note {
    font-size: 0.6rem;
    margin: 5px 0;
    padding: 0 8px;
    text-indent: -8px;
    color: var(--fg);
  }
  
 /* Typography Project Styles */
.typography-project {
    margin-bottom: 3rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.typography-project h2 {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.typography-project p {
    color: var(--fg);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.typography-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.typography-demo h4 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.typography-demo .large-text {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--fg);
    font-weight: 600;
    text-align: center;
}

.typography-demo .medium-text {
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--fg);
    font-weight: 500;
    text-align: center;
}

.typography-demo .small-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--fg);
    font-weight: 400;
    text-align: center;
}

.typography-demo .bold-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
}

.typography-demo .italic-text {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--fg);
    text-align: center;
}

.typography-demo .underlined-text {
    font-size: 1.5rem;
    text-decoration: underline;
    color: var(--accent);
    text-align: center;
}

.typography-demo .highlighted-text {
    font-size: 1.5rem;
    background-color: var(--accent);
    color: var(--bg);
    padding: 0.2rem 0.5rem;
    text-align: center;
}

.typography-demo .heading-text {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.typography-demo .subheading-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg);
    text-align: center;
    letter-spacing: 2px;
}

.typography-demo .lorem-text {
    font-size: 1rem;
    color: var(--fg);
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
    margin-top: 1rem;
}
