/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111;
    color: white;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 80px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 30px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.logo span {
    color: #ff6600;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6600;
}

.menu-btn {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

.cart-btn {
    position: relative;
    background: #ff6600;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

#cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #ff6600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 90vh;
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.85)),
        url("gym-power.jpeg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.hero-content {
    max-width: 850px;
    animation: fadeUp 1s ease;
}

.hero-small {
    color: #ff6600;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero-content h2 {
    font-size: clamp(40px, 6vw, 70px);
    margin: 20px 0;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-content h2 span {
    color: #ff6600;
}

.hero-content p {
    color: #ccc;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
    text-transform: uppercase;
}

.btn:hover {
    background: #e65c00;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6600;
}

.btn-outline:hover {
    background: #ff6600;
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title > span,
.section-label {
    color: #ff6600;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-title h2 {
    font-size: 42px;
    margin: 12px 0;
}

.section-title h2 strong {
    color: #ff6600;
}

.section-title p {
    color: #aaa;
    font-size: 17px;
}


/* =========================
   STATS
========================= */

.stats {
    background: #ff6600;
    padding: 35px 6%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-box i {
    font-size: 30px;
    margin-bottom: 10px;
}

.stat-box h3 {
    font-size: 30px;
}

.stat-box p {
    font-size: 15px;
}


/* =========================
   ABOUT
========================= */

.about {
    padding: 100px 6%;
    background:
        linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.9)),
        url("about.jpeg");

    background-size: cover;
    background-position: center;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 45px;
    margin: 15px 0 20px;
}

.about-text h2 span {
    color: #ff6600;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 17px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}


/* =========================
   CLASSES
========================= */

.classes {
    padding: 100px 6%;
    background:
        linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.9)),
        url("about 2.jpeg");

    background-size: cover;
    background-position: center;
}

.classes-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.class-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 5px 20px rgba(0,0,0,.4);
    transition: .4s;
}

.class-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 230px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.class-card:hover img {
    transform: scale(1.08);
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    margin-bottom: 12px;
}

.card-info p {
    color: #aaa;
    line-height: 1.6;
}


/* =========================
   TRAINERS
========================= */

.trainers {
    padding: 100px 6%;
    background: #111;
}

.trainers-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trainer-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: .4s;
}

.trainer-card:hover {
    transform: translateY(-8px);
}

.trainer-img {
    height: 350px;
}

.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-info {
    padding: 25px;
}

.trainer-info h3 {
    margin-bottom: 8px;
}

.trainer-info span {
    color: #ff6600;
}

.trainer-social {
    margin-top: 15px;
}

.trainer-social a {
    color: white;
    margin: 0 7px;
    transition: .3s;
}

.trainer-social a:hover {
    color: #ff6600;
}


/* =========================
   SCHEDULE
========================= */

.schedule {
    padding: 100px 6%;
    background: #181818;
}

.table-container {
    max-width: 1100px;
    margin: auto;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #111;
}

th,
td {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #333;
}

th {
    background: #ff6600;
    color: white;
}

td {
    color: #ccc;
}

tr:hover td {
    background: #1d1d1d;
}


/* =========================
   PRODUCTS
========================= */

.products {
    padding: 100px 6%;
    background:
        linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.9)),
        url("about 2.jpeg");

    background-size: cover;
    background-position: center;
}

.shop-controls {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: flex;
    gap: 15px;
}

.shop-controls input,
.shop-controls select {
    flex: 1;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    outline: none;
}

.shop-controls input:focus,
.shop-controls select:focus {
    border-color: #ff6600;
}

.products-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: .4s;
}

.product-card:hover {
    transform: translateY(-7px);
}

.product-img {
    height: 230px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.product-card:hover img {
    transform: scale(1.07);
}

.product-info {
    padding: 20px;
}

.product-info > span {
    color: #ff6600;
    font-size: 13px;
}

.product-info h3 {
    margin: 8px 0;
}

.product-info p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

.product-bottom {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-bottom strong {
    color: #ff6600;
    font-size: 20px;
}

.add-cart {
    background: #ff6600;
    border: none;
    color: white;
    padding: 9px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.add-cart:hover {
    background: #e65c00;
}


/* =========================
   BMI
========================= */

.bmi {
    padding: 100px 6%;
    background: #ff6600;
}

.bmi-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.bmi-text {
    flex: 1;
}

.bmi-text h2 {
    font-size: 45px;
    margin: 15px 0;
}

.bmi-text h2 span {
    color: #111;
}

.bmi-text p {
    line-height: 1.7;
}

.bmi-box {
    flex: 1;
    background: #111;
    padding: 35px;
    border-radius: 10px;
}

.bmi-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    outline: none;
}

.bmi-box input:focus {
    border-color: #ff6600;
}

.bmi-box .btn {
    width: 100%;
}

#bmiResult {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    background: #1a1a1a;
    border-radius: 5px;
    color: #ccc;
}


/* =========================
   MEMBERSHIP
========================= */

.membership {
    padding: 100px 6%;
    background: #111;
}

.plans-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.plan {
    position: relative;
    background: #1a1a1a;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #333;
    transition: .4s;
}

.plan:hover,
.plan.featured {
    border-color: #ff6600;
    transform: translateY(-8px);
}

.plan h3 {
    font-size: 25px;
    margin-bottom: 20px;
}

.price {
    color: #ff6600;
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 25px;
}

.price small {
    color: #aaa;
    font-size: 14px;
}

.plan ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.plan li {
    padding: 10px 0;
    color: #ccc;
}

.plan li i {
    color: #ff6600;
    margin-right: 8px;
}

.popular {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6600;
    padding: 7px 15px;
    border-radius: 0 10px 0 10px;
    font-size: 12px;
    font-weight: bold;
}


/* =========================
   REVIEWS
========================= */

.reviews {
    padding: 100px 6%;
    background: #181818;
}

.reviews-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: #111;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stars {
    color: #ff6600;
    font-size: 22px;
    margin-bottom: 15px;
}

.review-card p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-card span {
    color: #888;
    font-size: 14px;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 100px 6%;
    background:
        linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.9)),
        url("contact-gym.jpeg");

    background-size: cover;
    background-position: center;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 50px;
}

.contact-form,
.contact-info {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff6600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info h3 {
    color: #ff6600;
    font-size: 26px;
}

.contact-info p {
    color: #ccc;
}

.contact-info i {
    color: #ff6600;
    margin-right: 10px;
}

.map {
    margin-top: 10px;
}

.map iframe {
    width: 100%;
    border-radius: 10px;
}

#formMessage {
    color: #ff6600;
    font-weight: bold;
}


/* =========================
   CART
========================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1998;
    display: none;
}

.cart-overlay.show {
    display: block;
}

.cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90%;
    height: 100vh;
    background: #151515;
    z-index: 1999;
    padding: 25px;
    transition: .4s;
    display: flex;
    flex-direction: column;
}

.cart.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.cart-header h2 {
    color: #ff6600;
}

.cart-header button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.cart-item h4 {
    margin-bottom: 5px;
}

.cart-item span {
    color: #ff6600;
}

.remove-item {
    background: #333;
    border: none;
    color: white;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.cart-footer {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.cart-footer > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.empty-cart {
    color: #888;
    text-align: center;
    margin-top: 50px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #0b0b0b;
    padding: 40px 6%;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: #888;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    transition: .3s;
}

.social-icons a:hover {
    background: #ff6600;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #666;
    margin-top: 30px;
    font-size: 14px;
}


/* =========================
   ANIMATION
========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 15px;
    }

    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .trainers-container,
    .plans-container,
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .navbar {
        padding: 15px 5%;
    }

    .menu-btn {
        display: block;
        order: 2;
    }

    .cart-btn {
        order: 3;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #111;
        display: none;
        flex-direction: column;
        padding: 25px;
        border-top: 1px solid #222;
    }

    .nav-links.show {
        display: flex;
    }

    .logo {
        margin-right: auto;
        font-size: 25px;
    }

    .about-container,
    .bmi-container,
    .contact-container {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .trainers-container,
    .plans-container,
    .reviews-container {
        grid-template-columns: 1fr;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .shop-controls {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width: 480px) {

    .hero {
        min-height: 80vh;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .about,
    .classes,
    .trainers,
    .schedule,
    .products,
    .bmi,
    .membership,
    .reviews,
    .contact {
        padding: 70px 20px;
    }

    .bmi-box {
        padding: 25px 20px;
    }

}