/* ===================================
   FITNESS GYM - MODERN STYLESHEET
   =================================== */

/* Custom Font */
@font-face {
    font-family: 'MiseryGymnast';
    src: url('font/misery-gymnast.otf');
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #10c0df;
    --primary-dark: #0da3be;
    --bg-dark: #1a1a1a;
    --bg-card: rgba(34, 34, 34, 0.92);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --shadow-color: rgba(31, 38, 135, 0.37);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --border-radius: 16px;
    --navbar-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Video Background */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
}

/* ===================================
   NAVIGATION
   =================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-fast);
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

#navbar.scrolled .nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ===================================
   HEADER / HERO
   =================================== */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

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

.hero-logo {
    max-width: 500px;
    width: 90%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(16, 192, 223, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 192, 223, 0.4);
    background: var(--primary-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

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

/* ===================================
   SECTIONS - GENERAL
   =================================== */
main {
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 30px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    margin: 20px auto;
    max-width: 1400px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

section h2 {
    font-family: 'MiseryGymnast', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.gallery-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* ===================================
   ACTIVITIES SECTION
   =================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
}

.activity-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(30px);
}

.activity-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.activity-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    font-size: 2rem;
    color: var(--bg-dark);
}

.activity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   SCHEDULE SECTION
   =================================== */
.schedule-container {
    max-width: 600px;
    width: 100%;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-fast);
}

.schedule-row.animate {
    opacity: 1;
    transform: translateX(0);
}

.schedule-row:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.schedule-row.closed {
    opacity: 0.5;
}

.schedule-row.closed.animate {
    opacity: 0.5;
}

.schedule-row .day {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-row .time {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.schedule-row.closed .time {
    color: var(--text-muted);
}

/* ===================================
   LOCATION SECTION
   =================================== */
.location-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.map-wrapper {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.location-address {
    font-style: normal;
    font-size: 1.3rem;
    color: var(--text-light);
}

.location-address i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 30px;
    background: rgba(34, 34, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 20px 20px 60px #1d1d1d, -20px -20px 60px #272727;
}

.contact-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 15px 40px rgba(16, 192, 223, 0.3);
}

.contact-card i {
    font-size: 1.3rem;
}

.contact-card:active {
    transform: translateY(0);
    box-shadow: inset 10px 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: rgba(26, 26, 26, 0.95);
    padding: 30px;
    text-align: center;
}

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

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: var(--transition-fast);
    }

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

    .nav-link {
        font-size: 1.5rem;
        padding: 15px 30px;
    }

    .hero-logo {
        max-width: 350px;
    }

    section {
        padding: 80px 20px;
        margin: 10px;
        border-radius: 12px;
    }

    section h2 {
        font-size: clamp(2.5rem, 6vw, 4rem);
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item img {
        height: 250px;
    }

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

    .activity-card {
        padding: 30px 20px;
    }

    .schedule-row {
        padding: 15px 20px;
    }

    .schedule-row .day,
    .schedule-row .time {
        font-size: 1rem;
    }

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

    .contact-card {
        padding: 20px 25px;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .location-address {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 280px;
    }

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

    .hero-cta {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    section {
        padding: 60px 15px;
    }

    section h2 {
        font-size: 2.5rem;
    }

    .activity-icon {
        width: 60px;
        height: 60px;
    }

    .activity-icon i {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 20px;
        right: 25px;
        font-size: 2.5rem;
    }
}
