/* ─── HOME PAGE STYLES ─────────────────────────── */

:root {
    --hero-bg: #f8fafc;
    --card-bg: #ffffff;
}

body {
    padding-top: 80px; /* Offset for fixed navbar */
}

.home-main {
    min-height: 100vh;
    overflow-x: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-header.text-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-family: var(--f-brand);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-900);
}

.section-subtitle {
    font-family: var(--f-sans);
    font-size: 1.1rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
    max-width: 600px;
}

.explore-btn {
    font-family: var(--f-sans);
    font-weight: 600;
    color: var(--primary-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.explore-btn:hover {
    color: var(--primary-800);
    transform: translateX(4px);
}

/* ─── HERO SECTION ─────────────────────────────── */
.hero-section {
    position: relative;
    padding: 2rem 0 0 0;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    flex: 0 0 45%;
    max-width: 45%;
    /* padding-bottom: 2; */
}



.hero-title {
    font-family: var(--f-brand);
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-900);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.text-yellow { color: #f59e0b; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-600);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    font-family: var(--f-brand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-900);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-family: var(--f-sans);
    font-size: 1.25rem;
    color: var(--neutral-700);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-family: var(--f-sans);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-900);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

.btn-yellow {
    background: var(--accent-500);
    color: var(--primary-900);
}

.btn-yellow:hover {
    background: var(--accent-600);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-900);
    color: var(--primary-900);
}

.btn-outline:hover {
    background: rgba(0, 45, 98, 0.05);
    transform: translateY(-2px);
}



.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* margin-bottom: 2 rem; */
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    font-family: var(--f-sans);
    font-weight: 600;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--sh-xs);
}

.app-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-900);
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

.app-btn i {
    font-size: 1.25rem;
}

.app-btn.dark {
    background: var(--primary-900);
    border-color: var(--primary-900);
    color: white;
}

.app-btn.dark:hover {
    background: var(--primary-800);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-btn.badge {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    gap: 0.75rem;
    border-radius: 12px;
}
.app-btn.badge:hover {
    background: #333;
    color: #fff;
}
.app-btn.badge .badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.app-btn.badge .badge-text span {
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.8;
}
.app-btn.badge .badge-text strong {
    font-size: 1.1rem;
    line-height: 1.1;
    font-weight: 600;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15%; /* Fading edge */
    height: 100%;
    background: linear-gradient(to right, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.marquee-container {
    background: rgba(58, 176, 180, 0.18); /* Light tint of Genesis Blue */
    overflow: hidden;
    padding: 0.75rem 0;
    border-bottom: none;
    display: flex;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
}

.marquee-features {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    animation: marquee-scroll 15s linear infinite;
    font-family: var(--f-brand);
    font-weight: 800;
    color: var(--primary-900);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.marquee-features .dot {
    font-size: 1.25rem;
    color: var(--primary-900);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.text-blue { color: var(--primary-600); }

/* ─── CATEGORIES & FEATURED (Reusing Shop CSS classes) ─── */
.home-categories-section,
.home-featured-section,
.home-latest-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ─── ABOUT SECTION ────────────────────────────── */
.home-about-section {
    padding: 3rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--neutral-100);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.about-card:hover {
    background: white;
    border-color: var(--primary-200);
    box-shadow: var(--sh-md);
    transform: translateY(-5px);
}

.about-icon {
    width: 72px;
    height: 72px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.about-card:hover .about-icon {
    background: var(--primary-600);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-family: var(--f-brand);
    font-size: 1.25rem;
    color: var(--primary-900);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    font-family: var(--f-sans);
}

/* ─── APP BANNER ───────────────────────────────── */
.home-app-banner {
    padding: 0 clamp(1.5rem, 5vw, 5rem);
    margin: 2rem 0 6rem;
}

.app-banner-inner {
    background: var(--accent-500);
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-900);
    position: relative;
    overflow: hidden;
}

.app-banner-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    border-radius: 50%;
}

.app-banner-text {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.app-banner-text h2 {
    font-family: var(--f-brand);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.app-banner-text p {
    font-size: 1.1rem;
    font-family: var(--f-sans);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.store-badge img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-badge:hover img {
    transform: scale(1.05);
}

.app-banner-img {
    color: rgba(0, 45, 98, 0.2);
    transform: rotate(-15deg);
    position: relative;
    z-index: 1;
}

/* ─── TEAM SECTION ─────────────────────────────── */
.home-team-section {
    padding: 3rem 0 4rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--sh-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-100);
}

.team-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 100%;
    height: 300px;
    background: var(--neutral-200);
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    font-family: var(--f-brand);
    font-size: 1.5rem;
    color: var(--primary-900);
    margin-bottom: 0.5rem;
}

.team-role {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(244, 180, 0, 0.15);
    color: var(--accent-600);
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--f-sans);
    border-radius: 99px;
    margin-bottom: 1rem;
}

.team-info p {
    color: var(--neutral-600);
    line-height: 1.5;
    font-size: 0.95rem;
    font-family: var(--f-sans);
}

/* ─── BOTTOM CTA WIDGET ────────────────────────── */
.bottom-cta-widget {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.bottom-cta-widget.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.bottom-cta-track {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bottom-cta-track::-webkit-scrollbar {
    display: none;
}

.bottom-cta-btn {
    flex: 0 0 calc(100% - 0rem); /* Changed to 100% to make it truly swipeable one by one */
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 99px;
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-shop {
    background: var(--accent-500);
    color: var(--primary-900);
}

.cta-shop:hover {
    background: var(--accent-600);
}

.cta-sell {
    background: var(--accent-500);
    color: var(--primary-900);
}

.cta-sell:hover {
    background: var(--accent-600);
}



@media (min-width: 1024px) {
    .bottom-cta-widget {
        display: none; /* Hide on desktop */
    }
}

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-ctas { justify-content: center; flex-wrap: wrap; }
    .hero-pill { margin: 0 auto 1.5rem; }
    .hero-apps { display: flex; flex-direction: column; align-items: center; }
    .app-buttons { justify-content: center; }
    .hero-image-wrapper { justify-content: center; }
    .hero-main-img { width: 100%; margin: 0; }
    

}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; color: white; }
    .hero-highlight { font-size: 1.5rem; color: white; }
    .hero-highlight .text-blue { color: #93c5fd; }
    .hero-subtitle { color: rgba(255,255,255,0.9); }
    .text-yellow { color: var(--accent-500); }
    .hero-pill { background: rgba(255,255,255,0.2); color: white; }
    .hero-pill i { color: white !important; }
    
    .hero-section {
        min-height: 60vh;
        padding: 4rem 1.5rem 3rem 1.5rem;
        background-image: linear-gradient(rgba(0, 45, 98, 0.85), rgba(0, 45, 98, 0.85)), url('../assets/images/genesis-bg-desktop.png');
        background-size: cover;
        background-position: center;
    }
    .hero-subtitle { display: none; }
    .hero-image-wrapper { display: none; }
    .hero-text { flex: 0 0 100%; max-width: 100%; text-align: center; }
    
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 2.5rem auto;
    }
    .hero-ctas .btn { width: 100%; }
    .hero-ctas .btn-outline { border-color: white; color: white; }
    
    .hero-apps .app-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }
    .app-btn.badge { padding: 0.5rem 0.5rem; flex: 1; justify-content: center; }
    .app-btn.badge i { font-size: 1.5rem; }
    .app-btn.badge .badge-text span { font-size: 0.55rem; }
    .app-btn.badge .badge-text strong { font-size: 0.9rem; }
    

    
    /* Category 2 rows on mobile */
    .category-scroller {
        display: grid;
        grid-template-rows: auto auto;
        grid-auto-flow: column;
        gap: 1.5rem;
    }

    /* Horizontal Scrollers for About & Team */
    .about-grid, .team-grid { 
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-left: -1.5rem; /* Break out of container */
        margin-right: -1.5rem;
        padding-left: 12.5vw; /* perfectly centers a 75vw card */
        padding-right: 12.5vw; 
        padding-bottom: 2rem;
        gap: 1.5rem;
    }
    
    .about-grid::-webkit-scrollbar,
    .team-grid::-webkit-scrollbar {
        display: none;
    }
    
    .about-card, .team-card {
        flex: 0 0 75vw; /* 75% of screen width gives more padding on the sides */
        scroll-snap-align: center;
    }
    
    .app-banner-inner { flex-direction: column; text-align: center; padding: 2.5rem; gap: 2rem; }
    .app-banner-img { transform: rotate(0); }
    
    .section-title { font-size: 1.75rem; }
}
