/* General Styles */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f3f4f6;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar img:hover {
    transform: scale(1.1);
}

.navbar-links {
    display: flex;
    gap: 2em;
}

.navbar a, .dropbtn {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after, .dropbtn::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #112794;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.navbar a:hover, .dropbtn:hover {
    color: #112794;
}

.navbar a:hover::after, .dropbtn:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    padding: 0;
    transition: color 0.3s, transform 0.3s;
}

/* Mobile Navbar */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: transform 0.3s;
}

.mobile-navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-navbar-links a {
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease;
}

.mobile-navbar-links a:hover {
    background: #f0f0f0;
}

.mobile-navbar-links.open {
    display: flex;
    max-height: 500px;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
        position: absolute;
        top: 1em;
        right: 1em;
    }
}

/* Workout Section Styles */
.workout-section {
    padding: 4em 2em;
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2em auto;
    max-width: 100%;
    border-radius: 8px;
}

.workout-header {
    margin-bottom: 2em;
}

.workout-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 0.5em;
    color: #112794;
    animation: fadeIn 1.5s ease;
}

.workout-header p {
    font-size: 1.5em;
    color: #666;
}

.workout-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.workout-content h2 {
    color: #112794;
    margin-bottom: 1em;
    position: relative;
    animation: fadeIn 1.5s ease;
}

.workout-content h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: #112794;
    left: 0;
    bottom: -10px;
    border-radius: 4px;
}

.workout-content p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #444;
    animation: fadeIn 1.5s ease;
}

.workout-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    margin-top: 2em;
    animation: fadeIn 1.5s ease;
}

.workout-gallery img {
    flex: 1 1 300px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.workout-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #2D2D2D;
    color: #fff;
    text-align: center;
    padding: 2em;
}

footer a {
    color: #ffcb51;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  
    .workout-header h1 {
        font-size: 2em;
    }

    .workout-header p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .workout-header h1 {
        font-size: 1.5em;
    }

    .workout-header p {
        font-size: 0.9em;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content, .close {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Scroll Styles */
html {
    scroll-behavior: smooth;
}

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