/* ===========================================
   FUTURE TIMES GYM - ULTIMATE DESIGN (v3)
   Mobile perfected, floating shapes, blue accents
   =========================================== */

:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c353c;
    --text-secondary: #513427;
    --border-light: #ceb5b1;

    --primary: #dabd13;
    --secondary: #fed800;
    --blue: #0f85ea;
    --teal: #337287;
    --muted: #a06d57;
    --mustard: #b49923;
    --dark: #2c353c;

    --gradient-primary: linear-gradient(135deg, #2c353c, #0f85ea);
    --gradient-accent: linear-gradient(135deg, #dabd13, #fed800);
    --gradient-gold: linear-gradient(135deg, #dabd13, #b49923);

    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --radius-full: 50px;

    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #ceb5b1;
    --border-light: #2c353c;

    --primary: #dabd13;
    --secondary: #fed800;
    --blue: #0f85ea;
    --teal: #337287;
    --muted: #a06d57;
    --mustard: #b49923;
    --dark: #1a1a1a;

    --gradient-primary: linear-gradient(135deg, #000000, #2c353c);
    --gradient-accent: linear-gradient(135deg, #dabd13, #b49923);
    --gradient-gold: linear-gradient(135deg, #b49923, #dabd13);

    --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overscroll-behavior-x: none;
}

/* Global Spacing Enhancements for Premium Feel */
section {
    padding: 100px 0;
}
.container {
    max-width: 1400px; /* Wider max width for bigger screens */
    margin: 0 auto;
    padding: 0 5%;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 4vw, 2.5rem); }
p { font-size: clamp(0.85rem, 2vw, 1.125rem); color: var(--text-secondary); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 { margin-bottom: 15px; color: var(--text-primary); }
.section-title p { max-width: 700px; margin: 0 auto; }

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- LOADER ----- */
.loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s;
}
.loader-logo {
    width: 150px;
    height: 150px;
    background: url('assets/img/loo.png') center/contain no-repeat;
    animation: bounceScale 1.2s infinite alternate;
}
.loader-dots {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.loader-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    animation: dotPulse 0.8s infinite alternate;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; background-color: var(--secondary); }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; background-color: var(--blue); }
.loader-text {
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}
@keyframes bounceScale {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
}
@keyframes dotPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 1; }
}
body.loaded .loader {
    opacity: 0;
    pointer-events: none;
}

/* ----- HEADER (with theme toggle) ----- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header.scrolled {
    padding: 10px 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}
.logo img { width: 40px; height: 40px; object-fit: contain; }
.logo span { font-size: 1.1rem; }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--blue); /* blue accent */
    transition: var(--transition);
}
.nav-links a:hover::before,
.nav-links a.active::before { width: 100%; }
.nav-links a.active { color: var(--blue); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-user-icon .user-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #2c353c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary);
}
.header-user-icon .user-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--blue);
}
.header-join-btn {
    background: var(--gradient-accent);
    color: #2c353c;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    font-size: 0.9rem;
}
.header-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--blue);
}
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--text-primary);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}
.theme-toggle-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: rotate(30deg);
}
.hamburger {
    display: none;
    width: 38px; height: 38px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-sm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.hamburger span {
    width: 20px; height: 2px;
    background: #2c353c;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ----- MOBILE MENU (fixed profile) ----- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px; /* Reduced width */
    width: 280px; /* Reduced width */
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 30px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-profile {
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--blue);
    text-align: center;
}
.mobile-profile a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}
.mobile-profile i { color: var(--blue); }

.mobile-nav-links {
    list-style: none;
    margin-bottom: 20px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
    display: block;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary);
}

/* Minimalist Social Icons directly under links */
.mobile-social-clean {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease 0.3s;
}

.mobile-menu.active .mobile-social-clean {
    opacity: 1;
    transform: translateX(0);
}

.mobile-social-clean a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s;
    background: var(--bg-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mobile-social-clean a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    background: var(--bg-hover);
}

.mobile-settings {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.mobile-settings h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.settings-item span i { margin-right: 10px; color: var(--blue); }
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { background-color: var(--blue); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.mobile-footer {
    display: none; /* Hidden because we moved social icons up */
}
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.mobile-social .social-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.social-icon.instagram { background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285AEB); }
.social-icon.facebook { background: #1877F2; }
.social-icon.youtube { background: #FF0000; }
.social-icon.tiktok { background: #000000; }
.mobile-social .social-icon:hover { transform: scale(1.2) translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* ----- HERO with 3D glass sweat ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.sweat-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 3;
}
.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    width: 100%;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===== HERO LOGO SHOWCASE ===== */
.hero-logo-showcase {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinning rings around the logo */
.hero-logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}
.ring-outer {
    width: 180px;
    height: 180px;
    border-top-color: rgba(218, 189, 19, 0.8);
    border-right-color: rgba(218, 189, 19, 0.2);
    border-bottom-color: transparent;
    border-left-color: transparent;
    animation: ringSpinCW 12s linear infinite;
    box-shadow: 0 0 20px rgba(218,189,19,0.15);
}
.ring-inner {
    width: 140px;
    height: 140px;
    border-top-color: transparent;
    border-right-color: rgba(15, 133, 234, 0.6);
    border-bottom-color: rgba(15, 133, 234, 0.2);
    border-left-color: transparent;
    animation: ringSpinCCW 15s linear infinite;
    box-shadow: 0 0 15px rgba(15,133,234,0.15);
}
@keyframes ringSpinCW  { to { transform: rotate(360deg);  } }
@keyframes ringSpinCCW { to { transform: rotate(-360deg); } }

/* Three orbiting particles */
.hero-logo-orbit {
    position: absolute;
    width: 180px;
    height: 180px;
    animation: ringSpinCW 10s linear infinite;
}
.hero-logo-orbit span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
}
.hero-logo-orbit span:nth-child(1) { transform: rotate(0deg)   translateX(90px) translateY(-3px); background: var(--primary); width:8px; height:8px; }
.hero-logo-orbit span:nth-child(2) { transform: rotate(120deg) translateX(90px) translateY(-3px); background: var(--blue); box-shadow: 0 0 12px var(--blue); width:6px; height:6px; }
.hero-logo-orbit span:nth-child(3) { transform: rotate(240deg) translateX(90px) translateY(-3px); background: #fff; box-shadow: 0 0 12px #fff; width:7px; height:7px; }

/* The actual logo image */
.hero-logo-img {
    position: relative;
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 2;
    animation: heroLogoFloat 6s ease-in-out infinite, heroLogoPulse 4s ease-in-out infinite;
    background: none !important;
}

/* Continuous float */
@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Pulsing glow */
@keyframes heroLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(218,189,19,0.3)) drop-shadow(0 0 30px rgba(0,0,0,0.5)); }
    50%       { filter: drop-shadow(0 0 25px rgba(218,189,19,0.6)) drop-shadow(0 0 40px rgba(15,133,234,0.3)); }
}

/* Fixed-height wrapper — buttons always sit below this box, NEVER move */
.hero-title-box {
    position: relative;
    margin-bottom: 40px;
    z-index: 5;
}
.hero-headline {
    color: #fff;
    line-height: 1.1;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.highlight-wellness {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 5px;
}
.hero-buttons { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center;
    margin-bottom: 60px;
    z-index: 5;
    position: relative;
}

/* ===== BUTTON LOADING STATE ===== */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}
.btn.is-loading::after {
    content: "\f1ce"; /* FontAwesome fa-circle-notch */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    animation: fa-spin 1s infinite linear;
    display: inline-block;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.5s ease;
    margin-top: 20px;
    z-index: 5;
    position: relative;
}
.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}
.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 13px;
    position: relative;
}
.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollBounce 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}
.scroll-indicator p {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-weight: 600;
}
@keyframes scrollBounce {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}


/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.btn i { margin-right: 8px; }
.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(218,189,19,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 15px 30px rgba(218,189,19,0.5), 0 0 20px rgba(218,189,19,0.2) inset; 
}
.btn-glow {
    animation: buttonGlowPulse 3s infinite alternate;
}
@keyframes buttonGlowPulse {
    0% { box-shadow: 0 4px 15px rgba(218,189,19,0.3), 0 0 0 0 rgba(218,189,19,0.4); }
    100% { box-shadow: 0 8px 25px rgba(218,189,19,0.5), 0 0 0 10px rgba(218,189,19,0); }
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { 
    background: rgba(255,255,255,0.15); 
    color: #fff; 
    border-color: #fff;
    transform: translateY(-4px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--blue);
    color: #fff;
}
.btn-large { padding: 16px 44px; font-size: 1rem; }

/* ----- ABOUT SECTION with floating shapes ----- */
.about-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.floating-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.1;
    filter: blur(60px);
    z-index: 0;
    animation: float 20s infinite alternate;
}
.shape1 { top: -100px; left: -100px; animation-duration: 18s; }
.shape2 { bottom: -100px; right: -100px; background: var(--primary); animation-duration: 22s; }
.shape3 { top: 50%; left: 20%; background: var(--teal); animation-duration: 25s; }
.shape4 { bottom: 20%; right: 10%; background: var(--mustard); animation-duration: 20s; }
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.2); }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.about-content { padding-right: 20px; }
.about-highlight {
    color: var(--blue);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}
.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.stat-item h3 {
    font-size: 2rem;
    color: var(--blue);
}
.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-image img { width: 100%; display: block; transition: transform 0.6s; }
.about-image:hover img { transform: scale(1.05); }
.about-image::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 3px solid var(--blue);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ----- TEAM SECTION (MiGym style) ----- */
.team-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.team-intro h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}
.team-intro p {
    margin-bottom: 30px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}
.team-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-10px); border: 1px solid var(--blue); }
.team-image {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--blue);
}
.team-image img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 5px; font-size: 1.2rem; }
.team-card p { color: var(--text-secondary); margin-bottom: 0; }

/* ----- MEMBERSHIP CARDS ----- */
.membership-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.membership-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.membership-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.membership-card.featured {
    border: 1px solid var(--blue);
    transform: scale(1.04);
}
.membership-card.featured:hover {
    transform: translateY(-8px) scale(1.06);
}
.membership-card.advanced-card {
    background:
        radial-gradient(circle at top right, rgba(15,133,234,0.25), transparent 45%),
        radial-gradient(circle at bottom left, rgba(218,189,19,0.18), transparent 50%),
        var(--bg-primary);
    box-shadow: 0 16px 35px rgba(15,133,234,0.25);
}
.membership-card.advanced-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(145deg, var(--secondary), var(--blue), var(--teal));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.membership-card.advanced-card .card-price {
    color: var(--secondary);
    text-shadow: 0 4px 20px rgba(254,216,0,0.25);
}
.popular-tag {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--gradient-accent);
    color: #2c353c;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}
.card-badge {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.card-price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--blue);
}
.card-price .currency { font-size: 1.4rem; vertical-align: super; }
.card-price .period { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
.card-features {
    flex: 1;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.card-action {
    font-weight: 600;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
    margin-top: auto;
    font-size: 0.95rem;
}
.membership-card:hover .card-action { gap: 15px; }

/* ----- MEMBERSHIP CARD NAME ----- */
.card-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.membership-card.advanced-card .card-name {
    background: linear-gradient(135deg, var(--secondary), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- TESTIMONIALS CAROUSEL (spectacular) ----- */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-primary);
    overflow: hidden;
}
.testimonial-carousel-wrapper {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}
.carousel-track-container {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
.carousel-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.testimonial-card {
    flex: 0 0 100%;
    background: var(--bg-secondary);
    padding: 56px 48px 48px;
    border-radius: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
/* Decorative giant quote */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 9rem;
    color: var(--blue);
    opacity: 0.07;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
/* Glow orb top-right */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(15,133,234,0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
/* Bottom-left accent orb */
.testimonial-card .card-orb {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(218,189,19,0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}
.testimonial-stars i {
    color: var(--secondary);
    font-size: 0.95rem;
}
.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 36px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(15,133,234,0.15);
    flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.author-info p {
    font-size: 0.82rem;
    color: var(--blue);
    font-weight: 500;
    margin: 0;
}

/* Controls row: prev · dots · next */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}
.carousel-btn-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid var(--blue);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.78rem;
    flex-shrink: 0;
}
.carousel-btn-sm:hover {
    background: var(--blue);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(15,133,234,0.35);
}
.carousel-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    border: none;
    padding: 0;
}
.carousel-dot.active {
    background: var(--blue);
    width: 26px;
    border-radius: 4px;
}
/* Legacy carousel-btn kept for any other usage */
.carousel-btn {
    background: var(--bg-primary);
    border: 2px solid var(--blue);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--blue);
    font-size: 0.9rem;
}
.carousel-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: scale(1.1);
}

/* ----- CTA SECTION ----- */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 15px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 30px; }
.cta-section .btn-primary {
    background: var(--gradient-accent);
    color: #2c353c;
}

/* ----- FOOTER ----- */
.minimal-footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 0 2rem;
    text-align: center;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-social .social-icon {
    width: 70px; height: 70px;
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.footer-social .social-icon:hover {
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 20px 30px var(--blue);
    filter: brightness(1.2);
}
.social-icon.instagram { background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285AEB); }
.social-icon.facebook { background: #1877F2; }
.social-icon.youtube { background: #FF0000; }
.social-icon.tiktok { background: #000000; }

.footer-links-minimal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.footer-links-minimal a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}
.footer-links-minimal a:hover { color: var(--blue); }
.footer-copyright p { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* ----- WHATSAPP BUTTON ----- */
.whatsapp-container {
    position: fixed;
    bottom: 25px; right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.whatsapp-main-btn {
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.whatsapp-options {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow);
    min-width: 200px;
}
.whatsapp-options.show { display: flex; }
.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
}
.whatsapp-close-btn {
    position: absolute;
    top: 5px; right: 5px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* ----- SECTION INTERSECTION SHAPES ----- */
.section-divider {
    position: relative;
    width: 100%;
    height: 70px;
    margin-top: -1px;
    z-index: 2;
}
.section-divider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
}
.section-divider.wave::before {
    clip-path: polygon(0 55%, 10% 70%, 20% 55%, 30% 70%, 40% 55%, 50% 70%, 60% 55%, 70% 70%, 80% 55%, 90% 70%, 100% 55%, 100% 100%, 0 100%);
}
.section-divider.slant::before {
    clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
}
.section-divider.inverse::before {
    background: var(--bg-secondary);
}
.section-divider.dark::before {
    background: var(--dark);
}

/* --- ANIMATIONS START --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Animation cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background-color: var(--primary);
    margin-left: 3px;
    vertical-align: -0.1em; /* Sits right at text baseline */
    border-radius: 1px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* --- ANIMATIONS END --- */

/* ----- DESKTOP HERO SIZING ----- */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    .hero-title-box {
        height: 210px;
        margin-bottom: 52px;
    }
    .hero-content {
        max-width: 820px;
    }
    .hero-logo-showcase { width: 180px; height: 180px; }
    .ring-outer          { width: 180px; height: 180px; }
    .ring-inner          { width: 150px; height: 150px; }
    .hero-logo-orbit     { width: 180px; height: 180px; }
    .hero-logo-orbit span:nth-child(1) { transform: rotate(0deg)   translateX(90px) translateY(-5px); }
    .hero-logo-orbit span:nth-child(2) { transform: rotate(120deg) translateX(90px) translateY(-5px); }
    .hero-logo-orbit span:nth-child(3) { transform: rotate(240deg) translateX(90px) translateY(-5px); }
    .hero-logo-img       { width: 112px; height: 112px; }
}
@media (min-width: 993px) and (max-width: 1199px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-title-box {
        height: 170px;
        margin-bottom: 44px;
    }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .about-grid { grid-template-columns: 1fr; }
    .about-content { padding-right: 0; }
    .container { padding: 0 30px; }
}
@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .testimonial-carousel { flex-wrap: wrap; }
    .carousel-btn { order: 2; }
    .footer-social { gap: 1rem; }
    .footer-social .social-icon { width: 55px; height: 55px; font-size: 1.8rem; }
    .membership-card { padding: 25px 15px; }
    .about-stats { flex-direction: column; gap: 15px; }
    .team-grid { grid-template-columns: 1fr; }
    .header-join-btn { padding: 6px 15px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-title-box { height: 120px; }
    .hero-content { padding: 20px; }
    .testimonial-card { padding: 25px 20px; }
    .logo span { font-size: 0.9rem; }
    .header-join-btn { display: none; }
}

/* ----- IMAGE LOADING ----- */
/* Image loading shimmer — exclude the hero logo so its animations are never killed */
img:not(.hero-logo-img) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
img.loaded:not(.hero-logo-img) { background: none; animation: none; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ----- USER DROPDOWN ----- */
.user-dropdown {
    position: absolute;
    top: 50px; right: 0;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 160px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
}
.user-dropdown a:hover { background: var(--bg-secondary); }
.user-dropdown hr { margin: 8px 0; border: 0.5px solid var(--border-light); }