/* 
 * MyGym Design System - Rayo Theme (Light & Bold)
 * Inspired by Rayo Personal Portfolio
 */

@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;600;800&family=Funnel+Sans:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    /* Color Palette - Dark Mode */
    --bg-main: #050505;
    --text-main: #FFFFFF;
    --text-muted: #888888;

    --accent-orange: #ff4500;
    --accent-dark: #121212;
    --accent-card: #1C1C1C;
    --accent-white: #FFFFFF;

    /* Layout & Borders */
    --radius-huge: 40px;
    --radius-pill: 50px;
    --radius-round: 50%;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
body.rayo-theme {
    font-family: 'Funnel Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-muted);
}

p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Typography Classes */
.text-massive {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: lowercase;
}

.text-huge {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Buttons */
.rayo-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    font-family: 'Funnel Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    background-color: transparent;
    border: 1px solid var(--text-main);
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-transform: capitalize;
}

.rayo-pill-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
}

.rayo-pill-btn.active {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #FFFFFF;
}

.rayo-round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    background-color: var(--accent-orange);
    color: #FFFFFF;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.rayo-round-btn:hover {
    transform: scale(1.05) rotate(45deg);
    background-color: var(--text-main);
    color: var(--bg-main);
}

/* Layout Blocks */
.rayo-section-card {
    border-radius: var(--radius-huge);
    padding: 80px;
    margin: 20px;
    background-color: var(--accent-dark);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rayo-section-card.bg-orange {
    background-color: var(--accent-orange);
    color: #FFFFFF;
}

.rayo-section-card.bg-card {
    background-color: var(--accent-card);
    color: var(--text-main);
}

.rayo-section-card.bg-dark {
    background-color: #0A0A0A;
    color: var(--text-main);
}

.rayo-section-card h2,
.rayo-section-card h3 {
    color: inherit;
}

/* Glass & Info Cards */
.rayo-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-number {
    font-family: 'Funnel Display', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text-muted);
}

/* Navbar overrides */
.navbar-rayo {
    padding: 20px 40px;
    background: transparent !important;
    transition: var(--transition-smooth);
}

.navbar-brand-rayo {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-main) !important;
    letter-spacing: -0.05em;
    line-height: 1;
}

.nav-link-rayo {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 20px !important;
}

/* Hero Section */
.hero-rayo {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Form Styles */
.rayo-form-control {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 15px 0;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.rayo-form-control:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
    border-bottom-color: var(--text-main);
}

.rayo-form-control::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.rayo-section-card.bg-dark .rayo-form-control {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-white);
}

.rayo-section-card.bg-dark .rayo-form-control:focus {
    border-bottom-color: var(--accent-white);
}

.rayo-section-card.bg-dark .rayo-form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Image Integration & Detailing */
.rayo-img-block {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-huge);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    filter: grayscale(40%) brightness(0.8);
    transition: var(--transition-smooth);
}

.rayo-img-block:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}

/* Floating Animation */
.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .rayo-section-card {
        padding: 40px;
        margin: 10px;
        border-radius: 30px;
    }

    .navbar-rayo {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .rayo-section-card {
        padding: 30px;
    }
}

/* Marquee Animation */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    background-color: var(--accent-orange);
    color: #FFFFFF;
    position: relative;
    transform: rotate(-2deg);
    margin: 80px 0;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 25s linear infinite;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* AOS overrides */
[data-aos] {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1) rotate(10deg);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    max-width: 150px;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 69, 0, 0.2);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dynamic Word Box */
.dynamic-word-box {
    display: inline-flex;
    overflow: hidden;
    height: 1.15em;
    border: 3px solid rgba(255, 69, 0, 0.4);
    border-radius: var(--radius-pill);
    padding: 0 40px;
    background: rgba(255, 69, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: flex-start;
    vertical-align: middle;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dynamic-words {
    display: flex;
    flex-direction: column;
    animation: scrollWordsVertical 15s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.dynamic-words span {
    height: 1.15em;
    line-height: 1.1em;
    display: block;
    white-space: nowrap;
    color: var(--accent-orange);
    text-align: center;
    padding-bottom: 0.05em;
}

@keyframes scrollWordsVertical {

    0%,
    11% {
        transform: translateY(0);
    }

    16.66%,
    27.66% {
        transform: translateY(-1.15em);
    }

    33.33%,
    44.33% {
        transform: translateY(-2.30em);
    }

    50%,
    61% {
        transform: translateY(-3.45em);
    }

    66.66%,
    77.66% {
        transform: translateY(-4.60em);
    }

    83.33%,
    94.33% {
        transform: translateY(-5.75em);
    }

    100% {
        transform: translateY(-6.90em);
    }
}

@media (max-width: 768px) {
    .dynamic-word-box {
        padding: 0 20px;
        border-width: 2px;
    }
}