/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600;700&display=swap');

/* =============== VARIABLES CSS =============== */
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /* HSL (Hue, Saturation, Lightness) */
    --first-color: #00e676;
    /* Verde PowerFit */
    --first-color-alt: #00c853;
    --second-color: #ffab00;
    /* Acento Dorado/Naranja */
    --title-color: #ffffff;
    --text-color: #c4c4c4;
    --text-color-light: #8f8f8f;
    --body-color: #0a0a0a;
    /* Fondo Principal Oscuro */
    --container-color: #1a1a1a;
    /* Fondo de tarjetas */
    --body-font: 'Poppins', sans-serif;
    --title-font: 'Bebas Neue', cursive;

    /*========== Font Size ==========*/
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;

    /*========== Font Weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== Margins ==========*/
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== Z Index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 6rem;
        --h1-font-size: 3.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 0.875rem;
        --smaller-font-size: 0.813rem;
    }
}

/* =============== BASE =============== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    font-family: var(--title-font);
    letter-spacing: 1.5px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============== REUSABLE CSS CLASSES =============== */
.section {
    padding: 5rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-1-5);
    text-align: center;
    background: linear-gradient(to right, var(--title-color), var(--text-color-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    text-transform: uppercase;
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: var(--mb-0-5);
    letter-spacing: 2px;
}

.container {
    max-width: 968px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

/* =============== HEADER & NAV =============== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background: transparent;
    transition: .4s;
    /* Para efecto scroll */
}

/* Scroll Header Class */
.scroll-header {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.nav__toggle,
.nav__close {
    color: var(--title-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    /* Desktop default */
}

/* Mobile Menu */
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        background-color: var(--body-color);
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: .3s;
        z-index: 1000;
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
    }

    .nav__button {
        display: none;
        /* Hide CTA in mobile menu if desired or restyle */
    }
}

.show-menu {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
}

.nav__link {
    color: var(--title-color);
    text-transform: uppercase;
    font-weight: var(--font-medium);
    transition: .3s;
    font-size: var(--h2-font-size);
    font-family: var(--title-font);
}

.nav__link:hover {
    color: var(--first-color);
}

.active-link {
    color: var(--first-color);
}

/* =============== HOME =============== */
.home {
    padding-top: 7rem;
    position: relative;
    overflow: hidden;
}

/* Background Aura Effect */
.home::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.home__container {
    align-items: center;
}

.home__title {
    font-size: var(--big-font-size);
    line-height: 1.1;
    margin-bottom: var(--mb-1);
}

.home__description {
    margin-bottom: var(--mb-2);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.home__btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-3);
}

.home__stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--mb-2);
}

.home__stat-number {
    font-family: var(--title-font);
    font-size: 2rem;
    color: var(--first-color);
}

.home__stat-title {
    font-size: var(--smaller-font-size);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home__img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.home__circle {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--first-color), transparent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    filter: blur(40px);
}

.home__img {
    position: relative;
    width: 300px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    /* Placeholder styles until image is present */
    min-height: 400px;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 20px;
    display: flex;
    /* Remove when real image used */
    align-items: center;
    justify-content: center;
    color: white;
}

/* =============== BUTTONS =============== */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #000;
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
    cursor: pointer;
    border: none;
    font-family: var(--body-font);
    text-transform: uppercase;
    font-size: var(--small-font-size);
    letter-spacing: 1px;
}

.button:hover {
    background-color: var(--first-color-alt);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}

.button--flex {
    display: flex;
    align-items: center;
    column-gap: .25rem;
}

.button--ghost {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--title-color);
}

.button--ghost:hover {
    border-color: var(--first-color);
    color: var(--first-color);
    background-color: transparent;
}

/* =============== MISSION =============== */
.mission__container {
    row-gap: 3rem;
}

.mission__img {
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mission__list {
    display: grid;
    row-gap: 1.5rem;
    margin-top: var(--mb-2);
}

.mission__item {
    display: flex;
    column-gap: .5rem;
    align-items: center;
}

.mission__icon {
    font-size: 1.5rem;
    color: var(--first-color);
}

/* =============== APP SHOWCASE =============== */
.app {
    background: linear-gradient(180deg, var(--body-color) 0%, var(--container-color) 100%);
}

.app__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: var(--mb-3);
}

.app__card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: .4s;
    border: 1px solid transparent;
}

.app__card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    /* Lighter on hover */
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateY(-5px);
}

.app__card.active {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 0, 0, 0));
    border-color: var(--first-color);
}

.app__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.app__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
    font-family: var(--body-font);
    font-weight: bold;
}

.app__cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.app__screen-img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.15);
}



/* =============== SCREENSHOTS CAROUSEL =============== */
.screenshots {
    overflow: hidden;
    /* Hide scrollbar outside container if needed */
}

.screenshots__container {
    max-width: 100% !important;
    /* Full width for carousel effect */
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.screenshots__wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    /* Space for scrollbar or shadow */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.screenshots__wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.screenshots__item {
    flex: 0 0 auto;
    width: 280px;
    /* Width of each screenshot card */
    scroll-snap-align: center;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: .3s;
}

.screenshots__item:hover {
    transform: translateY(-5px);
    border-color: var(--first-color);
}

.screenshots__img {
    display: block;
    width: 100%;
    height: auto;
}

/* =============== NEWSLETTER =============== */
.newsletter__container {
    background-color: var(--container-color);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
}

.newsletter__title {
    margin-bottom: var(--mb-1);
}

.newsletter__description {
    margin-bottom: var(--mb-2);
}

.newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter__input {
    padding: 1rem;
    border-radius: .5rem;
    border: none;
    outline: none;
    background-color: var(--body-color);
    color: var(--title-color);
}

/* =============== FOOTER =============== */
.footer {
    background-color: #050505;
    padding-bottom: 2rem;
}

.footer__container {
    row-gap: 3rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
    font-family: var(--body-font);
}

.footer__logo {
    display: inline-block;
    margin-bottom: var(--mb-1);
}

.footer__logo-img {
    height: 35px;
    width: auto;
}

.footer__links li {
    margin-bottom: .75rem;
}

.footer__link {
    color: var(--text-color);
    transition: .3s;
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__social {
    display: flex;
    column-gap: 1.25rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--title-color);
    transition: .3s;
}

.footer__social-link:hover {
    color: var(--first-color);
    transform: translateY(-3px);
}

.footer__copy {
    text-align: center;
    margin-top: 5rem;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}


/* =============== SCROLL UP =============== */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--first-color);
    border-radius: .5rem;
    padding: .5rem;
    display: flex;
    opacity: 0.8;
    z-index: var(--z-tooltip);
    transition: .4s;
}

.scrollup:hover {
    background-color: var(--first-color-alt);
    opacity: 1;
}

.scrollup__icon {
    font-size: 1.5rem;
    color: #000;
}

.show-scroll {
    bottom: 3rem;
}

/* =============== BREAKPOINTS =============== */
/* For small devices */
@media screen and (max-width: 320px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .newsletter__form {
        flex-direction: row;
    }

    .newsletter__input {
        width: 100%;
    }
}

@media screen and (min-width: 767px) {
    body {
        margin: 0;
    }

    .section {
        padding: 6.5rem 0 2rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 3rem;
    }

    .nav__menu {
        position: relative;
        top: 0;
        right: 0;
        height: initial;
        width: initial;
        background-color: transparent;
        display: flex;
    }

    .nav__button {
        display: block;
    }

    .home__container {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 4rem;
    }

    .home__img-wrapper {
        justify-content: flex-end;
    }

    .mission__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        column-gap: 3rem;
    }

    .footer__container {
        grid-template-columns: repeat(4, 1fr);
    }
}