/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme Rotation System */
:root {
    /* Theme 1: Industrial (Default) */
    --primary-red: #ff0000;
    --dark-red: #cc0000;
    --dark-bg: #0f0f10;
    --darker-bg: #0a0a0b;
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.72);
    --accent-color: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.12);
    --hover-bg: rgba(255, 0, 0, 0.08);
    --hero-overlay-1: rgba(0, 0, 0, 0.78);
    --hero-overlay-2: rgba(0, 0, 0, 0.92);
}

/* Theme 2: Carbon */
:root[data-theme="carbon"] {
    --primary-red: #ff0000;
    --dark-red: #d00000;
    --dark-bg: #070708;
    --darker-bg: #040405;
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.7);
    --accent-color: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 0, 0, 0.08);
    --hero-overlay-1: rgba(0, 0, 0, 0.82);
    --hero-overlay-2: rgba(0, 0, 0, 0.95);
}

/* Theme 3: Steel */
:root[data-theme="steel"] {
    --primary-red: #ff0000;
    --dark-red: #c40000;
    --dark-bg: #101114;
    --darker-bg: #0b0c0f;
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.74);
    --accent-color: rgba(255, 255, 255, 0.07);
    --border-color: rgba(255, 255, 255, 0.14);
    --hover-bg: rgba(255, 0, 0, 0.08);
    --hero-overlay-1: rgba(0, 0, 0, 0.76);
    --hero-overlay-2: rgba(0, 0, 0, 0.9);
}

/* Theme 4: Night */
:root[data-theme="night"] {
    --primary-red: #ff0000;
    --dark-red: #b80000;
    --dark-bg: #0a0b0d;
    --darker-bg: #050608;
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.68);
    --accent-color: rgba(255, 255, 255, 0.045);
    --border-color: rgba(255, 255, 255, 0.11);
    --hover-bg: rgba(255, 0, 0, 0.08);
    --hero-overlay-1: rgba(0, 0, 0, 0.86);
    --hero-overlay-2: rgba(0, 0, 0, 0.97);
}

/* Theme 5: Battle (kept but no color shift) */
:root[data-theme="battle"] {
    --primary-red: #ff0000;
    --dark-red: #a80000;
    --dark-bg: #121214;
    --darker-bg: #0c0c0e;
    --light-text: #ffffff;
    --gray-text: rgba(255, 255, 255, 0.7);
    --accent-color: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.12);
    --hover-bg: rgba(255, 0, 0, 0.08);
    --hero-overlay-1: rgba(0, 0, 0, 0.8);
    --hero-overlay-2: rgba(0, 0, 0, 0.94);
}

/* Theme backgrounds are handled with overlays; do not reference missing assets */

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.65;
    background: var(--dark-bg);
    color: var(--light-text);
    text-rendering: optimizeLegibility;
}

 .loading-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(1200px 600px at 50% 40%, rgba(255, 0, 0, 0.08), transparent 60%),
                linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.98));
    transition: opacity 0.35s ease, visibility 0.35s ease;
 }

 .loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
 }

 .loading-inner {
    text-align: center;
    padding: 2rem;
 }

 .loading-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--primary-red);
    animation: loadingSpin 0.9s linear infinite;
 }

 .loading-text {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
 }

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.9rem 1rem;
    text-align: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

nav a:hover {
    background: var(--primary-red);
    color: var(--light-text);
}

/* Header styles */
header {
    background: linear-gradient(var(--hero-overlay-1), var(--hero-overlay-2)), url('images/powerlifting-gym-equipment.webp');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero {
    padding: 2.25rem;
    max-width: 800px;
    background: rgba(10, 10, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    margin-bottom: 2rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cta-button {
    background: var(--primary-red);
    color: var(--light-text);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    font-weight: bold;
    letter-spacing: 2px;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Section styles */
section {
    padding: 5.5rem 1.5rem;
    position: relative;
    text-align: center;
}

section:nth-child(odd) {
    background: var(--darker-bg);
}

section:nth-child(even) {
    background: var(--dark-bg);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--primary-red);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-red);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
    font-size: 1.05rem;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border-color);
}

#about ul {
    list-style: none;
    margin: 2rem 0;
}

#about li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
}

#about li:before {
    content: "•";
    color: var(--primary-red);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

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

.facility-item {
    background: var(--accent-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 0, 0, 0.35);
}

.facility-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.facility-item h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.facility-item p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-container h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--light-text);
}

 .faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
 }

 .faq-item {
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
 }

 .faq-item summary {
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    list-style: none;
 }

 .faq-item summary::-webkit-details-marker {
    display: none;
 }

 .faq-item summary:hover {
    background: rgba(255, 0, 0, 0.06);
 }

 .faq-answer {
    padding: 0 1.25rem 1.1rem;
    color: var(--gray-text);
 }

/* Hours section */
.hours-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hours-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    margin: 1rem;
    text-align: center;
}

.hours-item h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.hours-item p {
    color: var(--light-text);
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

.hours-note {
    color: var(--gray-text);
    font-style: italic;
}

.note {
    color: var(--gray-text);
    font-style: italic;
    margin-top: 2rem;
}

/* Contact section */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-info div {
    margin: 1rem auto;
    width: 100%;
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-info a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.map-container {
    margin: 2rem 0;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Location image */
.location-image {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 2px solid var(--primary-red);
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--gray-text);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--primary-red);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Media queries */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

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

    .about-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }

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

    .hours-grid {
        flex-direction: column;
    }

    .hours-item {
        margin: 1rem 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        margin: 1rem 0;
    }
}

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

/* Theme transition animations */
@keyframes themeTransition {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.theme-transition {
    animation: themeTransition 0.5s ease-in-out;
}

/* 3D Visualization Styles */
.weight-3d-container {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weight-3d-canvas {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.weight-3d-canvas:hover {
    transform: scale(1.05);
}

.equipment-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-red);
    border-radius: 10px;
}

.equipment-card {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-red);
}

.equipment-card h3 {
    color: var(--primary-red);
    margin: 1rem 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipment-card p {
    color: var(--gray-text);
    font-size: 1rem;
}

.weight-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.weight-item {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.weight-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
}

.weight-item h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.weight-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.equipment-tour {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--accent-color);
    border: 2px solid var(--primary-red);
    border-radius: 10px;
    overflow: hidden;
}

.tour-container {
    position: relative;
}

.tour-slide {
    padding: 2rem;
    text-align: center;
}

.tour-slide img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tour-slide h3 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tour-slide p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tour-slide ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.tour-slide li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--light-text);
}

.tour-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    gap: 2rem;
}

.tour-controls button {
    background: var(--primary-red);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.tour-controls button:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

.tour-indicator {
    color: var(--gray-text);
    font-size: 1rem;
    min-width: 60px;
    text-align: center;
}

.progress-chart {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.progress-chart h3 {
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    color: var(--light-text);
    font-weight: bold;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--darker-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    width: 0%;
    transition: width 2s ease-in-out;
    border-radius: 10px;
}

.progress-fill[data-achieved="true"] {
    width: 100%;
}

.progress-fill[data-achieved="false"] {
    width: 75%;
    background: linear-gradient(90deg, var(--gray-text), var(--accent-color));
}

.progress-date {
    color: var(--gray-text);
    font-size: 0.8rem;
    text-align: right;
}

/* Theme switcher button */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-red);
    color: var(--light-text);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-switcher:hover {
    transform: scale(1.1);
    background: var(--dark-red);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #128C7E;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Mobile adjustments for WhatsApp button */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
        left: 15px !important;
    }
    
    .whatsapp-icon {
        width: 25px !important;
        height: 25px !important;
    }
}

/* Responsive adjustments for 3D elements */
@media screen and (max-width: 768px) {
    .weight-3d-container {
        width: 150px;
        height: 150px;
    }
    
    .equipment-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .weight-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .tour-controls {
        gap: 1rem;
    }
    
    .tour-controls button {
        padding: 0.3rem 0.8rem;
        font-size: 1rem;
    }
}
