/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease; /* Smooth transitions for all elements */
}

/* Define CSS variables for consistent colors */
:root {
    --accent-color: #e31837; /* Vibrant red */
    --secondary-accent: #ff2d55; /* Bright red for hover */
    --dark-bg: rgba(20, 20, 20, 0.95); /* Almost black background */
    --semi-dark-bg: rgba(30, 30, 30, 0.85); /* Lighter dark background */
    --light-text: #ffffff; /* Pure white for better contrast */
    --muted-text: rgba(255, 255, 255, 0.7); /* Slightly muted text */
    --glass-bg: rgba(255, 255, 255, 0.08); /* Lighter glass effect */
    --glass-blur: 12px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --glass-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.36),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    --modern-font: 'Inter', system-ui, -apple-system, sans-serif;
    --fade-delay: 0.3s;
    --card-radius: 24px;
    --button-radius: 12px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* Background wrapper for iOS compatibility */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('fadolous.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Body Styles */
body {
    font-family: var(--modern-font);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow: auto;
    position: relative;
    background-color: transparent; /* Remove background from body */
}

/* Logo Styles */
.logo {
    /* Larger logo with minimal tinted border */
    max-width: 840px; /* much larger max width */
    width: 100%;
    max-height: 400px; /* taller max height */
    height: auto;
    display: block;
    margin: 0 auto; /* Centers the logo horizontally */
    background-color: rgba(255, 255, 255, 0.16); /* subtle white tint */
    padding: 8px; /* minimal padding for a tighter look */
    border-radius: 16px; /* smaller radius for tighter appearance */
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
    object-fit: contain;
}

/* If `.logo` wraps an <img>, make the image itself larger inside the tint */
.logo img {
    display: block;
    width: 98%; /* image fills almost all of the tinted area */
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Responsive Design for Logo */
@media (max-width: 600px) {
    .logo {
        max-width: 720px; /* larger on tablets */
        max-height: 340px;
        padding: 6px; /* even tighter padding on mobile */
    }
}

@media (max-width: 400px) {
    .logo {
        max-width: 580px; /* still relatively large on mobile */
        max-height: 280px;
        padding: 5px;
        border-radius: 12px;
    }
}
/* Header Styles */
header {
    background-color: transparent;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 10;
    animation: fadeIn 1s ease-in-out;
}

.header-content {
    background: transparent;
    border-radius: var(--card-radius);
    padding: var(--spacing-xl);
    margin: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    animation: fadeInDown 1.2s cubic-bezier(.77,0,.18,1);
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
    position: relative;
    overflow: hidden;
}

.header-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent
    );
}

/* Rest of your CSS remains unchanged... */

.title {
    font-size: 2em;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    color: var(--light-text);
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 10px;
    flex-grow: 1;
    overflow-y: auto; /* Allow scrolling within categories if needed */
    animation: fadeIn 1s ease-in-out;
}

.category {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: var(--spacing-xl) var(--spacing-lg);
    width: 100%;
    text-align: center;
    cursor: pointer;
    font-family: var(--modern-font);
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.category:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255,255,255,0.12);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.3),
        inset 0 0 0 1px rgba(255,255,255,0.15);
}

.category:hover::before {
    transform: translateX(100%);
}

.category h2 {
    font-size: 1.3em;
    color: #fff;
    transition: color 0.3s ease;
    font-family: var(--modern-font);
    font-weight: 700;
}

.category:hover h2 {
    color: var(--accent-color); /* Use accent color for text */
}

.content {
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    overflow-y: auto; /* Allow scrolling within content if needed */
    animation: fadeIn 1s ease-in-out;
}

.page-content {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--glass-shadow);
    font-family: var(--modern-font);
    font-weight: 400;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin: 0 auto;
    max-width: 800px; /* Limit width for better readability */
}

.page-content p,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.page-content h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.page-content p {
    font-size: 1.2em; /* Larger font size */
    color: var(--light-text);
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.default-message {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--semi-dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1em;
    color: var(--light-text);
    animation: fadeIn 1s ease-in-out;
}

.default-message h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.toggle-button {
    display: none;
    background-color: var(--semi-dark-bg);
    border: none;
    border-radius: 30px; /* More rounded edges */
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #fff; /* White text */
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

.toggle-button:hover {
    background-color: var(--dark-bg);
    transform: scale(1.05);
}

.home-training-description {
    padding: 20px;
    background-color: var(--semi-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.home-training-title {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
    background-color: var(--semi-dark-bg);
    border-radius: 15px;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
}

.home-training-text {
    font-size: 1em;
    color: var(--light-text);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    animation: fadeIn 1s ease-in-out;
}

.why-train-section {
    padding: 20px;
    background-color: var(--semi-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.why-train-title {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
    background-color: var(--semi-dark-bg);
    border-radius: 15px;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    animation: fadeIn 1s ease-in-out;
}

.tab {
    background-color: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--button-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    font-family: var(--modern-font);
    font-weight: 500;
    color: var(--light-text);
    flex: 1 1 calc(33.333% - var(--spacing-lg));
    margin-bottom: var(--spacing-sm);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background-image: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
}

.tab:hover {
    background-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(255,255,255,0.15);
}

.tab.active {
    background-color: var(--accent-color);
    color: var(--light-text);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 
        0 8px 24px rgba(227, 24, 55, 0.3),
        inset 0 0 0 1px rgba(255,255,255,0.15);
}

.tab-description {
    display: none;
    width: 100%;
    text-align: center;
    background-color: var(--semi-dark-bg); /* Slightly more tinted */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 20px; /* Slightly smaller padding */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #fff; /* White text */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-description h2 {
    font-size: 1.3em; /* Slightly larger font size */
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.tab-description p {
    font-size: 1em; /* Smaller font size */
    color: var(--light-text);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.start-journey {
    padding: 20px;
    background-color: var(--semi-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.start-journey-title {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
    background-color: var(--semi-dark-bg);
    border-radius: 15px;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    animation: fadeIn 1s ease-in-out;
}

.start-journey-text {
    font-size: 1em;
    color: var(--light-text);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    animation: fadeIn 1s ease-in-out;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--semi-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
    border-radius: 50%; /* Rounded edges */
}

.social-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-color)); /* Add glow effect with accent color */
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
    border-radius: 50%; /* Rounded edges */
}

.instagram-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
    border-radius: 50%; /* Rounded edges */
}

/* Contact Form Styles */
.contact-form {
    padding: 20px;
    background-color: var(--semi-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.contact-form h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1em;
    color: var(--light-text);
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--button-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-family: var(--modern-font);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-text);
}

.form-group textarea {
    resize: none;
}

.submit-button {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    border: none;
    border-radius: var(--button-radius);
    padding: var(--spacing-md) var(--spacing-xl);
    cursor: pointer;
    font-family: var(--modern-font);
    font-weight: 600;
    color: var(--light-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(227, 24, 55, 0.3);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 24, 55, 0.4);
}

.submit-button:hover::before {
    transform: translateX(100%);
}

#formMessage {
    margin-top: 15px;
    font-size: 1em;
    color: var(--light-text);
}

/* Animation classes and keyframes */
.animate__fadeIn {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

.animate__fadeOut {
    animation: fadeOutDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

/* Staggered entrance animations for children */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

/* Hover animations */
.hover-float {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-float:hover {
    transform: translateY(-8px);
}

.hover-glow {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.5);
}

/* Keyframe definitions */
@keyframes fadeOutDown {
    from { 
        opacity: 1; 
        transform: translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: translateY(40px); 
    }
}

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

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

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5); }
    50% { box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.8); }
    100% { box-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5); }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .header-content {
        padding: 15px;
        margin-bottom: 15px;
    }

    .title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1em;
    }

    .categories {
        padding: 15px;
        gap: 15px;
    }

    .category {
        padding: 10px 15px;
    }

    .category h2 {
        font-size: 1em;
    }

    .content {
        padding: 15px;
        gap: 15px;
    }

    .page-content {
        padding: 15px;
    }

    .page-content h2 {
        font-size: 1.3em;
    }

    .page-content p {
        font-size: 1em;
    }

    .default-message {
        padding: 15px;
    }

    .default-message h2 {
        font-size: 1.3em;
    }

    .home-training-description {
        padding: 15px;
    }

    .home-training-title {
        font-size: 1.3em;
    }

    .home-training-text {
        font-size: 0.9em;
    }

    .why-train-section {
        padding: 15px;
    }

    .why-train-title {
        font-size: 1.3em;
    }

    .tabs {
        gap: 10px;
    }

    .tab {
        padding: 10px 15px;
        flex: 1 1 calc(50% - 10px);
        margin-bottom: 10px;
    }

    .start-journey {
        padding: 15px;
    }

    .start-journey-title {
        font-size: 1.3em;
    }

    .start-journey-text {
        font-size: 0.9em;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .tab {
        flex: 1 1 100%;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }
}