/*=============== HOME PAGE STYLES ===============*/

/*==================== HERO SECTION ====================*/
.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2rem;
    max-width: 1024px;
}

.hero__content {
    text-align: center;
}

.hero__greeting {
    font-size: var(--biggest-font-size);
    color: var(--title-color);
    margin-bottom: 1rem;
    font-weight: var(--font-semi-bold);
}

.hero__intro {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.6;
}

.hero__profile {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*==================== ABOUT SECTION ====================*/
.about__container {
    max-width: 1024px;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__paragraph {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.8;
    text-align: justify;
}

.about__link {
    color: var(--first-color);
    text-decoration: none;
}

.about__link:hover {
    cursor: pointer;
}

/*==================== CTA SECTION ====================*/
.cta__container {
    text-align: center;
    padding-block: 2rem;
}

.cta__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    margin-bottom: 1rem;
    font-weight: var(--font-semi-bold);
}

.cta__description {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 3rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.cta__button--primary {
    background-color: var(--first-color);
    color: var(--body-color);
}

.cta__button--primary:hover {
    background-color: hsl(207, 65%, 55%);
}

.cta__button--secondary {
    background-color: var(--container-color);
    color: var(--title-color);
}

.cta__button--secondary:hover {
    background-color: hsl(207, 4%, 90%);
}

.cta__button--tertiary {
    background-color: transparent;
    color: var(--first-color);
    border: 2px solid var(--first-color);
}

.cta__button--tertiary:hover {
    background-color: var(--first-color);
    color: var(--body-color);
}

.cta__button i {
    font-size: 1.25rem;
}

/*==================== MINI APPS SECTION ====================*/
.mini-apps__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    row-gap: 1.5rem;
    max-width: 1024px;
}

.mini-apps__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.mini-apps__card:hover {
    transform: translateY(-0.35rem);
    box-shadow: 0 6px 20px hsla(207, 24%, 35%, 0.12);
}

.mini-apps__badge {
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mini-apps__card:hover .mini-apps__badge {
    transform: scale(1.1);
}

.mini-apps__badge--icon {
    background: transparent;
}

.mini-apps__badge--icon i {
    font-size: 2.5rem;
    color: var(--first-color);
}

.mini-apps__content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-apps__title {
    font-size: var(--h3-font-size);
    font-family: var(--title-font);
    color: var(--title-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.mini-apps__description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 250px;
    min-height: 4rem;
}

.mini-apps__link {
    display: inline-block;
    color: var(--title-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    background-color: transparent;
    border: 1px solid var(--text-color-light);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.mini-apps__link:hover {
    color: var(--body-color);
    background-color: var(--first-color);
    border-color: var(--first-color);
}

/*=============== RESPONSIVE DESIGN ===============*/

/* For small devices */
@media screen and (max-width: 340px) {
    .hero__image-wrapper {
        width: 150px;
        height: 150px;
    }

    .hero__greeting {
        font-size: var(--h1-font-size);
    }

    .mini-apps__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .mini-apps__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile specific - force single column */
@media screen and (max-width: 767px) {
    .mini-apps__container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .mini-apps__title {
        margin-bottom: 0.75rem;
    }

    /* Disable hover effects on mobile for better touch experience */
    .mini-apps__card {
        -webkit-tap-highlight-color: transparent;
    }

    .mini-apps__card:hover {
        transform: none;
    }
}

/* For tablets */
@media screen and (min-width: 767px) {
    .hero__container {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 2rem;
    }

    .hero__content {
        text-align: left;
    }

    .mini-apps__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For large devices */
@media screen and (min-width: 1023px) {
    .hero__container {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 3rem;
        padding-block: 4rem;
    }

    .hero__content {
        text-align: left;
    }

    .hero__image-wrapper {
        width: 250px;
        height: 250px;
    }

    .about__paragraph {
        text-align: left;
    }
}

/* Container auto-margin for larger screens */
@media screen and (min-width: 1048px) {
    .hero__container,
    .mini-apps__container,
    .about__container {
        margin-inline: auto;
    }
}

/* For extra large devices */
@media screen and (min-width: 1200px) {
    .hero__container {
        padding-block: 5rem;
        padding-top: 2rem;
    }
}

/* Dark theme adjustments */
body.dark-theme .cta__button--secondary {
    background-color: var(--container-color);
    color: var(--title-color);
}

body.dark-theme .cta__button--secondary:hover {
    background-color: hsl(207, 4%, 15%);
}

body.dark-theme .mini-apps__link {
    border-color: var(--text-color);
}

body.dark-theme .mini-apps__link:hover {
    color: var(--title-color);
}

/*==================== RIGHT NOW SECTION ====================*/
.right-now__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    row-gap: 1.5rem;
    max-width: 1024px;
}

.right-now__card {
    background-color: var(--container-color);
    padding: 2rem 1rem;
    padding-top: 1rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.right-now__card:hover {
    transform: translateY(-0.35rem);
    box-shadow: 0 6px 20px hsla(207, 24%, 35%, 0.12);
}

.right-now__badge {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.right-now__card:hover .right-now__badge {
    transform: scale(1.1);
}

.right-now__badge i {
    font-size: 2.5rem;
    color: var(--first-color);
}

.right-now__content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-now__label {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.right-now__value {
    font-size: var(--h3-font-size);
    font-family: var(--title-font);
    color: var(--title-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-now__meta {
    font-size: var(--small-font-size);
    color: var(--text-color);
    line-height: 1.5;
}

/* For small devices */
@media screen and (max-width: 340px) {
    .right-now__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* For medium devices */
@media screen and (min-width: 576px) {
    .right-now__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile specific - force single column */
@media screen and (max-width: 767px) {
    .right-now__container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .right-now__value {
        min-height: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .right-now__card:hover {
        transform: none;
    }
}

/* For tablets and larger */
@media screen and (min-width: 768px) {
    .right-now__container {
        grid-template-columns: repeat(3, 1fr);
    }
}
