/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFF800;
    --secondary-color: #474A4F;
    --text-primary: #FFF800;
    --text-secondary: #FFFFFF;
    --bg-dark: #474A4F;
    --bg-darker: #2d2f33;
    --bg-light: #5a5d63;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-darker);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--bg-light);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    border-color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

/* Hero with Background Image */
.hero.hero-with-bg {
    background-image:
        linear-gradient(135deg, rgba(71, 74, 79, 0.92) 0%, rgba(71, 74, 79, 0.85) 100%),
        url('img/gym00025.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 248, 0, 0.03) 50px,
            rgba(255, 248, 0, 0.03) 51px
        );
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-darker);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 248, 0, 0.4);
}

/* Page Hero (for sub-pages) */
.page-hero {
    min-height: 60vh;
    padding-top: 120px;
}

.page-hero h1 {
    font-size: 3rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.section-dark {
    background-color: var(--bg-darker);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: rgba(90, 93, 99, 0.3);
    padding: 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: rgba(90, 93, 99, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Highlight Cards */
.highlight-card {
    text-align: center;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.facility-card {
    background-color: rgba(90, 93, 99, 0.3);
    padding: 2.5rem;
    border-radius: 5px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: rgba(90, 93, 99, 0.5);
}

.facility-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.facility-card h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.facility-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.learn-more:hover {
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 248, 0, 0.5);
}

/* Active Nav Link */
.nav-link.active {
    color: var(--primary-color);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background-color: rgba(90, 93, 99, 0.3);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--bg-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--bg-light);
    color: var(--text-secondary);
    font-size: 1rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-darker);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--bg-darker);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 248, 0, 0.4);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 3px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    display: block;
}

/* Pricing Section */
.pricing-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.pricing-intro h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.pricing-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background-color: rgba(90, 93, 99, 0.3);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background-color: rgba(255, 248, 0, 0.05);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.pricing-card .price-note {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-card .price-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Hours Section */
.hours-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.schedule-box {
    background-color: rgba(90, 93, 99, 0.3);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--bg-light);
}

.schedule-box.women-hours {
    border-color: var(--primary-color);
    background-color: rgba(255, 248, 0, 0.05);
}

.schedule-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid var(--bg-light);
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.schedule-table td:first-child {
    color: var(--primary-color);
    font-weight: 500;
}

.schedule-table td:last-child {
    text-align: right;
    font-weight: 600;
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 4/3;
    background-color: rgba(90, 93, 99, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Trainers Section */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trainer-card {
    background-color: rgba(90, 93, 99, 0.3);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.trainer-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.trainer-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-light);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
        background-color: var(--bg-darker);
        padding: 1rem 0;
        margin-top: 1rem;
        border-radius: 5px;
        border: 1px solid var(--bg-light);
    }

    .nav-menu.active {
        display: flex;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        order: 3;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hours-wrapper {
        grid-template-columns: 1fr;
    }

    .trainers-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .pricing-intro p {
        text-align: center;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero {
        min-height: 50vh;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Parallax Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 248, 0, 0.03) 0%, transparent 50%);
    animation: parallaxBackground 20s ease-in-out infinite alternate;
}

@keyframes parallaxBackground {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Section Animations */
.section {
    animation: fadeIn 0.8s ease-out;
}

.section h2 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-grid > *,
.pricing-grid > *,
.gallery-grid > *,
.facilities-grid > * {
    animation: fadeInUp 0.8s ease-out both;
}

.features-grid > *:nth-child(1),
.pricing-grid > *:nth-child(1),
.gallery-grid > *:nth-child(1),
.facilities-grid > *:nth-child(1) {
    animation-delay: 0.1s;
}

.features-grid > *:nth-child(2),
.pricing-grid > *:nth-child(2),
.gallery-grid > *:nth-child(2),
.facilities-grid > *:nth-child(2) {
    animation-delay: 0.2s;
}

.features-grid > *:nth-child(3),
.pricing-grid > *:nth-child(3),
.gallery-grid > *:nth-child(3),
.facilities-grid > *:nth-child(3) {
    animation-delay: 0.3s;
}

.features-grid > *:nth-child(4),
.pricing-grid > *:nth-child(4),
.gallery-grid > *:nth-child(4),
.facilities-grid > *:nth-child(4) {
    animation-delay: 0.4s;
}

.features-grid > *:nth-child(5),
.pricing-grid > *:nth-child(5),
.gallery-grid > *:nth-child(5) {
    animation-delay: 0.5s;
}

.features-grid > *:nth-child(6),
.pricing-grid > *:nth-child(6),
.gallery-grid > *:nth-child(6) {
    animation-delay: 0.6s;
}

/* Navbar Animation */
.navbar {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Card Animations */
.feature-card,
.pricing-card,
.facility-card,
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.feature-card:hover,
.facility-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 248, 0, 0.2);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 248, 0, 0.25);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 248, 0, 0.3);
}

/* CTA Button Pulse */
.cta-button {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 248, 0, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 248, 0, 0.6);
    }
}

.cta-button:hover {
    animation: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
