/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --deep-purple: #1a0a2e;
    --magenta: #c0186c;
    --neon-green: #39ff14;
    --violet: #7b2d98;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--deep-purple);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navbar Enhancements */
.navbar {
    transition: all 0.4s ease-in-out;
    padding: 20px 0;
}

.navbar.navbar-scrolled {
    background: rgba(13, 5, 28, 0.9) !important;
    backdrop-filter: blur(15px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Contrast against images */
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--magenta) !important;
}

h1,
h2,
h3,
.oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Video Overlay */
#video-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-intro video {
    width: 100%;
    display: block;

}

.skip-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--magenta);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10000;
}

/* Sections */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
    /* Ensure blur doesn't bleed */
}

.hero h1,
.hero .display-1,
.hero .display-3 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.7);
    color: #fff;
}

.hero .lead {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-content-box {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 800px;
    width: 90%;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/gym1.png');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: -2;
    transform: scale(1.1);
    /* Prevent white edges from blur */
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.75) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: -1;
}

.hero img.logo {
    max-width: 300px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--magenta));
    position: relative;
    z-index: 2;
}

.cosmic-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.cosmic-card:hover {
    transform: translateY(-10px);
    border-color: var(--magenta);
}

.table-cosmic {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    /* Light background for black text + neon glow */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-collapse: separate;
    border-spacing: 0;
}

.table-cosmic th {
    background: linear-gradient(135deg, var(--magenta), var(--violet)) !important;
    color: #ffffff !important;
    border: none;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.table-cosmic td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-cosmic .text-neon {
    color: #000000 !important;
    /* Black text */
    font-weight: 800;
    text-shadow: 0 0 10px #39ff14, 0 0 20px rgba(57, 255, 20, 0.5);
    /* Green Neon Glow */
}

.table-cosmic .instructor-name {
    color: #000000 !important;
    /* Black text */
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    text-shadow: 0 0 10px #00ffff, 0 0 20px rgba(0, 255, 255, 0.5);
    /* Light Blue Glow */
}

.table-cosmic .hour-cell {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
    font-weight: 800;
    font-size: 0.9rem;
    border-right: 2px solid var(--magenta) !important;
}

.table-cosmic td:last-child {
    border-right: none;
}

.table-cosmic tbody tr:last-child td {
    border-bottom: none;
}


/* Custom Scrollbar for Horizontally Scrollable Tables */
.table-responsive {
    border-radius: 20px;
    padding-bottom: 5px;
    /* Space for scrollbar */
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--magenta);
    border-radius: 10px;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    color: white;
    font-size: 30px;
}

/* Astronaut Decor */
.astronaut {
    position: absolute;
    width: 150px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.btn-magenta {
    background-color: var(--magenta);
    border: none;
    color: white;
}

.btn-magenta:hover {
    background-color: var(--violet);
    color: white;
}

.text-neon {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* Forms & Inputs Global */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(5px);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 10px var(--magenta) !important;
    border-color: var(--magenta) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix for Select Dropdown Options */
select option {
    background-color: var(--deep-purple);
    color: white;
}

/* High Contrast Help Text */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.modal-body .text-muted,
.auth-card .text-muted {
    color: #ffcc00 !important;
    /* Yellow for critical help text in dark containers */
}

/* Footer Styling */
.cosmic-footer {
    background: linear-gradient(to bottom, transparent, rgba(26, 10, 46, 0.95));
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 5;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-sm {
    width: 35px;
    height: 35px;
    font-size: 16px;
    margin: 0 5px;
}

.x-small {
    font-size: 0.75rem !important;
}

.social-icon:hover {
    background: var(--magenta);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--magenta);
    border-color: var(--magenta);
}

/* WhatsApp Polish */
.whatsapp-float {
    text-decoration: none !important;
}

.whatsapp-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--magenta);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
    box-shadow: 0 0 10px var(--magenta);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    animation: floatTooltip 3s ease-in-out infinite;
}

@keyframes floatTooltip {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -5px);
    }
}

/* Dynamic Navbar */
.navbar {
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
    background: rgba(26, 10, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

/* Video Gallery Styles */
.video-card {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.video-card video {
    width: 100%;
    display: block;

}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(192, 24, 108, 0.3);
    border-color: var(--magenta);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    color: white;
    font-size: 40px;
    filter: drop-shadow(0 0 10px var(--magenta));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem !important;
    }

    .display-3 {
        font-size: 2.2rem !important;
    }

    .hero {
        padding: 60px 10px;
        min-height: 80vh;
    }

    /* Improved Mobile Tables (Horizontal Scroll instead of Break) */
    .table-cosmic {
        min-width: 800px;
        /* Force minimum width to enable horizontal scroll */
    }

    .table-responsive {
        position: relative;
    }

    .scroll-hint {
        display: block;
        text-align: center;
        color: var(--neon-green);
        font-size: 0.8rem;
        margin-bottom: 10px;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 0.6;
        }

        50% {
            opacity: 1;
        }
    }
}

@media (min-width: 769px) {
    .scroll-hint {
        display: none;
    }
}

@media (min-width: 1400px) {
    .modal-xl {
        max-width: 1200px;
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }

    .display-3 {
        font-size: 4.5rem;
    }

    .video-card {
        max-width: 75%;
    }
}

/* Modal Video Fix */
#modalVideo {
    max-height: 85vh;
    object-fit: contain !important;
    background: #000;
}

@media (min-width: 2000px) {
    .video-card {
        max-width: none !important;
    }
}