/* Modern Dark Theme Variables */
:root {
    /* Theme Variables (Red/Dark Default) */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #ff2e2e;
    /* Red Danger */
    --accent-hover: #d32f2f;
    --font-main: 'Prompt', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--accent-color);
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 230, 118, 0.1) 0%, rgba(18, 18, 18, 1) 70%);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-speed);
    display: inline-block;
}

.btn.primary {
    background-color: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn.secondary:hover {
    background-color: var(--text-primary);
    color: #000;
}

/* About Section */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text strong {
    color: var(--text-primary);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stats li {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Workouts Grid */
.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition-speed);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.card-image {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.3));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gallery Placeholder */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    background-color: var(--bg-secondary);
    height: 250px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    /* Placeholder gradient effect since we don't have real images yet */
    background: linear-gradient(45deg, var(--bg-secondary), var(--bg-tertiary));
}

.gallery-item::before {
    content: 'IMG';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    font-weight: 700;
}


/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 50px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   PHASE 4: COOL FEATURES
============================ */

/* 1. Beast Mode (Light/Red Theme) */
body.beast-mode {
    --bg-primary: #f4f4f4;
    /* Cream/Light Gray */
    --bg-secondary: #ffffff;
    /* White */
    --text-primary: #121212;
    /* Dark Text */
    --text-secondary: #424242;
    --accent-color: #ff2e2e;
    --accent-hover: #d32f2f;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

body.beast-mode header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.beast-mode .card,
body.beast-mode .exercise-card {
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.beast-mode .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 46, 46, 0.2);
    border-color: var(--accent-color);
}

body.beast-mode .nav-links a {
    color: var(--text-primary);
}

body.beast-mode .footer-content p {
    color: var(--text-secondary);
}

body.beast-mode .highlight {
    text-shadow: none;
    /* Remove glow for cleaner light look, or keep subtle */
    color: var(--accent-color);
    font-weight: 800;
}

body.beast-mode button,
body.beast-mode .btn.primary {
    box-shadow: 0 0 15px rgba(255, 46, 46, 0.5);
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Beast Mode Toggle Button */
.beast-toggle-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--text-secondary);
    backdrop-filter: blur(5px);
}

.beast-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.beast-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #ff2e2e;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.beast-label {
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 2. Interactive Muscle Map (Anatomy) */
#anatomy {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-primary);
    /* Optional: Tech grid background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.anatomy-container {
    position: relative;
    width: 300px;
    /* SVG width */
    height: 600px;
    margin: 0 auto;
    border: 2px solid rgba(0, 230, 118, 0.2);
    border-radius: 20px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.anatomy-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--accent-color));
    transition: filter 0.3s;
}

body.beast-mode .anatomy-img,
body.beast-mode .anatomy-container {
    filter: sepia(100%) saturate(500%) hue-rotate(-50deg);
    /* Shift to Red */
    border-color: rgba(255, 46, 46, 0.3);
}

/* Hotspots */
.hotspot {
    position: absolute;
    background-color: rgba(0, 230, 118, 0.3);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.6;
}

.hotspot:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent-color);
    opacity: 1;
}

/* Hotspot Positions (Adjust based on SVG layout) */
.hotspot-chest {
    top: 22%;
    left: 43%;
}

/* Chest */
.hotspot-shoulders {
    top: 18%;
    left: 20%;
}

/* Shoulder L */
.hotspot-shoulders-r {
    top: 18%;
    left: 66%;
}

/* Shoulder R */
.hotspot-arms {
    top: 35%;
    left: 10%;
}

/* Arm L */
.hotspot-arms-r {
    top: 35%;
    left: 76%;
}

/* Arm R */
.hotspot-legs {
    top: 60%;
    left: 43%;
}

/* Legs */
.hotspot-back {
    top: 25%;
    left: 43%;
    display: none;
}

/* Back (Hidden on front view) */

/* Tooltip/Label */
.hotspot::after {
    content: attr(data-label);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
}

.hotspot:hover::after {
    opacity: 1;
    top: -40px;
}