/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

/* Background */
body {
    background: linear-gradient(to bottom, #fdf3e6, #f9f5ee 60%, #ffffff);
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

/* 🔥 Sticky Navbar with Hide-on-Scroll Effect */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(44, 62, 80, 0.95); /* Dark semi-transparent */
    padding: 15px 30px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Hide Navbar on Scroll */
.header-container.hidden {
    transform: translateY(-100%);
}

/* 🔹 Navbar Tabs */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

/* Navbar Buttons */
.tab {
    background: transparent;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 5px;
}

/* Hover & Active States */
.tab:hover {
    color: #f39c12;
    transform: scale(1.05);
}

.tab.active {
    background-color: #1abc9c;
    color: white;
}

/* 🏆 Home Section */
.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 180px 20px;
    min-height: 100vh;
}

/* ✨ Animated Heading */
.home-page h1 {
    font-size: 65px;
    font-family: "Playfair Display", serif;
    text-transform: uppercase;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1.2s ease-out forwards;
}

/* 📝 Subtitle */
.home-page p {
    font-size: 24px;
    color: #444;
    max-width: 900px;
    line-height: 1.8;
    margin: 30px auto;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out 0.5s forwards;
}

/* 🎬 Get Started Button */
.get-started {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 40px;
    transition: 0.3s;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1s ease-out 0.8s forwards;
}

.get-started:hover {
    background-color: #219150;
    transform: scale(1.05);
}

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 🥗 Meal Plans Section */
#MealPlans {
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    background-color: #ecf0f1;
}

#MealPlans h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.generate-meal {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.generate-meal:hover {
    background-color: #2980b9;
    transform: scale(1.05);
    text-align: center;
    align-items: center;
    justify-content: center;

}

#meal-output {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.meal-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.meal-box:hover {
    transform: translateY(-5px);
}

.meal-box h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.meal-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Dietary Restrictions Section */
.dietary-restrictions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.dietary-restrictions label {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.dietary-restrictions label:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    text-align: center;
    align-items: center;
    justify-content: center;
}

.dietary-restrictions input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    text-align: center;
    align-items: center;
    justify-content: center;
}


/* Meal Plan Form Styling */
#meal-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

#meal-form label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 15px;
}

#meal-form input[type="text"],
#meal-form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #3498db;
    border-radius: 10px;
    font-size: 16px;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

#meal-form input[type="text"]:hover,
#meal-form input[type="number"]:hover {
    border-color: #2980b9;
    transform: scale(1.02);
}

/* Move Generate Meal Plan Button Below Protein Intake */
#meal-form .generate-button-container {
    margin-top: 20px;
    text-align: center;
}

/* Dietary Restrictions Section */
.dietary-restrictions {
    margin-bottom: 20px;
}

.dietary-restrictions label {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.checkbox-group label:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Generate Meal Plan Button Container */
.generate-button-container {
    text-align: center;
    margin-top: 20px;
}

.generate-button-container input[type="submit"] {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.generate-button-container input[type="submit"]:hover {
    background-color: #219150;
    transform: scale(1.05);
}

/* Meal Result Styling */
#meal-result {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

#meal-result h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

#meal-result p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* 🏋️ Workouts Section */
#Workouts {
    padding: 80px 20px;
    text-align: center;
    min-height: 100vh;
    background-color: #dff9fb;
}

#Workouts h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* Workout Options Container */
#Workouts .workout-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

/* Checkbox Labels */
#Workouts label {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

#Workouts label:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

#Workouts input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Skill Level Dropdown */
#skillLevel {
    padding: 10px 20px;
    font-size: 16px;
    border: 2px solid #3498db;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 20px;
}

#skillLevel:hover {
    border-color: #2980b9;
    transform: scale(1.05);
}

/* Generate Workout Button */
.generate-workout {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 25px;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.generate-workout:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* Workout Output Container */
#workout-output {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Workout Box Styling */
.workout-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.workout-box:hover {
    transform: translateY(-5px);
}

.workout-box h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.workout-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* 📱 Responsive Design for Workouts Section */
@media (max-width: 768px) {
    #Workouts .workout-options {
        flex-direction: column;
        align-items: center;
    }

    #Workouts label {
        width: 100%;
        justify-content: center;
    }

    #skillLevel {
        width: 100%;
    }

    .generate-workout {
        width: 100%;
        padding: 14px 28px;
        font-size: 16px;
    }

    .workout-box {
        width: 100%;
    }
}

/* 🎉 About Us Section - More Fun & Cool */
#AboutUs {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%);
    color: #2c3e50;
    min-height: 100vh;
}

/* 🏆 Team Box Styling - Modern & Engaging */
.team-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 700px;
    margin: 30px auto;
    transition: transform 0.3s ease-in-out;
}

.team-box:hover {
    transform: scale(1.02);
}

/* 🎨 Team Member Cards */
.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 200px;
    transition: transform 0.3s ease-in-out;
}

.team-member:hover {
    transform: translateY(-5px);
}

/* 📩 Fun Email Links */
.email-link {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.email-link:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2c3e50;
}

/* 🎯 About GAINSAI Box */
.about-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    margin: 40px auto;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
}

/* 🌟 Title Animation */
h1, h2 {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1.2s ease-in-out forwards;
}

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

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        width: 90%;
    }
    
    .about-box {
        width: 90%;
    }
}