* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #191919;
    --dark-black: #191919;
    --light-black: #191919;
    --accent-black: #2a2a2a;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --accent-color: #ff6b35;
    --shadow: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    z-index: 1000;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 107, 53, 0.1), 
        transparent, 
        rgba(255, 255, 255, 0.1),
        transparent);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
}

.navbar:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 107, 53, 0.6));
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

/* Compact and aligned icons inside nav links */
.nav-link i {
    line-height: 1;
    vertical-align: middle;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    margin: 2px 0;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes navbarFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--light-black) 100%);
    padding-top: 60px; /* Reduced padding for more video space */
    padding-bottom: 20px; /* Reduced padding for more video space */
    overflow: hidden; /* Prevent content from affecting scroll */
    z-index: 1;
}


/* Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.hero-video-background.fade-out {
    opacity: 0;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* 60% opacity */
    filter: blur(2px); /* Add blur effect */
    transform: scale(1.05); /* Slightly scale up to prevent blur edges from showing */
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.320, 1), transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* Spacer to push content below the sticky hero */
.hero-spacer {
    height: 10vh;
    position: relative;
    z-index: 2;
}

/* Ensure content sections appear above the sticky hero */
.section {
    position: relative;
    z-index: 10;
    background: var(--primary-black);
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo .logo-img {
    width: 90vw;
    height: auto;
    max-width: 800px;
    min-width: 300px;
    max-height: 50vh;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    opacity: 1;
    animation: fadeInUp 1.2s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    flex-shrink: 0;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-button:hover::before {
    opacity: 1;
}

.auth-button:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-button::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 107, 53, 0.6));
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.auth-button:hover::after {
    width: calc(100% - 24px);
}

.register-btn {
    background: linear-gradient(135deg, 
        var(--accent-color) 0%, 
        #e55a2b 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.register-btn:hover {
    background: linear-gradient(135deg, 
        #e55a2b 0%, 
        var(--accent-color) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #e55a2b;
}

.register-btn::after {
    background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.8));
}

.profile-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.welcome-message {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 20px;
    position: relative;
    width: 100%;
    order: -1;
    animation: fadeInUp 0.8s ease-out;
    flex-shrink: 0;
}

.welcome-text {
    color: var(--white);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    max-width: 90%;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.welcome-text span {
    -webkit-text-fill-color: initial;
    background: none;
    text-shadow: none;
}

.welcome-text:hover {
    transform: scale(1.02);
    text-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Motivation Text - Replaces logo when logged in */
.hero-motivation {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 0;
    padding: 30px;
    position: relative;
    width: 100%;
    order: -1;
    animation: fadeInUp 0.8s ease-out;
    flex-shrink: 0;
}

.motivation-text {
    color: var(--white);
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    max-width: 90%;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.motivation-main {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.motivation-username {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(135deg, 
        var(--accent-color) 0%, 
        #e55a2b 50%, 
        var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-motivation:hover .motivation-main {
    transform: scale(1.02);
    text-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.hero-motivation:hover .motivation-username {
    transform: scale(1.05);
    text-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #e55a2b, var(--accent-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    border-color: #e55a2b;
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scaleY(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50%) scaleY(1);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Apple-like Scroll Video Container */
.video-container {
    height: 500vh; /* Will be dynamically set by JavaScript based on video duration */
    position: relative;
    margin: 2rem 0;
}

.video-holder {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 66.67%; /* Maximal zwei Drittel der Bildschirmbreite */
    max-width: 66.67%;
    margin-left: auto; /* Positioniert das Video auf der rechten Seite */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.training-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Apple-like full coverage */
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.training-video:hover {
    transform: scale(1.02);
}

/* Legacy support for old class name */
.training-video-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 66.67%;
    max-width: 66.67%;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-black);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--accent-black);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-black);
    border: 1px solid var(--accent-black);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-black);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section li {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.social-link i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--accent-black);
    color: var(--light-gray);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    
    /* Training Video Mobile Anpassungen */
    .training-video-container {
        width: 100%; /* Auf mobilen Geräten volle Breite */
        margin-left: 80rem; /* Weiter nach rechts verschoben, damit die Person sichtbar ist */
        height: 60vh; /* Reduzierte Höhe für bessere mobile Darstellung */
    }
    
    .navbar {
        top: 15px;
        left: 10px;
        right: 10px;
        width: auto;
        margin: 0;
        animation: none;
        transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
        overflow: hidden;
    }
    
    .navbar.menu-active {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .navbar::before {
        display: none;
    }
    
    .nav-container {
        padding: 12px 24px;
        flex-direction: column;
        transition: none;
        align-items: stretch; /* Ensure full width alignment */
        justify-content: flex-start; /* Stack elements from top */
    }
    
    .nav-container .nav-brand {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center; /* Perfect vertical centering */
        order: 1;
        min-height: 44px; /* Ensure consistent height for touch targets */
    }
    
    .nav-logo {
        height: 35px;
        display: flex; /* Ensure logo container is flex */
        align-items: center; /* Center logo vertically */
        justify-content: center; /* Center logo horizontally */
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        gap: 6px;
        height: 0;
        overflow: hidden;
        opacity: 0;
        order: 2;
        transition: height 0.25s ease, opacity 0.2s ease;
        padding: 0 12px;
        margin-top: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        will-change: height, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .nav-menu.active {
        height: auto;
        opacity: 1;
        padding: 16px 12px 12px 12px;
        margin-top: 8px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateY(8px) translateZ(0);
        transition: opacity 0.2s ease, transform 0.2s ease;
        will-change: opacity, transform;
        backface-visibility: hidden;
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.08s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.11s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.14s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.17s; }
    .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.20s; }
    .nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.23s; }
    
    .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1;
        padding: 12px 16px;
        margin: 0 0 4px 0;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        will-change: background-color, border-color, color;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }
    
    .nav-link:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.98);
    }

    .hamburger {
        display: flex;
        order: 0;
        transition: none;
        align-items: center; /* Perfect vertical centering */
        justify-content: center; /* Center hamburger content */
        height: 44px; /* Consistent height for touch targets */
        min-height: 44px; /* iOS recommended minimum touch target */
        padding: 8px;
        margin: 0; /* Remove any default margins */
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg) translateZ(0);
        transition: transform 0.2s ease;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg) translateZ(0);
        transition: transform 0.2s ease;
    }

    .hero {
        padding-top: 80px; /* Reduced padding on mobile for more video space */
        height: 100vh;
    }
    
    .hero-video-background video {
        filter: blur(1px); /* Reduce blur on mobile for better performance */
    }

    .hero-logo .logo-img {
        width: 85vw;
        max-width: 400px;
        min-width: 250px;
        max-height: 60vh;
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobile styles for motivation text */
    .hero-motivation {
        padding: 20px;
        margin-bottom: 20px;
    }

    .motivation-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .motivation-main {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .motivation-username {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem; /* Reduced from 1.5rem to move buttons up */
        margin-bottom: 2rem; /* Added bottom margin for spacing below */
        width: 100%;
        max-width: calc(100vw - 20px); /* Match navbar width */
        position: relative;
        top: -10px; /* Move buttons up a bit more */
    }

    .auth-button {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        min-height: 50px;
    }



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

    .cards-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Contact page mobile responsiveness */
    .contact-form {
        margin-top: 2rem;
    }
    
    section .section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Small iPhone Devices */
@media (max-width: 400px) {
    .navbar {
        top: 10px;
        left: 8px;
        right: 8px;
        width: auto;
        margin: 0;
    }
    
    .auth-buttons {
        max-width: calc(100vw - 16px); /* Match navbar width for small devices */
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        gap: 0.6rem;
        top: -6px; /* Move buttons slightly up */
    }
    
    .nav-container {
        padding: 10px 20px;
        align-items: center; /* Ensure perfect vertical centering */
        justify-content: space-between; /* Maintain proper spacing */
    }
    
    .nav-brand {
        align-items: center; /* Ensure logo is vertically centered */
        justify-content: flex-start; /* Align to the left */
    }
    
    .nav-logo {
        height: 30px;
        display: flex; /* Ensure logo container is flex */
        align-items: center; /* Center logo vertically */
    }
    
    .hamburger {
        display: flex;
        align-items: center; /* Perfect vertical centering for hamburger */
        justify-content: center; /* Center hamburger content */
        height: 44px; /* Ensure consistent height for touch targets */
        min-height: 44px; /* iOS recommended minimum touch target */
        padding: 8px;
        margin: 0; /* Remove any default margins */
    }
    
    .hamburger .bar {
        margin: 2px 0; /* Consistent spacing between bars */
        align-self: center; /* Center bars within hamburger */
    }
    
    .nav-menu {
        width: calc(100% - 24px);
        max-width: 350px;
        top: 70px;
        padding: 0; /* No padding to avoid extra navbar height when collapsed */
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 0.9rem;
        margin: 0 0 3px 0;
    }
    
    .hero {
        padding-top: 76px; /* Compact top space so content fits */
        height: 100svh; /* Respect small viewport height on mobile */
    }
    
    .hero-logo .logo-img {
        width: 78vw;
        max-width: 320px;
        min-width: 180px;
        max-height: 40vh; /* Leave room for auth buttons */
    }

    /* Small mobile styles for motivation text */
    .hero-motivation {
        padding: 15px;
        margin-bottom: 15px;
    }

    .motivation-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .motivation-main {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .motivation-username {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

/* Collapsed navbar tweaks for very small iPhones */
@media (max-width: 400px) {
    .navbar:not(.menu-active) .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
    }
    .navbar:not(.menu-active) .nav-menu {
        display: none;
    }
}

/* iPhone SE and Very Small Devices */
@media (max-width: 375px) {
    .navbar {
        top: 8px;
        left: 6px;
        right: 6px;
    }
    
    .nav-container {
        padding: 8px 16px;
        min-height: 48px; /* Ensure consistent navbar height */
    }
    
    .nav-brand {
        min-height: 32px; /* Consistent height for brand container */
    }
    
    .nav-logo {
        height: 28px; /* Slightly smaller for very small screens */
    }
    
    .hamburger {
        height: 40px; /* Slightly smaller but still touch-friendly */
        min-height: 40px;
        padding: 6px;
        width: 40px; /* Ensure square touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger .bar {
        width: 20px; /* Slightly smaller bars */
        height: 2px;
        margin: 1.5px 0; /* Tighter spacing */
    }
}

/* Ultra Small Devices (iPhone SE 1st gen, etc.) */
@media (max-width: 320px) {
    .navbar {
        top: 6px;
        left: 4px;
        right: 4px;
    }
    
    .nav-container {
        padding: 6px 12px;
        min-height: 44px;
    }
    
    .nav-logo {
        height: 26px;
    }
    
    .hamburger {
        height: 36px;
        min-height: 36px;
        width: 36px;
        padding: 5px;
    }
    
    .hamburger .bar {
        width: 18px;
        height: 2px;
        margin: 1px 0;
    }
}

/* ===== AUTHENTICATION PAGES ===== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, 
        var(--dark-black) 0%, 
        var(--primary-black) 50%, 
        var(--light-black) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-form-wrapper {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.form-input.success {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.form-input.success:focus {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-errors {
    margin-top: 5px;
}

.form-error {
    display: block;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 2px;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    margin-top: 10px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-submit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #e55a2b;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.flash-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.flash-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.flash-info {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

/* ===== PROFILE PAGE ===== */
.profile-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, 
        var(--dark-black) 0%, 
        var(--primary-black) 50%, 
        var(--light-black) 100%);
}

.profile-container {
    width: 100%;
    max-width: 500px;
}

.profile-wrapper {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card {
    text-align: center;
}

/* Profile Avatar Container */
.profile-avatar-container {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.profile-avatar i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 114px;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.edit-avatar-btn {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: var(--white);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.edit-avatar-btn:hover {
    background: linear-gradient(135deg, #e55a2b, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border-color: #e55a2b;
}

.edit-avatar-btn i {
    font-size: 0.9rem;
}

/* Upload Modal */
.upload-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.upload-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.upload-modal-header h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    margin-bottom: 15px;
}

.close-modal {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    margin-bottom: 15px;
}

.close-modal:hover {
    color: var(--accent-color);
}

.upload-modal-body {
    padding: 0 30px 30px;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(255, 107, 53, 0.05);
}

.upload-area.drag-over {
    border-color: var(--accent-color);
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.upload-text {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.selected-file {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.file-preview {
    margin-bottom: 15px;
    text-align: center;
}

.preview-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    color: var(--white);
    font-weight: 500;
    flex: 1;
    margin-right: 15px;
    word-break: break-all;
}

.remove-file {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-color);
}

.upload-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.upload-btn {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.cancel-btn {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: var(--white);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #e55a2b, var(--accent-color));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border-color: #e55a2b;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: var(--white);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e55a2b, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    border-color: #e55a2b;
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-info {
    margin-bottom: 30px;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.profile-value {
    font-weight: 600;
    color: var(--white);
}

.profile-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.profile-btn {
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-btn {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.home-btn:hover {
    background: linear-gradient(135deg, #e55a2b, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.logout-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness for Auth Pages */
@media (max-width: 768px) {
    .auth-section,
    .profile-section {
        padding: 100px 15px 30px;
    }
    
    .auth-form-wrapper,
    .profile-wrapper {
        padding: 30px 25px;
    }
    
    .auth-title,
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .upload-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .upload-modal-header {
        padding: 20px 20px 0;
    }
    
    .upload-modal-body {
        padding: 0 20px 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-modal-actions {
        flex-direction: column;
    }
    
    .upload-btn {
        width: 100%;
        justify-content: center;
    }
}



/* Small Devices (Large Phones) - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-logo .logo-img {
        width: 70vw;
        max-width: 450px;
        min-width: 300px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .auth-form-wrapper,
    .profile-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Medium Devices (Tablets) - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Training Video Tablet Anpassungen */
    .training-video-container {
        width: 75%; /* Etwas breiter auf Tablets */
        height: 70vh; /* Angepasste Höhe für Tablets */
    }
    
    .navbar {
        left: 30px;
        right: 30px;
        width: auto;
        max-width: 900px;
    }
    
    .hero-logo .logo-img {
        width: 60vw;
        max-width: 600px;
        min-width: 400px;
        max-height: 55vh;
    }
    
    .section {
        padding: 5rem 0;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .contact-form,
    .auth-form-wrapper,
    .profile-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Large Devices (Desktops) - 1025px to 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
    .navbar {
        left: 40px;
        right: 40px;
        width: auto;
        max-width: 1100px;
    }
    
    .hero-logo .logo-img {
        width: 50vw;
        max-width: 700px;
        min-width: 500px;
        max-height: 45vh;
    }
    
    .section {
        padding: 6rem 0;
        max-width: 1100px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
    
    .contact-form,
    .auth-form-wrapper,
    .profile-wrapper {
        max-width: 550px;
    }
}

/* Extra Large Devices (Large Desktops) - 1441px and up */
@media (min-width: 1441px) {
    .navbar {
        left: 50px;
        right: 50px;
        width: auto;
        max-width: 1400px;
    }
    
    .hero-logo .logo-img {
        width: 45vw;
        max-width: 900px;
        min-width: 600px;
        max-height: 40vh;
    }
    
    .section {
        padding: 7rem 0;
        max-width: 1400px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }
    
    .contact-form,
    .auth-form-wrapper,
    .profile-wrapper {
        max-width: 600px;
    }
    
    .card {
        padding: 2.5rem;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
}

/* Ultra Wide Screens - 1920px and up */
@media (min-width: 1920px) {
    .hero-logo .logo-img {
        max-width: 1000px;
        max-height: 35vh;
    }
    
    .section {
        max-width: 1600px;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 3.5rem;
    }
}













/* ===== CONTACT PAGE ===== */

/* Contact Hero Section */
.contact-hero {
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.contact-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-gray);
}

/* Contact Main Section */
.contact-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.contact-form-section {
    order: 1;
}

.contact-info-section {
    order: 2;
}

/* Contact Form Styles */
.contact-form {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.contact-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
}

/* Contact Info Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), rgba(255, 107, 53, 0.8));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.contact-card-content h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-card-content p {
    color: var(--light-gray);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.contact-card-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.social-link i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.faq-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.4rem;
}

.faq-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Contact Page Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
    
    .contact-intro p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .contact-main {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form-section {
        order: 2;
    }
    
    .contact-info-section {
        order: 1;
    }
    
    .contact-section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-form .form-group textarea {
        min-height: 100px;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
        font-size: 1.4rem;
    }
    
    .contact-card-content {
        text-align: center;
        width: 100%;
    }
    
    .contact-card-content h3 {
        font-size: 1.2rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-card-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-card-detail {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .faq-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .faq-grid {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .faq-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .faq-card h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .faq-card p {
        text-align: center;
    }
    
    .social-link {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .social-link i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding-top: 5rem;
    }
    
    .contact-intro {
        margin-bottom: 1.5rem;
    }
    
    .contact-intro p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .contact-grid {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .contact-section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 0.875rem;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .contact-card {
        padding: 1rem;
        text-align: center;
    }
    
    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .contact-card-content {
        text-align: center;
        width: 100%;
    }
    
    .contact-card-content h3 {
        font-size: 1.1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-card-content p {
        font-size: 0.9rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-card-detail {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .faq-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    .faq-card h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .faq-card p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .social-link {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .social-link i {
        font-size: 1.8rem;
    }
}

/* ===== WORKOUT INFO CONTAINER WITH LIQUID GLASS EFFECT ===== */
.workout-info-container {
    position: absolute;
    top: 50%;
    right: -450px; /* Initially hidden off-screen */
    transform: translateY(-50%);
    width: 400px;
    height: auto;
    max-height: 80vh;
    z-index: 10;
    transition: right 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: right;
}

.workout-info-container.slide-in {
    right: 30px; /* Slide in position */
}

.liquid-glass-panel {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: liquidGlass 4s ease-in-out infinite;
}

.liquid-glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: liquidShimmer 3s linear infinite;
    border-radius: 25px;
}

.liquid-glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.08) 0%, 
        transparent 50%,
        rgba(255, 107, 53, 0.05) 100%);
    border-radius: 25px;
    pointer-events: none;
}

@keyframes liquidGlass {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    25% {
        transform: scale(1.02) rotate(0.5deg);
        filter: blur(0.5px);
    }
    50% {
        transform: scale(1.01) rotate(0deg);
        filter: blur(0px);
    }
    75% {
        transform: scale(1.015) rotate(-0.3deg);
        filter: blur(0.3px);
    }
}

@keyframes liquidShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.glass-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    color: var(--white);
    /* Content removed - empty glass container */
}

/* Mobile Responsiveness for Workout Info */
@media (max-width: 768px) {
    .workout-info-container {
        position: fixed;
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 50vh;
        transform: none;
        transition: bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 15px;
        z-index: 1000;
    }
    
    .workout-info-container.slide-in {
        bottom: 15px;
    }
    
    .liquid-glass-panel {
        border-radius: 20px;
        margin: 0;
    }
    
    .glass-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .workout-info-container {
        padding: 0 10px;
        max-height: 45vh;
    }
    
    .glass-content {
        padding: 15px;
    }
}

/* --- Admin Dashboard Styles --- */
.admin-dashboard-section, .admin-users-section, .admin-user-detail-section, .admin-sessions-section, .admin-analytics-section {
    padding: 2rem 0;
}
.admin-dashboard-container, .admin-users-container, .admin-user-detail-container, .admin-sessions-container, .admin-analytics-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
}
.admin-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 1rem 2rem;
    text-align: center;
    flex: 1;
}
.admin-links {
    margin-bottom: 2rem;
}
.admin-link {
    display: inline-block;
    margin-right: 1.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.admin-link:hover {
    text-decoration: underline;
}
.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.admin-users-table th, .admin-users-table td {
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    text-align: left;
}
.admin-users-table th {
    background: #f0f0f0;
}
.pagination {
    margin-top: 1rem;
    text-align: center;
}
.pagination a {
    margin: 0 0.5rem;
    color: #007bff;
    text-decoration: none;
}
.pagination a:hover {
    text-decoration: underline;
}
.admin-search-form {
    margin-bottom: 1rem;
}
.admin-search-form input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
}
.admin-search-form button {
    padding: 0.5rem 1rem;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.admin-search-form button:hover {
    background: #0056b3;
}
.danger {
    background: #dc3545 !important;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.danger:hover {
    background: #b52a37 !important;
}

/* Video Scrubbing Section */
.video-scrub-section {
    height: 600vh; /* Much longer scroll distance for slower scrubbing */
    position: relative;
    z-index: 10;
    background: var(--primary-black);
}

.video-scrub-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 0;
    z-index: 10;
}

.scrub-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transform: scaleX(-1);
    transition: none; /* Remove transitions for smooth scrubbing */
    flex-shrink: 0;
}

/* Initial states for both videos */
.scrub-video-hiit {
    opacity: 0; /* Start at 100% transparency (invisible) */
    z-index: 11;
}

.scrub-video-fanta {
    opacity: 0; /* Start at 100% transparency (invisible) */
    z-index: 10;
}

.scrub-video-sprite {
    opacity: 0; /* Start at 100% transparency (invisible) */
    z-index: 9;
}

/* HIIT Info Container */
.hiit-info-container {
    width: min(45vw, 600px); /* Same responsive width as video */
    height: min(60vh, 500px); /* Same responsive height as video */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 2.5rem); /* Responsive padding */
    margin-right: 2rem; /* Ensure 2rem spacing on the right to keep within screen bounds */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.hiit-info-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 107, 53, 0.1), 
        transparent, 
        rgba(255, 255, 255, 0.1),
        transparent);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: liquidGlassGlow 4s ease-in-out infinite;
}

@keyframes liquidGlassGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hiit-info-container.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== HIIT BOX RESPONSIVE OVERRIDES ===== */
/* Ensure HIIT box is available across breakpoints and doesn't overflow */
.hiit-info-container {
    display: flex !important;
    align-items: center;
    pointer-events: none; /* enable when .show */
}

.hiit-info-container.show {
    pointer-events: auto;
}

/* Tablets and small desktops */
@media (min-width: 768px) and (max-width: 1200px) {
    .hiit-info-container {
        display: flex !important;
        width: min(60vw, 560px);
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
        margin-right: 2rem; /* Ensure 2rem spacing on the right to keep within screen bounds */
    }
}

/* Mobile: show as fixed bottom glass card without overflow */
@media (max-width: 768px) {
    .hiit-info-container {
        display: flex !important;
        position: fixed;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        width: min(92vw, 560px);
        height: auto;
        max-height: 55vh;
        overflow-y: auto;
        padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 3.5vw, 1.25rem);
        z-index: 21;
    }

    .hiit-info-container.show {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.hiit-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 107, 53, 0.2);
    text-align: center;
}

.hiit-description {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    text-align: center;
}

.hiit-benefits {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(0.8rem, 2vw, 1.4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-align: left;
}

.hiit-benefits strong {
    color: var(--accent-color);
    font-weight: 400;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .video-scrub-container {
        gap: 20px;
        padding: 0 1vw;
    }
    
    .scrub-video,
    .hiit-info-container {
        width: min(42vw, 500px);
        height: min(55vh, 450px);
    }
    
    .hiit-info-container {
        margin-right: 2rem; /* Ensure 2rem spacing on the right to keep within screen bounds */
    }
}

@media (max-width: 768px) {
    .video-scrub-container {
        flex-direction: column;
        gap: 0; /* Entferne Gap zwischen Video und HIIT Container */
        padding: 0; /* Entferne Padding */
        align-items: center;
        justify-content: center;
        height: 100vh; /* Volle Bildschirmhöhe */
    }
    
    .scrub-video {
        width: 100vw; /* Volle Bildschirmbreite */
        height: 100vh; /* Volle Bildschirmhöhe */
        object-fit: cover; /* Strecke das Video über den gesamten Bildschirm */
        object-position: 75% center !important; /* Mittelwert zwischen center (50%) und right (100%) */
        border-radius: 0; /* Entferne Border Radius */
        box-shadow: none; /* Entferne Schatten */
        transform: scaleX(-1); /* Behalte horizontale Spiegelung */
    }
    
    /* Verstecke HIIT Container auf mobilen Geräten */
    .hiit-info-container {
        display: none !important;
    }
}

/* Adjustments for very large screens */
@media (min-width: 1400px) {
    .video-scrub-container {
        gap: 40px;
        padding: 0 3vw;
    }
    
    .scrub-video,
    .hiit-info-container {
        width: min(40vw, 700px);
        height: min(65vh, 550px);
    }
}

@media (min-width: 1800px) {
    .video-scrub-container {
        gap: 50px;
        padding: 0 4vw;
    }
    
    .scrub-video,
    .hiit-info-container {
        width: min(35vw, 800px);
        height: min(70vh, 600px);
    }
}

@media (min-width: 768px) {
    .scrub-video {
        transform: scaleX(-1);
        object-fit: cover;
        width: 100vw;
        height: 100vh;
    }

    /* HIIT Container für größere Displays ausblenden */
    .hiit-info-container {
        display: none !important;
    }
}

/* Zusätzliche Vergrößerung für sehr große Displays */
@media (min-width: 1920px) {
    .scrub-video {
        width: 100vw; /* Volle Breite auch auf 4K */
        height: 100vh; /* Volle Höhe auch auf 4K */
    }

    /* HIIT Container bleibt ausgeblendet */
    .hiit-info-container {
        display: none !important;
    }
}

@media (min-width: 2560px) {
    .scrub-video {
        width: 100vw; /* Volle Breite auf Ultra-Wide */
        height: 100vh; /* Volle Höhe auf Ultra-Wide */
    }

    /* HIIT Container bleibt ausgeblendet */
    .hiit-info-container {
        display: none !important;
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .video-scrub-container {
        height: 100vh;
        padding: 0;
    }
    
    .scrub-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
        transform: scaleX(-1);
    }
    
    .hiit-info-container {
        display: none !important;
    }
}

/* ===== IMAGE SLIDER STYLES ===== */
.image-slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transform: translateY(200vh); /* Start from far outside viewport, below floating text */
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 14; /* Below floating text but above other content */
    pointer-events: none;
    padding-top: 80vh; /* Position slider much further below floating text */
}

.image-slider-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.image-slider-wrapper {
    position: relative;
    width: min(85vw, 800px);
    height: min(75vh, 600px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.image-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    cursor: grab;
}

.image-slide:active {
    cursor: grabbing;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    color: var(--white);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.image-slide.active .slide-overlay {
    transform: translateY(0);
}

.slide-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: all;
}

.image-slider-container.show .nav-arrow {
    opacity: 1;
    transform: scale(1);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Hover Effects */
.image-slide:hover .slide-image {
    transform: scale(1.05);
}

.image-slider-wrapper:hover .nav-arrow {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Responsiveness for Image Slider */
@media (max-width: 768px) {
    .image-slider-wrapper {
        width: 95vw;
        height: 70vh;
        border-radius: 15px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav {
        padding: 0 15px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .image-slider-wrapper {
        width: 100vw;
        height: 60vh;
        border-radius: 0;
    }
    
    .slide-overlay {
        padding: 15px;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Animation when slider appears */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.image-slider-container.show .image-slide.active {
    animation: slideInFromRight 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Prevent text selection during dragging */
.image-slider-track {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Loading state for images */
.slide-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slide-image:not(.loaded) {
    opacity: 0;
}

/* Video Scrubbing Section */
.video-scrub-section {
    height: 600vh; /* Much longer scroll distance for slower scrubbing */
    position: relative;
    z-index: 10;
    background: var(--primary-black);
}








/* Desktop specific styles for image slider */
@media (min-width: 769px) {
    .image-slider-container {
        position: fixed;
        left: 50%;
        transform: translateX(-50%) translateY(200vh);
        width: clamp(300px, 85vw, 800px);
        height: auto;
        padding-top: 8rem; /* Add much more spacing above slider */
        align-items: flex-start;
        justify-content: center;
    }
    
    .image-slider-wrapper {
        width: 100%;
        height: min(60vh, 500px); /* Smaller height on desktop */
        border-radius: 20px;
    }
}




/* Additional responsive breakpoints for very small desktop screens */




/* ===== REMOVED: Old separate Fanta section styles ===== */

/* Fanta Info Container */
.fanta-info-container {
    width: min(45vw, 600px); /* Same responsive width as video */
    height: min(60vh, 500px); /* Same responsive height as video */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 2.5rem); /* Responsive padding */
    margin-right: 2rem; /* Ensure 2rem spacing on the right to keep within screen bounds */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fanta-info-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 107, 53, 0.1), 
        transparent, 
        rgba(255, 255, 255, 0.1),
        transparent);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: liquidGlassGlow 4s ease-in-out infinite;
}

.fanta-info-container.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== FANTA BOX RESPONSIVE OVERRIDES ===== */
/* Ensure FANTA box is available across breakpoints and doesn't overflow */
.fanta-info-container {
    display: flex !important;
    align-items: center;
    pointer-events: none; /* enable when .show */
}

.fanta-info-container.show {
    pointer-events: auto;
}

/* Tablets and small desktops */
@media (min-width: 768px) and (max-width: 1200px) {
    .fanta-info-container {
        display: flex !important;
        width: min(60vw, 560px);
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
        margin-right: 2rem; /* Ensure 2rem spacing on the right to keep within screen bounds */
    }
}

/* Mobile: show as fixed bottom glass card without overflow */
@media (max-width: 768px) {
    .fanta-info-container {
        display: flex !important;
        position: fixed;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        width: min(92vw, 560px);
        height: auto;
        max-height: 55vh;
        overflow-y: auto;
        padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 3.5vw, 1.25rem);
        z-index: 21;
    }

    .fanta-info-container.show {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.fanta-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 107, 53, 0.2);
    text-align: center;
}

.fanta-description {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    text-align: center;
}







/* Responsive adjustments for fanta video on smaller screens */
@media (max-width: 1200px) {
    .video-scrub-container-fanta {
        gap: 20px;
        padding: 0 1vw;
    }
    
    .scrub-video-fanta,
    .fanta-info-container {
        width: min(42vw, 500px);
        height: min(55vh, 450px);
    }
    
    .fanta-info-container {
        margin-right: 2rem; /* Ensure 2rem spacing on the right to keep within screen bounds */
    }
}

@media (max-width: 768px) {
    .video-scrub-container-fanta {
        flex-direction: column;
        gap: 0; /* Entferne Gap zwischen Video und FANTA Container */
        padding: 0; /* Entferne Padding */
        align-items: center;
        justify-content: center;
        height: 100vh; /* Volle Bildschirmhöhe */
    }
    
    .scrub-video-fanta {
        width: 100vw; /* Volle Bildschirmbreite */
        height: 100vh; /* Volle Bildschirmhöhe */
        object-fit: cover; /* Strecke das Video über den gesamten Bildschirm */
        object-position: 25% center !important; /* Um eine halbe Displaybreite nach links verschoben */
        border-radius: 0; /* Entferne Border Radius */
        box-shadow: none; /* Entferne Schatten */
        transform: scaleX(-1); /* Behalte horizontale Spiegelung */
    }
    
    /* Verstecke FANTA Container auf mobilen Geräten */
    .fanta-info-container {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .scrub-video-fanta {
        transform: scaleX(-1);
        object-fit: cover;
        width: 100vw;
        height: 100vh;
    }

    /* FANTA Container für größere Displays ausblenden */
    .fanta-info-container {
        display: none !important;
    }
}

/* Zusätzliche Vergrößerung für sehr große Displays */
@media (min-width: 1920px) {
    .scrub-video-fanta {
        width: 100vw; /* Volle Breite auch auf 4K */
        height: 100vh; /* Volle Höhe auch auf 4K */
    }

    /* FANTA Container bleibt ausgeblendet */
    .fanta-info-container {
        display: none !important;
    }
}

@media (min-width: 2560px) {
    .scrub-video-fanta {
        width: 100vw; /* Volle Breite auf Ultra-Wide */
        height: 100vh; /* Volle Höhe auf Ultra-Wide */
    }

    /* FANTA Container bleibt ausgeblendet */
    .fanta-info-container {
        display: none !important;
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .video-scrub-container-fanta {
        height: 100vh;
        padding: 0;
    }
    
    .scrub-video-fanta {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: 25% center !important; /* Um eine halbe Displaybreite nach links verschoben */
        border-radius: 0;
        box-shadow: none;
        transform: scaleX(-1);
    }
    
    .fanta-info-container {
        display: none !important;
    }
}

/* ===== ANIMATED LIQUID GLASS CONTAINER ===== */
.animated-liquid-container {
    position: fixed;
    left: 50%;
    bottom: -100vh; /* Start completely below the screen */
    transform: translate3d(-50%, 0, 0); /* Force 3D acceleration on all engines */
    width: min(90vw, 500px);
    height: auto;
    max-height: 70vh;
    z-index: 20;
    /* Cross-browser hardware acceleration */
    will-change: transform; /* Standard */
    -webkit-will-change: transform; /* WebKit */
    -moz-will-change: transform; /* Gecko */
    -ms-will-change: transform; /* Edge Legacy */
    
    /* Prevent flicker across all engines */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    
    /* Force GPU layers */
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    
    /* Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    
    /* Contain layout changes */
    contain: layout style paint;
}

.liquid-glass-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    
    /* Cross-browser backdrop filters */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px); /* Firefox (experimental) */
    
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 25px;
    overflow: hidden;
    
    /* Optimized shadows for all browsers */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    
    /* Cross-browser animations */
    animation: liquidGlassFloat 6s ease-in-out infinite;
    -webkit-animation: liquidGlassFloat 6s ease-in-out infinite;
    -moz-animation: liquidGlassFloat 6s ease-in-out infinite;
    
    /* Force hardware acceleration on all engines */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    
    /* Prevent flicker */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    
    /* Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Contain changes */
    contain: layout style paint;
}

.liquid-glass-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: liquidShimmerContainer 3s linear infinite;
    border-radius: 25px;
}

.liquid-glass-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.08) 0%, 
        transparent 50%,
        rgba(255, 107, 53, 0.05) 100%);
    border-radius: 25px;
    pointer-events: none;
}

/* Cross-browser keyframes for liquid glass float */
@keyframes liquidGlassFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate3d(0, 0, 0) scale(1.01) rotate(0.3deg);
    }
    50% {
        transform: translate3d(0, 0, 0) scale(1.005) rotate(0deg);
    }
    75% {
        transform: translate3d(0, 0, 0) scale(1.008) rotate(-0.2deg);
    }
}

@-webkit-keyframes liquidGlassFloat {
    0%, 100% {
        -webkit-transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    25% {
        -webkit-transform: translate3d(0, 0, 0) scale(1.01) rotate(0.3deg);
    }
    50% {
        -webkit-transform: translate3d(0, 0, 0) scale(1.005) rotate(0deg);
    }
    75% {
        -webkit-transform: translate3d(0, 0, 0) scale(1.008) rotate(-0.2deg);
    }
}

@-moz-keyframes liquidGlassFloat {
    0%, 100% {
        -moz-transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    25% {
        -moz-transform: translate3d(0, 0, 0) scale(1.01) rotate(0.3deg);
    }
    50% {
        -moz-transform: translate3d(0, 0, 0) scale(1.005) rotate(0deg);
    }
    75% {
        -moz-transform: translate3d(0, 0, 0) scale(1.008) rotate(-0.2deg);
    }
}

/* Cross-browser shimmer animation */
@keyframes liquidShimmerContainer {
    0% {
        transform: translate3d(-100%, -100%, 0);
    }
    100% {
        transform: translate3d(100%, 100%, 0);
    }
}

@-webkit-keyframes liquidShimmerContainer {
    0% {
        -webkit-transform: translate3d(-100%, -100%, 0);
    }
    100% {
        -webkit-transform: translate3d(100%, 100%, 0);
    }
}

@-moz-keyframes liquidShimmerContainer {
    0% {
        -moz-transform: translate3d(-100%, -100%, 0);
    }
    100% {
        -moz-transform: translate3d(100%, 100%, 0);
    }
}

.container-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 107, 53, 0.2);
    text-align: center;
    position: relative;
    z-index: 2;
}

.container-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.container-features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.feature-item i {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--accent-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.feature-item span {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.03em;
}

/* Mobile Responsiveness for Animated Container */
@media (max-width: 768px) {
    .animated-liquid-container {
        width: min(95vw, 450px);
        max-height: 60vh;
    }
    
    .liquid-glass-content {
        padding: 20px;
        border-radius: 20px;
    }
    
    .container-features {
        gap: 10px;
    }
    
    .feature-item {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .animated-liquid-container {
        width: 100vw;
        max-height: 50vh;
    }
    
    .liquid-glass-content {
        padding: 15px;
        border-radius: 15px;
        margin: 0 10px;
        /* Disable heavy animations on mobile for better performance */
        animation: none;
        backdrop-filter: blur(10px); /* Reduced blur on mobile */
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Simpler shadow */
    }
    
    .liquid-glass-content::before,
    .liquid-glass-content::after {
        /* Disable shimmer effects on mobile */
        display: none;
    }
    
    .container-features {
        gap: 8px;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animated-liquid-container,
    .liquid-glass-content,
    .liquid-glass-content::before,
    .liquid-glass-content::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Browser-specific optimizations */

/* Firefox-specific optimizations */
@-moz-document url-prefix() {
    .animated-liquid-container {
        /* Firefox often struggles with complex transforms */
        will-change: auto; /* Let Firefox decide */
    }
    
    .liquid-glass-content {
        /* Fallback for Firefox backdrop-filter support */
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: none;
        -moz-backdrop-filter: none;
    }
    
    .liquid-glass-content::before {
        /* Disable shimmer in Firefox for performance */
        animation: none;
        -moz-animation: none;
    }
}

/* Chrome/Edge Chromium optimizations - Enhanced for Arc, Opera */
@supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
    .animated-liquid-container {
        /* Chromium-specific optimizations for smooth video scrubbing */
        will-change: transform;
        contain: layout style paint;
        
        /* Force GPU compositing for smoother animation */
        transform: translate3d(-50%, 0, 0);
        -webkit-transform: translate3d(-50%, 0, 0);
        
        /* Prevent layout thrashing */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        
        /* Optimize for Chromium's rendering pipeline */
        perspective: 1000px;
        -webkit-perspective: 1000px;
        
        /* Ensure smooth transitions */
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
    }
    
    .liquid-glass-content {
        /* Enable all effects in Chromium with optimizations */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        /* Force separate compositing layer */
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        
        /* Prevent flicker in Chromium */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        
        /* Optimize animations */
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }
    
    /* Specific optimizations for video elements in Chromium */
    .scrub-video {
        /* Ensure smooth video rendering */
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Safari-specific optimizations */
@supports (-webkit-backdrop-filter: blur(1px)) and (not (backdrop-filter: blur(1px))) {
    .liquid-glass-content {
        /* Safari handles backdrop-filter best */
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
    }
}

/* Performance optimizations for older devices */
@media (max-width: 768px) and (max-height: 1024px) {
    .liquid-glass-content {
        backdrop-filter: blur(15px); /* Reduced blur for tablets */
        -webkit-backdrop-filter: blur(15px);
        -moz-backdrop-filter: none; /* Disable in Firefox on mobile */
        animation-duration: 8s; /* Slower animation */
        -webkit-animation-duration: 8s;
        -moz-animation-duration: 8s;
    }
    
    .liquid-glass-content::before {
        animation-duration: 4s; /* Slower shimmer */
        -webkit-animation-duration: 4s;
        -moz-animation-duration: 4s;
    }
}

/* Low-end device detection and optimization */
@media (max-width: 480px), (max-height: 800px) and (max-width: 768px) {
    .animated-liquid-container {
        /* Simplify transforms on low-end devices */
        transform: translateX(-50%) !important;
        -webkit-transform: translateX(-50%) !important;
        -moz-transform: translateX(-50%) !important;
        will-change: auto;
    }
    
    .liquid-glass-content {
        /* Fallback styling for low-end devices */
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -moz-backdrop-filter: none !important;
        animation: none !important;
        -webkit-animation: none !important;
        -moz-animation: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
    }
    
    .liquid-glass-content::before,
    .liquid-glass-content::after {
        display: none !important;
    }
}
/* ===== ABOUT & CTA SECTIONS ===== */

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background: var(--primary-black);
    position: relative;
    z-index: 10;
}

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

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-content {
    width: 100%;
}

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

.feature-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 107, 53, 0.5);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.feature-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 1px;
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* Full Width Image Section */
.full-width-image-section {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--primary-black);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.full-width-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, 
        var(--dark-black) 0%, 
        var(--light-black) 100%);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 4rem 3rem;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-subtitle strong {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2em;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

.benefit-item i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    color: var(--white);
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.cta-primary:hover {
    background: linear-gradient(135deg, #e55a2b, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    border-color: #e55a2b;
}

.cta-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 107, 53, 0.1) 0%, 
        transparent 70%);
    animation: floatCircle 15s infinite ease-in-out;
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 250px;
    height: 250px;
    bottom: -125px;
    right: -125px;
    animation-delay: 5s;
}

.decoration-circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 10s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, 20px) scale(1.1);
        opacity: 0.5;
    }
}

/* Partners Section */
.partners-section {
    padding: 6rem 2rem;
    background: var(--primary-black);
    position: relative;
    z-index: 10;
}

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

.partners-header {
    text-align: center;
    margin-bottom: 4rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner-logo-wrapper {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    min-height: 250px;
    height: 250px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 107, 53, 0.5);
}

.partner-logo {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.partner-logo-wrapper:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

/* Individual logo sizing */
.partner-logo-wellpass .partner-logo {
    max-height: 180px;
}

.partner-logo-usc .partner-logo,
.partner-logo-wellhub .partner-logo {
    max-height: 110px;
}

/* Desktop - Larger logos */
@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .partner-logo-wrapper {
        padding: 3.5rem 3rem;
        max-width: 380px;
        min-height: 280px;
        height: 280px;
    }
    
    .partner-logo-wellpass .partner-logo {
        max-height: 200px;
    }
    
    .partner-logo-usc .partner-logo,
    .partner-logo-wellhub .partner-logo {
        max-height: 130px;
    }
}

@media (min-width: 1440px) {
    .partners-grid {
        gap: 3rem;
    }
    
    .partner-logo-wrapper {
        padding: 4rem 3.5rem;
        max-width: 400px;
        min-height: 300px;
        height: 300px;
    }
    
    .partner-logo-wellpass .partner-logo {
        max-height: 220px;
    }
    
    .partner-logo-usc .partner-logo,
    .partner-logo-wellhub .partner-logo {
        max-height: 150px;
    }
}

/* Responsive Design for About and CTA Sections */
@media (max-width: 768px) {
    .about-section,
    .cta-section,
    .partners-section {
        padding: 4rem 1.5rem;
    }
    
    .about-header {
        margin-bottom: 2.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-logo-wrapper {
        padding: 2.5rem 2rem;
        max-width: 100%;
        min-height: 200px;
        height: 200px;
    }
    
    .partner-logo-wellpass .partner-logo {
        max-height: 120px;
    }
    
    .partner-logo-usc .partner-logo,
    .partner-logo-wellhub .partner-logo {
        max-height: 85px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section,
    .cta-section,
    .partners-section {
        padding: 3rem 1rem;
    }
    
    .partners-header {
        margin-bottom: 2.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-logo-wrapper {
        padding: 2rem 2rem;
        max-width: 100%;
        min-height: 220px;
        height: 220px;
    }
    
    .partner-logo-wellpass .partner-logo {
        max-height: 140px;
    }
    
    .partner-logo-usc .partner-logo,
    .partner-logo-wellhub .partner-logo {
        max-height: 100px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .cta-content {
        padding: 2rem 1.25rem;
        border-radius: 15px;
    }
}
