.header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* background: linear-gradient(120deg, rgba(41, 46, 50, .85) 20%, rgba(46, 51, 56, .2) 100%),
        url('https://movofit.co/landing-page/images/services-0.png'); */
    background: url('https://movofit.co/landing-page/images/services-0.png');
    background-size: 50%;
    background-position: right;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Navigation */
.nav {
    position: relative;
    z-index: 300;
    padding: 20px 0;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    color: #5e0da3;
    font-size: 24px;
    letter-spacing: 0.24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    position: relative;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0.18px;
    text-decoration: none;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(94, 13, 163, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(94, 13, 163, 0.3);
}

.sign-in-btn {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #340061;
    color: #fff;
}

.sign-in-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #340061;
    color: #340061;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-sidebar.active {
    visibility: visible;
    opacity: 1;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, #6b00c870 0%, #350062 100%);
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    width: 100px;
    height: auto;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.sidebar-link .link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.sidebar-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-cta {
    padding: 20px;
    margin-top: auto;
}

.sidebar-signup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sidebar-signup-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 0;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 100;
    max-width: 945px;
}

.hero-title {
    font-family: 'Lato', sans-serif;
    font-size: 70px;
    letter-spacing: 1.8px;
    line-height: 120px;
    margin-bottom: 24px;
}

.title-line-1 {
    display: block;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px #ffffff;
    letter-spacing: 1.62px;
}

.title-line-2 {
    display: block;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.62px;
}

.hero-description {
    max-width: 615px;
    opacity: 0.8;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0.24px;
    line-height: 34px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.24px;
    line-height: 26px;
    padding: 18px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #340061;
    color: #ffffff;
    border: 1px solid #340061;
    box-shadow: 0px 4px 18px rgba(242, 253, 132, 0.09);
}

.btn-primary:hover {
    background-color: #5e0da3;
    border-color: #5e0da3;
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(242, 253, 132, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(255, 255, 255, 0.1);
}

/* Stats Section */
.stats {
    position: relative;
    z-index: 200;
    margin-top: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid transparent;
    backdrop-filter: blur(10px);
    padding: 44px 40px;
    /* background-image: linear-gradient(144deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%); */
    background-clip: padding-box;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.stat-number {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 42px;
    line-height: 52px;
}

.stat-number::after {
    content: '+';
}

.stat-item:last-child .stat-number::after {
    content: '%';
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    line-height: 26px;
}

.stat-subtitle {
    opacity: 0.6;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 16px;
    line-height: 26px;
}

/* Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: -200px;
    right: 0;
    width: 100%;
    /* height: calc(100vh + 200px); */
    height: calc(100% + 200px);
    background: linear-gradient(250deg, rgba(94, 14, 164, 0) 0%, rgba(53, 0, 98, 1) 100%);
    z-index: 1;
}

.purple-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    filter: blur(300px);
    background: linear-gradient(250deg, rgba(53, 0, 98, 1) 0%, rgba(240, 120, 0, 0) 100%);
    opacity: 1;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 72px;
        line-height: 96px;
    }

    .hero-description {
        font-size: 20px;
        line-height: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        background: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-sidebar {
        display: block;
    }

    .sidebar-content {
        width: 280px;
    }

    .hero {
        padding: 40px 0 0;
    }

    .hero-title {
        font-size: 48px;
        line-height: 64px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .gradient-overlay {
        width: 100%;
        height: calc(100% + 200px);
    }

    #sign-in-link {
        margin-left: auto;
    }

    .sign-in-btn {
        margin-right: 10px;
    }

    .stats {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 48px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }

    .stats {
        margin-top: 60px;
        padding: 32px 20px;
    }
}

/* Initial hidden state for animated elements */
.nav,
.hero-text,
.hero-buttons,
.stats {
    opacity: 0;
    transform: translateY(30px);
}

/* Navigation should animate faster and first */
.nav {
    transform: translateY(-20px);
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-fast {
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.counting {
    animation: countUp 0.5s ease;
}