/* ==========================================================================
   SCORE FITNESS CLUB - PREMIUM STYLESHEET
   System Design: Dark, Athletic, Modern, Responsive
   ========================================================================== */

/* 1. Variables & Root Design Tokens */
:root {
    --color-bg-main: #0a0a0a;
    --color-bg-card: #121212;
    --color-bg-elevated: #1a1a1a;
    --color-bg-light: #f4f4f6;
    
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-text-dark: #121212;

    --color-primary: #ff5500;
    --color-primary-hover: #ff6a1a;
    --color-primary-glow: rgba(255, 85, 0, 0.25);

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --header-height: 76px;
    --container-max-width: 1240px;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Utility Layout Classes */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 64px 0;
    }
}

.sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Intro Screen */
.intro-screen {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--transition-smooth), visibility 0.6s;
}

.intro-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.intro-logo {
    animation: introPulse 1s ease-in-out infinite alternate;
}

.intro-line {
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

@keyframes introPulse {
    from { opacity: 0.6; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* 4. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 4px 0;
}

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

.nav-link:hover {
    color: #ffffff;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 0 auto;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 32px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.mobile-nav-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

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

@media (max-width: 868px) {
    .desktop-nav {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}

/* 5. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2deg);
    box-shadow: 0 6px 24px rgba(255, 85, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2deg);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* 6. Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.7) 60%,
        var(--color-bg-main) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    right: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 30px;
    height: 1px;
    background-color: #ffffff;
}

@media (max-width: 576px) {
    .hero-actions .btn {
        width: 100%;
    }
    .scroll-indicator {
        display: none;
    }
}

/* 7. Brand Message Section */
.brand-section {
    background-color: var(--color-bg-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.statement-large {
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.statement-large strong {
    color: var(--color-primary);
    font-weight: 700;
}

.statement-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 680px;
}

@media (max-width: 868px) {
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 8. Gym Experience Section (Asymmetrical Gallery) */
.experience-section {
    background-color: var(--color-bg-card);
}

.section-header {
    margin-bottom: 48px;
}

.experience-gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: var(--color-bg-elevated);
}

.image-wrapper {
    width: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

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

.item-caption {
    padding: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.item-caption h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

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

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

/* 9. Services Section */
.services-section {
    background-color: var(--color-bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.service-card {
    background-color: var(--color-bg-card);
    padding: 40px 32px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(255, 85, 0, 0.4);
    transform: translateY(-4deg);
}

.card-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.demo-notice {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 868px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 10. Accent Impact Section */
.accent-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.accent-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.accent-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2px);
}

.accent-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.accent-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

/* 11. Contact Section */
.contact-section {
    background-color: var(--color-bg-card);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    color: #ffffff;
}

.contact-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-action-box {
    background-color: var(--color-bg-elevated);
    padding: 40px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-action-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-action-box p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 868px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 12. Footer */
.main-footer {
    background-color: #050505;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 28px;
    width: auto;
}

.footer-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.social-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

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

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 13. Scroll Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .intro-screen {
        display: none;
    }
    .gallery-item img {
        transition: none;
    }
}
