/* Global Styles */
:root {
    --primary-color: #39ff14;
    /* Neon Green */
    --secondary-color: #1a1a1a;
    /* Dark Gray */
    --bg-color: #0d0d0d;
    /* Almost Black */
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --glass-surface: rgba(12, 18, 15, 0.62);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0 0;
    background: transparent;
}

header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
        var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 var(--glass-highlight),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(110deg, rgba(57, 255, 20, 0.12), transparent 38%);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 58px;
    width: 58px;
    object-fit: cover;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

nav {
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    letter-spacing: 0.03em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: auto 16px 7px;
    height: 1px;
    width: auto;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0), rgba(57, 255, 20, 0.9), rgba(57, 255, 20, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links .btn {
    margin-left: 8px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.92), rgba(112, 255, 77, 0.88));
    border-color: rgba(173, 255, 154, 0.45);
    box-shadow:
        0 14px 26px rgba(57, 255, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.nav-links .btn:hover {
    color: #051003;
    border-color: rgba(173, 255, 154, 0.7);
    background: linear-gradient(135deg, rgba(112, 255, 77, 0.98), rgba(57, 255, 20, 0.9));
}

.menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 126px;
    /* Offset for fixed header */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay darken */
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease;
    z-index: 3;
}

.hero-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 120px);
        padding: 20px;
        border-radius: 24px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
            rgba(11, 16, 13, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow:
            0 24px 40px rgba(0, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        margin-left: 0;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 18px;
    }

    .nav-links .btn {
        margin-left: 0;
        margin-top: 6px;
    }

    .nav-container {
        padding: 14px 16px;
        border-radius: 24px;
        align-items: center;
    }

    .logo {
        font-size: 18px;
        gap: 10px;
    }

    .logo img {
        height: 48px;
        width: 48px;
    }

    .hero {
        padding-top: 118px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.highlight {
    color: var(--primary-color);
}

/* About Section */
#about {
    background-color: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.about-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.about-card p {
    color: var(--text-muted);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item .overlay i {
    color: var(--primary-color);
    font-size: 30px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Instagram Section */
.instagram-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.instagram-item {
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 300px;
    background: #fff;
    /* Instagram embeds look better on white or need their own container bg handled by embed */
    border-radius: 8px;
    overflow: hidden;

    /* Correction: The embed itself has white bg, so we don't necessarily need bg on item, 
       but centering the blockquote is key */
}

/* Marquee Section */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    background: var(--secondary-color);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee-item {
    flex: 0 0 auto;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary-color);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marquee-item:hover img {
    transform: scale(1.1);
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 9));
    }

    /* Adjusted based on item count */
}

/* Pricing Section */
.pricing-section {
    background-color: #000;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.column-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* Amenities */
.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}

.amenity-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.amenity-item span {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Pricing Cards */
.pricing-cards-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-card .period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .features {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

.trial-card {
    border-left: 4px solid #fff;
}

.elite-card {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    /* Highlight emphasis */
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Gym Owner Section */
.owner-section {
    background: linear-gradient(to right, #000 0%, var(--secondary-color) 100%);
    padding: 80px 0;
}

.owner-container {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.owner-image {
    flex: 0 0 350px;
    position: relative;
}

.owner-image img {
    width: 100%;
    border-radius: 10px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
    box-shadow: 10px 10px 0px var(--primary-color);
}

.owner-image:hover img {
    filter: grayscale(0%);
}

.owner-info {
    flex: 1;
    max-width: 500px;
}

.owner-name {
    font-size: 48px;
    font-family: 'Oswald', sans-serif;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.owner-role {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.owner-tagline {
    font-size: 28px;
    font-weight: 300;
    color: #fff;
    font-style: italic;
    margin-bottom: 30px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.owner-specialties {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.owner-specialties span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.owner-specialties span:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Contact Section */
#contact {
    background: var(--secondary-color);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.map-container {
    flex: 1 1 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

.contact-info {
    flex: 1 1 300px;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.info-item p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #000;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column-reverse;
    }

    .map-container {
        width: 100%;
        flex: none;
    }

    .contact-info {
        width: 100%;
        text-align: center;
    }

    .info-item {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Pricing Responsive */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }

    /* Owner Responsive */
    .owner-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .owner-tagline {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        padding-left: 0;
        padding-bottom: 10px;
        display: inline-block;
    }

    .owner-specialties {
        justify-content: center;
    }

    .owner-image {
        flex: 0 0 auto;
        width: 80%;
    }
}

/* Gallery Hover Fix */
.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay i {
    transform: scale(1);
}

/* Masonry Effect */
@media (min-width: 768px) {
    .gallery-item.item-1 {
        grid-column: span 2;
    }

    .gallery-item.item-4 {
        grid-column: span 2;
    }
}
