/* CSS Variables */
:root {
    --primary-color: #2C3E50;
    --primary-color-rgba: rgba(46, 204, 113, 0.1);
    --secondary-color: #E74C3C;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --max-width: 1200px;
    --header-height: 80px;
    --secondary-nav-height: 40px;
    --search-width: 300px;
    --nav-font-size: 0.85rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
    position: relative;
    z-index: 1001;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo object {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo object:hover {
    transform: scale(1.05);
}

/* Add a heartbeat effect to the logo */
@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0));
    }
    5% {
        filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.3));
    }
    10% {
        filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0));
    }
    15% {
        filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.3));
    }
    25% {
        filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0));
    }
    100% {
        filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0));
    }
}

.logo img {
    animation: logoPulse 6s ease-in-out infinite;
}

.logo object {
    animation: logoPulse 6s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: var(--nav-font-size);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.merch-link:hover {
    color: var(--secondary-color);
}

/* Search Container */
.search-container {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: var(--secondary-color);
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
}

.search-box.active {
    width: var(--search-width);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-submit {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../img/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: calc(var(--header-height) + var(--secondary-nav-height));
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Footer */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color-rgba);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Secondary Navigation */
.secondary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-color-rgba);
    height: var(--secondary-nav-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
}

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

.secondary-nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.secondary-nav-menu a:hover {
    color: var(--secondary-color);
}

.youtube-link i {
    color: #FF0000;
    margin-right: 0.5rem;
}

.newsletter-link {
    font-weight: 600 !important;
}

/* Cardio Link Heart Icon */
.cardio-link i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 0.9em;
}

/* Connect Link Box */
.connect-link {
    border: 1px solid var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease !important;
}

.connect-link:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

/* Update secondary nav connect link to match */
.secondary-nav-menu .connect-link {
    border: none;
    padding: 0.5rem 0.8rem;
}

.secondary-nav-menu .connect-link:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
}

/* Update secondary nav challenges link to match */
.secondary-nav-menu .challenges-link {
    border: 1px solid var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease !important;
}

.secondary-nav-menu .challenges-link:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

/* Update secondary nav newsletter link to match */
.secondary-nav-menu .newsletter-link {
    border: 1px solid var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease !important;
}

.secondary-nav-menu .newsletter-link:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        height: auto;
        padding: 1rem 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .search-box {
        position: absolute;
        top: 100%;
        right: 0;
        width: 0;
        background: var(--white);
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: width 0.3s ease;
        display: flex;
        align-items: center;
    }

    .search-box.active {
        width: var(--search-width);
    }

    .secondary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color-rgba);
        height: var(--secondary-nav-height);
        display: flex;
        align-items: center;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 999;
    }

    .secondary-nav-menu {
        display: flex;
        list-style: none;
        gap: 2rem;
        margin: 0;
        padding: 0;
        justify-content: center;
    }

    .secondary-nav-menu a {
        color: var(--white);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 400;
        transition: color 0.3s ease;
        padding: 0.5rem 0.8rem;
    }

    .secondary-nav-menu a:hover {
        color: var(--secondary-color);
    }

    .hero-section {
        padding-top: calc(var(--header-height) + var(--secondary-nav-height));
    }
}

/* Add a new breakpoint for mobile devices */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .secondary-nav {
        height: auto;
        padding: 0.5rem 0;
    }

    .secondary-nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .secondary-nav-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .secondary-nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }

    .secondary-nav-menu .newsletter-link {
        background-color: transparent;
        border: 1px solid var(--white);
    }

    .secondary-nav-menu .newsletter-link:hover {
        background-color: var(--white);
        color: var(--primary-color) !important;
    }
}

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

.hero-section .container {
    animation: fadeIn 1s ease-out;
} 