/* ==========================================================================
   1. VARIABLES & GLOBAL RESET
   ========================================================================== */
:root {
    --neon-green: #beff0b;
    --deep-purple: #461472;
    --lighter-purple: #3c096c;
    --text-white: #ffffff;
    --text-orange: #f9af0f;
    --bg-gray: #f2f2f2;
    
    /* --- UNIFIED WIDTH VARIABLES --- */
    --container-max: 1200px; 
    --container-width: 90%; 
}

@font-face{
  font-family:'Vazirmatn';
  src:url("../font/Vazirmatn-Regular.ttf") format("truetype");
  font-weight:400;
  font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src:url("../font/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight:800;
  font-display:swap;
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--deep-purple);
    color: white;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

img {
    max-width: 100%;
    display: block;
}


/* ==========================================================================
   2. HEADER
   ========================================================================== */
.headerHolder {
    width: 100%;
    position: absolute;
    z-index: 99;
    padding-top: 16px;
}

.header {
    width: 94%;
    max-width: 1200px;
    height: 60px;
    margin: 0 auto;
    display: block;
}

.headerLogo {
    width: 70px;
    float: left;
    cursor: pointer;
}

.header-actions {
    float: right;
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.loginBtnHolder {
    background-color: #eee;
    height: 34px;
    line-height: 34px;
    border-radius: 34px;
    padding: 0 16px;
    color: #444;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    float: right;
    cursor: pointer;
}

.loginBtnHolder span::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("../assets/login.svg") no-repeat center/contain;
    margin-right: 5px;
    vertical-align: middle;
}

.contactUsBtnHolder,
.instagramBtnHolder {
    float: right;
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    cursor: pointer;
}

.contactUsBtnHolder img{
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.instagramBtnHolder img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.contactUsBtnHolder span,
.instagramBtnHolder span {
    display: none; 
    font-size: 12px;
    font-weight: 800;
    padding: 0 5px;
}


/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.heroSection {
    padding-top: 70px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: var(--container-max);
    margin: 0 auto;
}

.ring-container {
    width: 100vw;
    height: 100vw;
    max-width: 360px;
    max-height: 360px;
    margin: 0 auto 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-circle {
    position: absolute;
    width: 80%;
    aspect-ratio:1;
    border-radius: 50%;
    border: 30px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(190, 255, 11, 0.3);
    z-index: 1;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        border-color: var(--neon-green);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(190, 255, 11, 0.6);
        border-color: #d4ff5e;
    }
}

.hero-phone-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.1));
}

.hero-text-content {
    min-height: 260px; 
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.sub-title {
    color: var(--text-orange);
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    margin: 0;
}

.main-title {
    display: block;
    height: 1.5em;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #fff;
}

.desc-text {
    font-size: 0.85rem;
    color: #dcdcdc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-lime {
    background-color: var(--neon-green);
    color: #240046;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 14px 0;
    width: 80%;
    max-width: 300px;
    border-radius: 50px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 5px 15px rgba(204, 255, 0, 0.3);
    transition: all 0.2s;
}

.btn-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.5);
}

.hero-trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    direction: rtl;
}

.heroSection .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #e0d4fc;
}

.cta-section .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #e0d4fc;
    margin: 0 auto;
}
.cta-section .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #e0d4fc;
    margin: 0 auto;
}

.trust-item img {
    width: 18px;
    stroke: var(--neon-green);
}

/* --- INTERMEDIATE SIZES --- */
@media screen and (min-width: 480px) and (max-width: 767px) {
    .ring-container {
        max-width: 400px;
        max-height: 400px;
    }
    .hero-phone-img {
        max-width: 480px;
    }
    .main-title {
        font-size: 3.5rem;
    }
}


/* ==========================================================================
   4. STATS SECTION
   ========================================================================== */
.stats-section {
    width: 100%;
    background-color: rgba(0,0,0,0.25);
    margin: 0 auto;
    padding: 30px 0;
}

.statsSectionInner {
    width: var(--container-width); 
    max-width: var(--container-max); 
    display: flex;
    margin: 0 auto;
    flex-direction: row; 
    justify-content: center;
    gap: 0; 
    position: relative;
    z-index: 10;
}

.stat-card {
    flex: 1;
    min-width: 0; 
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px; 
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0; 
}

.stat-icon img {
    width: 22px;
    filter: invert(1);
    opacity: 0.9;
}

.stat-data {
    text-align: right;
    margin-right: 8px;
    flex: 1;
    overflow: hidden; 
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #99FF00;
    display: block;
    padding-top: 6px;
}

.stat-label {
    color: #d1c4e9;
    font-size: .9rem;
    font-weight: 700;
    line-height: 2;
    white-space: normal;
    display: block;
}
.stat-card:first-child .stat-num{
    text-align: left;
    color: #ff9100;
}

.stat-card:first-child .stat-label{
    text-align: left;
}


/* ==========================================================================
   5. HOW IT WORKS
   ========================================================================== */
.how-works-section {
    background-color: var(--deep-purple);
    padding: 50px 0 50px 0;
    text-align: center;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-works-section > * {
    max-width: var(--container-max);
    width: var(--container-width);
}

.section-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.section-sub {
    color: var(--text-orange);
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 30px;
}

.how-works-visual {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.how-works-img {
    width: 90%;
    max-width: 380px;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 25px;
}

.how-works-text {
    width: 85%;
    max-width: 500px;
    margin: 0 auto;
    color: #e0d4fc;
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 500;
}


/* ==========================================================================
   6. BENEFITS SLIDER
   ========================================================================== */
.benefits-section {
    padding: 50px 0 80px 0;
    text-align: center;
    overflow: hidden;
}

.benefits-container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 10px;
}

.benefits-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 30px 5px;
    direction: rtl;
    scrollbar-width: none;
}

.benefits-slider::-webkit-scrollbar {
    display: none;
}

.benefit-card {
    flex: 0 0 calc(50% - 7.5px);
    width: calc(50% - 7.5px);
    min-height: 250px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.b-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.b-icon-box img {
    width: 28px;
    filter: invert(1);
    opacity: 0.9;
}

.b-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.b-text {
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.6;
}

.benefits-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    direction: rtl;
}

.b-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: 0.3s;
}

.b-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}


/* ==========================================================================
   7. WHY IFIT (Features)
   ========================================================================== */
.why-section {
    padding: 70px 0;
    padding-bottom: 100px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-section > * {
    max-width: var(--container-max);
    width: var(--container-width);
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--neon-green);
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.nav-center img {
    width: 40px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.nav-center span {
    font-size: 1.2rem;
    font-weight: 800;
}

.nav-arrow {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0 10px;
}

.nav-arrow:hover {
    color: #fff;
}

.slider-desc {
    width: 85%;
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: #e0d4fc;
    min-height: 60px;
}

.feature-visual-card {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 35px;
    padding: 0 20px;
}

.feature-img {
    width: 100%;
    border-radius: 20px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    direction: rtl; 
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    width: 18px;
    border-radius: 10px;
}


/* ==========================================================================
   8. INSTALL & GYM & CTA (Full-width Fix)
   ========================================================================== */
.install-section {
    padding: 70px 0;
    text-align: center;
    background: #fff;
    z-index: 5;
    position: relative;
    display: flex;
    justify-content: center;
}

.install-card {
    width: 85%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.install-icon-box {
    width: 70px;
    height: 70px;
    background: #f3e5f5;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.install-icon-box img {
    width: 100%;
}

.install-title {
    color: var(--deep-purple);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.install-sub {
    color: #3B3B3B;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.btn-purple {
    background: var(--deep-purple);
    color: #fff;
    width: 100%;
    padding: 15px 0;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(60, 9, 108, 0.3);
}

.btn-purple img {
    width: 20px;
    filter: invert(1);
}

/* --- GYM SECTION (FIXED FOR FULL WIDTH) --- */
.gym-section {
    position: relative; /* Context for pseudo-element */
    padding: 70px 0 120px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Layout Logic for CONTENT */
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Constrain the CONTENT, NOT the background */
    max-width: var(--container-max); 
    width: 100%;
    margin: 0 auto;
    z-index: 1; /* Ensure content sits on top */
}

/* This creates the FULL WIDTH BACKGROUND */
.gym-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Pull to left edge of screen */
    margin-right: -50vw; /* Pull to right edge of screen */
    width: 100vw; /* Full Viewport Width */
    background: linear-gradient(135deg, #4a148c 0%, #311b92 100%);
    z-index: -1; /* Put behind the content */
}

.gym-section .section-title,
.gym-section .section-sub,
.gym-section .gym-text,
.gym-section .gym-icon-circle {
    max-width: 100%;
    width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.gym-icon-circle {
    width: 70px !important;
    height: 70px;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gym-icon-circle img {
    width: 100%;
    filter: invert(1);
}

.gym-text {
    width: 85%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    color: #d1c4e9;
    font-size: 0.95rem;
}

.btn-white {
    background: #fff;
    color: #311b92;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-block;
}

.cta-section {
    background: var(--deep-purple);
    padding: 80px 0 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.cta-sub {
    color: #e0d4fc;
    margin-bottom: 35px;
}

.btn-cta {
    background: var(--neon-green);
    color: #240046;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 16px 0;
    width: 85%;
    max-width: 300px;
    border-radius: 50px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 25px rgba(204, 255, 0, 0.2);
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.main-footer {
    background: #2A0647;
    padding: 60px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #b3a0cc;
    direction: rtl;
}

.footer-container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: right;
}

.footer-brand h3 {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--neon-green);
    margin-top: 0;
}

.footer-brand img {
    width: 30px;
}

.footer-desc{
    text-align: justify;
}
.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--neon-green);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--neon-green);
    padding-right: 5px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    direction: ltr;
    margin-bottom: 15px;
}

.contact-row img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    opacity: 0.7;
}

.contact-row span {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--neon-green);
}

.social-btn:hover img {
    filter: brightness(0);
}

.social-btn img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    opacity: 0.6;
    font-size: .7rem;
}


/* ==========================================================================
   10. MODALS
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 0, 46, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 25px;
    text-align: right;
    position: relative;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f0f0f0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #f9f9f9;
    margin-bottom: 15px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--deep-purple);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.btn-success {
    background: #27c93f !important;
}

/* --- Modal polish (Contact + Success) --- */
.modal-box {
    background: #fff;
    width: min(92vw, 430px);
    padding: 22px;
    border-radius: 22px;
    text-align: right;
    position: relative;
    color: #222;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(70, 20, 114, 0.08);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.modal-overlay {
    padding: 16px;
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f3f3f7;
    color: #555;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all .18s ease;
    border: 1px solid rgba(0,0,0,.05);
}

.modal-close:hover {
    background: #ececf3;
    color: var(--deep-purple);
    transform: scale(1.04);
}

/* Missing classes used in index.php */
.modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--deep-purple);
    margin: 0 0 6px 0;
    line-height: 1.3;
    padding-left: 40px; /* space so title doesn't collide with close button */
}

.modal-sub {
    margin: 0 0 18px 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #3d3d3d;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e7e7ef;
    background: #fafafe;
    margin-bottom: 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #222;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-input::placeholder {
    color: #9aa0ad;
}

.form-input:focus {
    border-color: rgba(70, 20, 114, 0.35);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(70, 20, 114, 0.08);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
}

/* Submit button polish */
.btn-submit {
    width: 100%;
    padding: 14px;
  font-family:'Vazirmatn';
    background: linear-gradient(135deg, var(--deep-purple), #5a1a93);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 10px 22px rgba(70, 20, 114, 0.18);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(70, 20, 114, 0.22);
}

.btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Success modal icon (missing class in current CSS) */
.success-icon-box {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 201, 63, 0.12);
    border: 1px solid rgba(39, 201, 63, 0.25);
}

.success-icon-box svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #27c93f;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Better spacing on small screens */
@media screen and (max-width: 480px) {
    .modal-box {
        border-radius: 18px;
        padding: 18px;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .modal-sub {
        font-size: 0.84rem;
        line-height: 1.7;
    }

    .modal-close {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
    }
}
/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES (FIXED & CLEAN)
   ========================================================================== */

/* --- TABLET & DESKTOP (768px+) --- */
@media screen and (min-width: 400px) {
    
 .stat-label {
    font-size: 1rem;
}
.stat-card {
    max-width: 200px;
}
    
    
}
@media screen and (min-width: 768px) {

    /* 1. TYPOGRAPHY */
    .main-title {
        font-size: 3.5rem;
    }

    /* 2. HEADER */
    .contactUsBtnHolder,
    .instagramBtnHolder {
        padding: 0 10px;
        margin-right: 20px;
        width: auto;
    }

    .contactUsBtnHolder span,
    .instagramBtnHolder span {
        display: block;
        width: auto;
        overflow: visible;
    }

    /* 3. HERO SECTION */
    .heroSection {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        padding: 80px 5%;
        min-height: 600px;
        padding-top: 140px;
    }

    .hero-text-content {
        flex: 0 0 48%;
        width: 48%;
        padding: 0;
    }

    .ring-container {
        flex: 0 0 50%;
        width: 50%;
        max-width: 400px;
        margin: 0;
    }

    .hero-phone-img {
        width: 110%;
        max-width: none;
    }

    .btn-lime {
        margin: 0;
        margin-left: auto;
        width: auto;
        padding-left: 50px;
        padding-right: 75px;
    }

    .hero-trust-row {
        justify-content: flex-start;
    }


    /* 4. HOW IT WORKS */
    .how-works-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 100px 5%;
        max-width: var(--container-max);
        margin: 0 auto;
        text-align: right;
        align-items: center;
    }
    
    .how-works-section > * {
        max-width: 100%;
        width: auto;
        margin: 0;
    }

    .how-works-section .section-title {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        font-size: 2.5rem;
    }

    .how-works-section .section-sub {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        align-self: start;
    }

    .how-works-text {
        grid-column: 1;
        grid-row: 3;
        margin-top: 20px;
        margin-right: 0;
        text-align: justify;
        max-width: 100%;
        width: 100%;
    }

    .how-works-visual {
        grid-column: 2;
        grid-row: 1 / span 4;
        width: 100%;
        justify-content: flex-end;
    }

    .how-works-img {
        content: url("../assets/howItWorksGraphB.svg"); 
        max-width: 100%;
        width: 200px;
        max-height: 330px;
        margin: 0 auto;
    }

    /* 5. BENEFITS */
    .benefits-section {
        padding: 100px 0;
    }

    .benefits-container {
        padding: 0 40px;
    }

    .benefits-slider {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 30px;
        overflow: visible;
        padding: 40px 0;
        scroll-snap-type: none;
    }

    .benefit-card {
        width: auto !important;
        flex: none !important;
        min-height: 300px;
        padding: 40px 20px;
        transition: transform 0.3s ease, border-color 0.3s ease;
        cursor: default;
    }

    .benefit-card:hover {
        transform: translateY(-10px);
        border-color: var(--neon-green);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    }

    .b-icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
        background: rgba(190, 255, 11, 0.1);
        border: 1px solid rgba(190, 255, 11, 0.2);
    }

    .b-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .b-text {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .benefits-dots {
        display: none;
    }
    
    .nav-center, .slider-desc {
        will-change: transform, opacity;
        position: relative; 
    }

    .nav-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform-origin: center;
        will-change: transform, opacity;
    }

    #featureDesc {
        display: block; 
        will-change: transform, opacity;
    }
    
    .why-section {
        overflow-x: hidden;
    }


    /* 6. STATS & WHY IFIT */
    .stats-section {
        padding: 40px;
        gap: 30px;
    }

    .stat-card {
        flex: 1;
        max-width: 400px;
    }

    .why-section {
        padding: 100px 0;
    }

    .feature-visual-card {
        max-width: 450px;
    }


   /* 8. INSTALL APP */
    .install-card {
        display: grid;
        grid-template-columns: auto 1fr; 
        grid-template-rows: auto auto auto;
        grid-template-areas: 
            "icon title"
            "icon sub"
            "icon btn";
        gap: 10px 40px;
        max-width: var(--container-max); 
        padding: 60px;
        text-align: right;
        align-items: center; 
    }

    .install-icon-box {
        grid-area: icon;
        width: 140px;
        height: 140px;
        margin: 0;
        align-self: center; 
    }

    .install-title {
        grid-area: title;
        margin: 0;
        align-self: end;
    }

    .install-sub {
        grid-area: sub;
        margin: 0;
        align-self: start;
        max-width: 100%;
    }

    .btn-purple {
        grid-area: btn;
        width: auto;
        justify-self: start;
        margin-top: 15px;
        padding-left: 50px;
        padding-right: 50px;
    }

    /* 8. GYM PANEL (FIXED GRID & FULL BACKGROUND) */
    .gym-section {
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: start;
        padding: 180px 15% 180px 15%;
        
        /* Keep Max Width constraint on content */
        max-width: var(--container-max); 
        width: 100%; 
        margin: 0 auto;
        text-align: right;
        gap: 10px 40px;
    }
    
    .gym-section > * {
        width: auto;
        max-width: 100%;
        margin: 0;
    }

    .gym-icon-circle {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 100px !important;
        height: 100px;
        margin: 0 auto;
    }

    .gym-section .section-title {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        font-size: 2.2rem;
        align-self: end;
    }

    .gym-section .section-sub {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        color: var(--neon-green);
    }

    .gym-text {
        grid-column: 2;
        grid-row: 3;
        margin: 20px 0;
        max-width: 650px;
        text-align: justify;
    }

    .btn-white {
        grid-column: 2;
        grid-row: 4;
        justify-self: start;
        width: auto;
        margin-top: 10px;
    }


    /* 9. FOOTER */
    .footer-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .footer-col {
        flex: 1;
        text-align: right;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-title::after {
        right: 0;
        left: auto;
        transform: none;
    }
}

/* --- LARGE SCREENS (1200px+) --- */
@media screen and (min-width: 1200px) {
    .main-title {
        font-size: 4.5rem;
    }

    .heroSection {
        gap: 100px;
    }

    .hero-phone-img {
        width: 480px;
    }

    .ring-container {
        width: 450px;
        height: 450px;
    }
}



@media (prefers-reduced-motion: no-preference) {
.ring-circle {
   animation: pulseGlow 3s infinite ease-in-out;
}
}







/* =========================
   Global Footer Theme
   ========================= */

.footerHolder{
    background: transparent;
    margin-top: 40px;
}

.footer{
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px 0 30px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    border-top: 1px solid rgba(255,255,255,.12);
}

.footerRow{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footerLogo img{
    opacity: 0.9;
}

.footerLinks{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footerLinks a{
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    transition: .15s ease;
}

.footerLinks a:hover{
    color: var(--neon-green);
}

.footerCopy{
    color: rgba(255,255,255,.45);
    font-size: 13px;
}

.footerSocials{
    display: flex;
    gap: 10px;
}

.footerSocials a{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);

    transition: .15s ease;
}

.footerSocials a:hover{
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
}





















