/* ==========================================================================
   COLLEGE PROJECT SUBMISSION - WEB TECHNOLOGIES LABORATORY (CS-302)
   Project Title: GymFit Responsive Workout Portal - Custom Stylesheet
   Developed By: Rahul Sharma (Roll No: 2023CSE089, Sec-B)
   Theme: Dark Fitness / High Energy Neon Accent
   ========================================================================== */

/* --- Import Google Fonts (Poppins) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables & Theme Colors --- */
:root {
    --primary-color: #ff5e00;       /* Energetic Orange */
    --primary-hover: #e05300;       /* Darker orange for hover states */
    --accent-color: #ff3c00;        /* Crimson-orange accent */
    --dark-bg: #0b0b0e;             /* Pitch black/dark slate background */
    --card-bg: #121217;             /* Dark card background */
    --card-hover-bg: #1b1b22;       /* Lighter dark background for hover */
    --text-light: #ffffff;          /* Main headings text */
    --text-muted: #a4a4b2;          /* Paragraphs and secondary text */
    --glass-navbar: rgba(11, 11, 14, 0.85); /* Glassmorphism navbar background */
    --transition-speed: 0.3s;
}

/* --- Base & Scroll Settings --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   Utility Classes & Common Elements
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Custom Buttons with transitions */
.btn-fit {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

.btn-fit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.5);
    color: #fff;
}

.btn-outline-fit {
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 28px;
    border-radius: 30px;
    letter-spacing: 1px;
    background: transparent;
    transition: all var(--transition-speed) ease;
}

.btn-outline-fit:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

/* ==========================================================================
   1. Navbar Section
   ========================================================================== */
.navbar {
    transition: all var(--transition-speed) ease;
    padding: 20px 0;
    background: transparent;
}

/* Active style when scrolled (triggered by JS) */
.navbar.navbar-scrolled {
    background: var(--glass-navbar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 94, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    color: var(--text-light) !important;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light) !important;
    margin: 0 10px;
    transition: color var(--transition-speed) ease;
    position: relative;
}

/* Glowing line under active link on hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(11, 11, 14, 0.4) 0%,
        rgba(11, 11, 14, 0.8) 70%,
        var(--dark-bg) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   3. Workout Programs Section
   ========================================================================== */
.workout-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    height: 100%;
}

.workout-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.workout-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Dark-orange gradient overlay on card image */
.workout-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(18, 18, 23, 0.95) 100%
    );
}

.workout-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 94, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.15);
    background-color: var(--card-hover-bg);
}

.workout-card:hover .workout-card-img-wrapper img {
    transform: scale(1.1);
}

.workout-card-body {
    padding: 25px;
}

.workout-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.workout-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   4. BMI Calculator Section
   ========================================================================== */
.bmi-section {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 23, 0.8) 0%,
        rgba(11, 11, 14, 0.95) 100%
    );
    border-top: 1px solid rgba(255, 94, 0, 0.1);
    border-bottom: 1px solid rgba(255, 94, 0, 0.1);
}

.bmi-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.bmi-input-group {
    position: relative;
    margin-bottom: 25px;
}

.bmi-form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light) !important;
    padding: 15px 20px;
    transition: all var(--transition-speed) ease;
}

.bmi-form-control:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
    outline: none;
}

.bmi-result-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.bmi-result-card.active {
    background-color: rgba(255, 94, 0, 0.05);
    border: 1px solid var(--primary-color);
}

.bmi-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.bmi-status {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   5. Trainers Section
   ========================================================================== */
.trainer-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.trainer-img-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.trainer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Simple inline socials style */
.trainer-social-simple {
    margin-top: 8px;
}

.trainer-social-simple a {
    transition: color var(--transition-speed) ease;
}

.trainer-social-simple a:hover {
    color: var(--primary-color) !important;
}

.trainer-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--card-bg);
    position: relative;
    z-index: 3;
}

.trainer-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.trainer-specialty {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trainer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 94, 0, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.trainer-card:hover .trainer-img-wrapper img {
    transform: scale(1.08);
}

/* ==========================================================================
   6. Membership Plans Section
   ========================================================================== */
.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    height: 100%;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 94, 0, 0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 5px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-light);
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-light);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.plan-features li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.plan-features li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.plan-features li.disabled {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: line-through;
}

.plan-features li.disabled i {
    color: rgba(255, 255, 255, 0.2);
}

.pricing-card:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--primary-color);
}

.pricing-card.popular:hover {
    box-shadow: 0 20px 45px rgba(255, 94, 0, 0.25);
}

/* ==========================================================================
   7. Contact Form Section
   ========================================================================== */
.contact-section {
    background: linear-gradient(
        to bottom,
        var(--dark-bg) 0%,
        rgba(18, 18, 23, 0.9) 100%
    );
    border-top: 1px solid rgba(255, 94, 0, 0.05);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 94, 0, 0.1);
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-right: 20px;
    transition: all var(--transition-speed) ease;
}

.contact-info-item:hover .contact-info-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.contact-info-content h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Input validation styles */
.form-group {
    margin-bottom: 20px;
}

.form-control-fit {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light) !important;
    padding: 14px 20px;
    transition: all var(--transition-speed) ease;
}

.form-control-fit:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
    outline: none;
}

textarea.form-control-fit {
    resize: none;
}

.invalid-feedback-custom {
    color: #ff3c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control-fit.is-invalid {
    border-color: #ff3c3c;
}

.form-control-fit.is-invalid:focus {
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.2);
}

/* Success notification message style */
.submit-status-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.submit-status-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* ==========================================================================
   8. Footer Section
   ========================================================================== */
.footer {
    background-color: #050507;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.footer-social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Hidden by default */
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.scroll-to-top.show {
    right: 30px;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.5);
}

/* ==========================================================================
   9. Scroll Reveal Animations (Optional but Premium)
   ========================================================================== */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   10. Responsive Media Queries
   ========================================================================== */

/* Large Tablets / Laptops */
@media (max-width: 991.98px) {
    .navbar {
        background: var(--glass-navbar);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
        margin: 20px 0;
    }
    
    .bmi-card {
        padding: 30px 20px;
    }
    
    .trainer-img-wrapper {
        height: 340px;
    }
}

/* Mobile Viewports */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .bmi-number {
        font-size: 2.8rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
}
