:root{
    --black: #000;
    --fblack: #2B2F3A;
    --bgwhite: #E9EFF6;
    --white: #fff;
    --cardbg: #aaa;
    --green: #39FF14;
    --b_green: hsl(120, 61%, 42%);
    --blue: #0077FF;
    --purple: #8156b4;
    --dark_purple: #6C3BAA ;
    --bg_color: #1f1f1f;
    --footer_bg: #111111;
}  
nav {
    background: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}
nav .dropdownmenu {
    z-index: 20;
    position: absolute; /* or relative, depending on your structure */
}
.n_cover {
    z-index: 1;
    position: relative;
    width: 98.5vw;
    height: 500px;
    margin-top: -20px;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
                url('images/nutrition_cover-1600.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
  
.n_cover .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.25); /* This adds an extra layer on top */
}
  
.cover-content {
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}
  
.cover-content h1 {
    color: var(--white);
    font-size: 52px;
    margin-bottom: 20px;
    font-family: built tilting;
}
  
.overlay .cover-content p {
    font-size: 19px;
    font-weight: 600;
    font-family: 'open_sans', sans-serif;
}
.overlay {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    text-align: left;
}

.overlay .icon {
    font-size: 24px;
    color: var(--green);
}

.overlay strong {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
}

.overlay p {
    font-size: 16px;
    color: var(--white);
    margin: 0;
}
.scroll-indicator svg{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-100%);
    color: var(--white);
    height: 45px;
    width: 45px;
    font-weight: "bold";
    animation: bounce 2s infinite;
}
  
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.filler{
    margin-top: -25px;
    padding-top: 50px;
    padding-bottom: 40px;
    width: 100%;
    height: 400px;
    color: var(--white);
    animation: fadeInUp 1s ease both;
    background: radial-gradient(circle at center, rgba(129, 86, 180, 0.05), transparent);
}
.filler h1{
    margin-bottom: 50px;
    color: var(--dark_purple);
    text-align: center;
    font-family: built tilting;
    font-size: 40px;
}

.filler h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--green);
    margin: 10px auto 0 auto;
    border-radius: 10px;
  }
.filler p{
    font-size: 18px;
    font-family: open_sans;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}
#d_background{
    width: 100%;
    height: 550px;
    background-image: url('images/nutrition_1of2_img.webp'), url('images/nutrition_2of2_img.webp');
    background-position: top left, bottom right;
    background-repeat: no-repeat;
    background-size: 50% 100%;
    display: flex;
    justify-content: center;
}
#d_background #text{
    background-color: var(--purple);
    border-radius: 7px;
    width: 40%;
    height: 300px;
    position: relative;
    top: 25%;
    color: var(--white);
}
#d_background h1{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    padding-left: 10px;
    padding-right: 10px;
    font-family: built tilting;
}
#d_background p{
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    font-family: open_sans;
}

/* how it works */
.nutrition-wheel-section {
    padding: 80px 5%;
    background-color: var(--bg_color);
    color: var(--white);
    text-align: center;
}
  
.nutrition-wheel-section h2 {
    font-size: 48px;
    font-family: 'built tilting';
    color: var(--dark_purple);
    margin-bottom: 60px;
}
  
.wheel-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
  
.wheel-item {
    background-color: var(--fblack);
    padding: 30px 20px;
    width: 250px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(129, 86, 180, 0.15);
    transition: transform 0.3s ease;
}
  
.wheel-item .icon {
    height: 45px;
    width: 45px;
    color: var(--green);
    margin-bottom: 20px;
}
  
.wheel-item p {
    font-family: open_sans;
    font-size: 18px;
    color: var(--white);
    margin: 0;
}
  
.wheel-item:hover {
    transform: translateY(-5px);
}
  
.bottom-row {
    margin-top: -10px; /* slight visual stack overlap */
    gap: 80px;
}

/* animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
}
  
.scroll-reveal.in-view {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Quote section */
.quote-block {
    margin-top: 100px;
    padding: 70px 7%;
    background-color: var(--bg_color);
    color: var(--white);
    font-style: italic;
    text-align: center;
    font-size: 22px;
    font-family: open_sans;
}
  
.quote-block cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    color: var(--green);
    font-size: 18px;
    font-family: open_sans;
}

/* Common mistakes section */
.mistake-list {
    font-family: open_sans;
}

.mistake-list h2 {
    text-align: center;
    font-size: 40px;
    font-family: 'built tilting';
    color: var(--dark_purple);
}

.mistake-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mistake-list {
    padding: 0px 7%;
    background-color: var(--bg_color);
    color: var(--white);
    font-family: open_sans;
}

.mistake-list h2 {
    text-align: center;
    font-size: 40px;
    font-family: 'built tilting';
    color: var(--dark_purple);
    margin-bottom: 40px;
}

.mistake-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    align-items: start;
}
  
.accordion-mistake{
    width: auto;          
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    color: var(--white);
    transition: all .4s ease;
}

.accordion-mistake.open {
    transition: all 0s ease;
    background: none !important;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    position: relative;
    background-color: var(--fblack);
    transition: background-color 0.4s ease;
}

.accordion-mistake.open .accordion-header {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none;
    box-shadow: 0 0 12px rgba(129, 86, 180, 0.15);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-family: open_sans;
    z-index: 3;
}

.accordion-header svg {
    transition: transform 0.3s ease;
    z-index: 3;
}

.accordion-mistake.open .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 60px 20px;
    color: white;
    transition: all 0.4s ease;
    font-family: open_sans;
    animation: fadeIn 0.4s ease;
    margin-top: -70px;
    height: 175px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.accordion-body h3 {
    margin-top: 40px;
    font-size: 1.4rem;
    font-family: open_sans;
}

.accordion-mistake.open .accordion-body {
    display: block;
    box-shadow: none;
}





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


/* meal carousel */
.meal-carousel-section {
    background-color: var(--bg_color);
    color: var(--white);
    font-family: open_sans;
}

.meal-carousel-section h2 {
    text-align: center;
    font-size: 40px;
    font-family: 'built tilting';
    color: var(--dark_purple);
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 98vw;
    height: 400px;
    padding-top: 30px;
    margin-bottom: 50px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scrollCarousel 59s linear infinite;
    width: max-content;
}

.meal-card {
    min-width: 300px;
    background-color: var(--fblack);
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 12px rgba(129, 86, 180, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.meal-card:hover {
    transform: scale(1.05);
}

.meal-card img {
    width: 25vw;
    border-radius: 12px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.meal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: open_sans;
    color: var(--white);
}

.meal-card p {
    font-size: 0.95rem;
    margin: 2px 0;
    color: var(--white);
    font-family: open_sans;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-78.1%);
    }
}


/* PC responsiveness */
@media (min-width: 1440px) {
    /* intro */
    .cover-content h1 {
        color: var(--white);
        font-size: 60px;
        margin-bottom: 20px;
        font-family: built tilting;
    }
      
    .overlay .cover-content p {
        font-size: 25px;
        font-weight: 600;
        font-family: 'open_sans', sans-serif;
    }
    /* ------------------------------------------------ */

    .filler h1{
        font-size: 55px;
    }

    #text h1{
        font-size: 35px;
    }
    #text p{
        font-size: 18px;
    }

    /* whats in the plan section */
    .nutrition-wheel-section h2{
        font-size: 60px;
    }

    /* -------------------------------------------------- */

    /* mistake list */
    .mistake-list h2{
        font-size: 55px;
    }

    /* -------------------------------------------------- */

    .meal-carousel-section h2{
        font-size: 55px;
    }
}