/* -------------------------------------------------------------
 * USP SECTION (Elite Proprietary Design)
 * ------------------------------------------------------------- */
.usp-section {
    background-color: #1D2A36;
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.usp-border-row {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usp-dot {
    width: 6px;
    height: 6px;
    background-color: #E63946; /* Accent red */
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.75rem;
}

.usp-header-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 0;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.usp-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    
    /* Layout properties to separate text and arrow */
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    gap: 1.5rem; /* Forces space between text and arrow */
}
.usp-btn:hover {
    background-color: #ffffff;
    color: #1D2A36;
}

/* Features Grid */
.usp-grid {
    padding: 6rem 0;
}

.usp-card {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
}

.usp-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
    min-height: calc(1.3rem * 1.25 * 2);
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em; /* Gives it the wide Elite look */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.usp-card-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.usp-brands {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   ELITE ANIMATED CSS ICONS — Proprietary Premium Design
   ============================================================ */

.usp-icon-wrapper {
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2.5rem;
}

/* --- Base Icon Container --- */
.elite-icon-svg {
    width: 99px;
    height: 99px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2px;
    overflow: visible;
}

/* Mobile Slider Adjustments */
@media (max-width: 767px) {
    .usp-section {
        padding-top: 0.5rem !important; /* Shrunk by 30% more */
        padding-bottom: 0.5rem !important;
    }
    
    .elite-icon-svg {
        width: 98px !important; /* 40% bigger */
        height: 98px !important;
    }
    
    .usp-mobile-slider {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
        scrollbar-width: none; /* Firefox */
        touch-action: pan-y pan-x !important;
        user-select: none;
        -webkit-user-select: none;
        cursor: grab;
    }
    .usp-mobile-slider::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .usp-mobile-slider .usp-card {
        min-width: 65vw;
        scroll-snap-align: start;
        margin-right: 0.5rem;
        padding-right: 0 !important; /* Reset padding for center alignment */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Changed from center to left align */
        text-align: left !important; /* Changed to left align */
        touch-action: pan-y pan-x !important;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Arrow Navigation */
    .usp-slider-nav {
        margin-top: calc(-0.5rem - 7mm - 0.7mm - 1mm) !important; /* Moved 1mm up */
        margin-bottom: 2mm !important; /* Creates 1mm extra space below while keeping elements below in place */
        position: relative;
        z-index: 10;
        pointer-events: none; /* Let touch gestures pass through to cards */
    }
    
    .usp-slider-arrow {
        width: 31.5px; /* 30% smaller (reduced from 45px) */
        height: 31.5px;
        padding: 0 !important;
        margin: 0;
        border: 1px solid rgba(255,255,255,0.4);
        background: transparent;
        color: white;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1rem;
        line-height: 1 !important;
        transition: all 0.3s ease;
        cursor: pointer;
        pointer-events: auto; /* Buttons remain clickable */
    }

    .usp-slider-arrow svg {
        display: block;
        width: 14px;
        height: 14px;
        pointer-events: none;
        stroke: currentColor;
    }
    
    .usp-slider-arrow:hover {
        background: white;
        color: #1D2A36;
    }
    
    /* Fine-tune padding for mobile */
    .usp-grid {
        padding-top: 0.2rem !important;
        padding-bottom: 1mm !important; /* 1mm space below the button section */
    }
    
    .usp-icon-wrapper {
        justify-content: flex-start !important; /* Changed from center to left align */
        margin-bottom: 0.8rem !important; 
        margin-top: 4px !important; /* Moved icon alone 1mm (4px) down */
    }
    
    .usp-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem !important;
        text-align: left !important; /* Changed to left align */
    }
    
    .usp-card-desc {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
        text-align: left !important; /* Changed to left align */
    }
    
    .usp-border-row {
        padding: 0.3rem 0 !important; /* Very thin top/bottom border padding */
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .usp-border-row .usp-header-title {
        font-size: 0.85rem; /* Slightly smaller to fit on one line */
    }
    
    .usp-border-row .usp-btn {
        padding: 0.4rem 0.8rem; /* Compact button padding for mobile */
        font-size: 0.7rem;
        gap: 0.5rem; /* Less gap inside button */
    }
}

/* ============================================================
   ICON 1: DUMBBELL — World Class Equipment (Synced 4s loop)
   ============================================================ */
.icon-equip {
    margin-top: 4px;
    transform-origin: center center;
    animation: dumbbellLift 1.33s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.eq-draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: drawOut 1.33s ease-in-out infinite;
}

@keyframes dumbbellLift {
    0%, 10% { transform: translateY(0) scale(1); }
    25%     { transform: translateY(-10px) scale(1.05) rotate(5deg); }
    50%, 100%{ transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes drawOut {
    0%, 10%  { stroke-dashoffset: 0; opacity: 1; }
    30%      { stroke-dashoffset: -200; opacity: 0; }
    40%      { stroke-dashoffset: 200; opacity: 0; }
    50%, 100%{ stroke-dashoffset: 0; opacity: 1; }
}

/* ============================================================
   ICON 2: PEOPLE — For All Age Groups (Synced 4s Conveyor)
   ============================================================ */
.person-conveyor {
    animation: conveyor 4s infinite;
}
.person-adult { animation-delay: -2.66s; }
.person-child { animation-delay: -1.33s; }
.person-elderly { animation-delay: 0s; }

@keyframes conveyor {
    0%, 25%   { transform: translateX(18px); opacity: 1; }
    33%, 58%  { transform: translateX(0px); opacity: 1; }
    66%, 91%  { transform: translateX(-18px); opacity: 1; }
    96%       { transform: translateX(-24px); opacity: 0; }
    98%       { transform: translateX(24px); opacity: 0; }
    100%      { transform: translateX(18px); opacity: 1; }
}

/* ============================================================
   ICON 3: LIGHTNING BOLT — HIIT & CrossFit (Synced 4s Thunder)
   ============================================================ */
.thunder-bolt {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.15;
    animation: fastThunder 1.33s infinite;
}

@keyframes fastThunder {
    0%, 10%  { stroke-width: 2.2px; fill: none; opacity: 0.15; }
    20%      { stroke-width: 3.5px; fill: rgba(255,255,255,0.4); opacity: 1; }
    30%      { stroke-width: 2.5px; fill: none; opacity: 1; }
    40%      { stroke-width: 4px; fill: rgba(255,255,255,1); opacity: 1; }
    50%, 100%{ stroke-width: 2.2px; fill: none; opacity: 0.15; }
}

/* ============================================================
   ICON 4: BADGE — Certified Coach (Synced 4s Shake & Type)
   ============================================================ */
.cert-line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: typeLine 1.33s infinite;
}
.cert-line:nth-of-type(1) { animation-delay: 0s; }
.cert-line:nth-of-type(2) { animation-delay: 0.05s; }
.cert-line:nth-of-type(3) { animation-delay: 0.1s; }
.cert-line:nth-of-type(4) { animation-delay: 0.15s; }

@keyframes typeLine {
    0%, 10%  { stroke-dashoffset: 0; opacity: 1; }
    25%      { stroke-dashoffset: -20; opacity: 0; }
    35%      { stroke-dashoffset: 20; opacity: 0; }
    50%, 100%{ stroke-dashoffset: 0; opacity: 1; }
}

.cert-badge-group {
    transform-origin: 44px 42px; /* Center of the circular badge */
    animation: badgeShake 1.33s infinite;
}

@keyframes badgeShake {
    0%, 10% { transform: rotate(0deg); }
    15% { transform: rotate(18deg); }
    20% { transform: rotate(-15deg); }
    25% { transform: rotate(10deg); }
    30% { transform: rotate(-8deg); }
    35% { transform: rotate(5deg); }
    40%, 100% { transform: rotate(0deg); }
}

.floating-nav-wrapper {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: none; /* Only buttons should be clickable */
}

.floating-nav {
    background-color: #111;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-pill {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-pill:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}
.nav-pill.active {
    background-color: #E63946;
    color: #ffffff;
}

.floating-btn {
    width: 50px;
    height: 50px;
    background-color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.floating-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 739.98px) {
    .usp-grid { padding: 4rem 0; }
    .usp-card { padding-right: 0; margin-bottom: 3rem; }
    .floating-nav-wrapper {
        width: 90%;
        justify-content: space-between;
    }
    .floating-nav { display: none; }
    .floating-btn { width: 100%; border-radius: 50px; }
}
