/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 60px rgba(0,0,0,0.2);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: var(--primary-gradient);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    background: rgba(102, 126, 234, 0.95);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    transition: var(--transition-medium);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    transform: scale(1);
    transition: var(--transition-fast);
}

.search-box:hover {
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 1.2rem;
    animation: searchPulse 2s infinite;
}

@keyframes searchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.95);
}

.search-input:focus {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    background: white;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

/* Enhanced Category Cards */
.category-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    transition: var(--transition-medium);
    z-index: 1;
}

.category-card:hover::before {
    left: 0;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    transition: var(--transition-medium);
    position: relative;
    z-index: 2;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary-gradient);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    position: relative;
    z-index: 2;
}

.category-card p {
    color: #718096;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Enhanced Equipment Cards */
.equipment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 1;
}

.equipment-card:hover::before {
    opacity: 1;
}

.equipment-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-heavy);
}

.equipment-image {
    width: 100%;
    height: 220px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.equipment-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.equipment-content {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.equipment-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    transition: var(--transition-fast);
}

.equipment-card:hover .equipment-title {
    color: #667eea;
}

.equipment-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--success-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.equipment-card:hover .equipment-category {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.equipment-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.equipment-difficulty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-label {
    font-weight: 500;
    color: #4a5568;
}

.difficulty-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

/* Safety Section */
.safety-section {
    padding: 80px 0;
    background-color: white;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.safety-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.safety-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.safety-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.safety-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.safety-card p {
    color: #718096;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.close:hover {
    color: #000;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 2rem;
}

.modal-equipment-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-equipment-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.instructions-section {
    margin-bottom: 2rem;
}

.instructions-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
}

.instructions-list li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
    line-height: 1.6;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.safety-tips {
    background: #fef5e7;
    border-left: 4px solid #fbbf24;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.safety-tips h4 {
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-tips ul {
    list-style: none;
    padding-left: 0;
}

.safety-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #92400e;
}

.safety-tips li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .equipment-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .filter-buttons {
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
    
    .timer-display {
        font-size: 2rem !important;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .categories-grid,
    .equipment-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
    
    .timer-display {
        font-size: 1.5rem !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .sound-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .equipment-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .filter-buttons {
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .categories-grid,
    .equipment-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Enhanced Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-medium);
    z-index: -1;
}

.filter-btn.active::before,
.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.filter-btn:active {
    transform: translateY(0);
}

/* Interactive Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--warning-gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 2s ease;
    animation: progressGlow 2s infinite alternate;
}

@keyframes progressGlow {
    0% { box-shadow: 0 0 5px rgba(250, 175, 154, 0.5); }
    100% { box-shadow: 0 0 20px rgba(250, 175, 154, 0.8); }
}

/* Interactive Workout Timer */
.timer-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    color: white;
}

.timer-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    margin: 1rem 0;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.timer-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.timer-btn:active {
    transform: translateY(0);
}

/* Interactive Counter */
.counter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.counter-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    min-width: 60px;
    text-align: center;
}

/* Sound Toggle */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.sound-toggle.muted {
    background: var(--dark-gradient);
}

/* Particle Animation */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 6s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Interactive Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .equipment-card,
    .category-card,
    .safety-card {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
    }
    
    .search-input {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .filter-btn {
        background: rgba(45, 55, 72, 0.9);
        color: #667eea;
        border-color: #667eea;
    }
}

/* Workout Tools Panel */
.workout-tools {
    position: fixed;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-medium);
    z-index: 999;
}

.workout-tools.active {
    right: 20px;
}

.tools-container {
    padding: 1.5rem;
}

.tools-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.tools-toggle {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 25px 0 0 25px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tools-toggle:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Quiz Styles */
.quiz-section {
    text-align: center;
    margin-top: 3rem;
}

.quiz-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: var(--secondary-gradient);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin: 0.5rem;
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.quiz-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.quiz-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.quiz-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.quiz-option.correct {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.2);
}

.quiz-option.incorrect {
    border-color: #f56565;
    background: rgba(245, 101, 101, 0.2);
}

.quiz-result {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 2rem 0;
}

.quiz-result.success {
    background: rgba(72, 187, 120, 0.1);
    border: 2px solid #48bb78;
    color: #48bb78;
}

.quiz-result.error {
    background: rgba(245, 101, 101, 0.1);
    border: 2px solid #f56565;
    color: #f56565;
}