:root {
    --primary-color: #00AEEF; /* Swimming sky blue */
    --secondary-color: #0077B6; /* Swimming ocean blue */
    --accent-color: #FFFFFF; /* White */
    --bg-color: #E0F7FA; /* Light cyan background */
    --highlight-color: #03045E; /* Navy deep highlights */
    --transition: all 0.3s ease;
    --sports-nav-height: 59px; /* Default value, will be overridden by JS */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
    line-height: 1.8;
    background-color: var(--bg-color);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    color: var(--accent-color);
    text-align: center;
    padding: 3rem 0 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 0;
    opacity: 0.9;
}

nav {
    background-color: var(--secondary-color);
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

nav ul li a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 32px;
    transition: var(--transition);
    position: relative;
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

nav ul li a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mobile-menu-toggle {
    display: none;
    text-align: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--highlight-color);
    border-radius: 2px;
    transform: translateX(-50%);
}

.h2-left:after {
    left: 2rem !important;
}

.cta-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

footer {
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    color: var(--accent-color);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: var(--accent-color);
}

/* Back to APUFit Button */
.back-to-apufit {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.apufit-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, var(--highlight-color), var(--primary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.apufit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.apufit-button i {
    margin-right: 8px;
}

/* Media queries */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
    }
    
    nav {
        position: relative;
    }
    
    nav ul {
        display: block;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        opacity: 0;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    nav ul.active {
        display: block;
        max-height: 300px;
        opacity: 1;
        padding: 0.8rem 0;
    }
    
    nav ul li {
        margin: 0.5rem 2rem;
        text-align: left;
        width: calc(100% - 4rem);
    }
    
    nav ul li a {
        display: block;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Make sure the back to APUFit button remains visible */
    .back-to-apufit {
        bottom: 20px;
        right: 20px;
    }
    
    .apufit-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}