/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: #1E2126;
    --secondary-text: #5b7083;
    --pink: #F5426A;
    --purple: #CF7CD5;
    --yellow: #FFCF67;
    --border: #ECECF3;
    --lightgrey: #F5F5FA;
    --white: #ffffff;
    --accent: linear-gradient(90deg, #F5426A, #CF7CD5);
}

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

/* --- Utilities --- */
.gradient-text {
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

/* --- Navigation --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(30, 33, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1.5px;
    color: #fff;
}

.nav-logo .gradient-text {
    background: linear-gradient(90deg, #FED338, #D47100);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--pink);
}

.nav-app-btn img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-app-btn:hover img {
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 5% 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    letter-spacing: -3px;
    font-weight: 900;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--text);
    color: white;
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.btn-secondary {
    background: var(--lightgrey);
    color: var(--text);
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-mockup-wrapper {
    width: 100%;
    max-width: 380px;
    /* Reduced from 500px for a more compact look */
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
    animation: float 6s ease-in-out infinite;
}

.hero-svg-mockup {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- Feature, Gallery, Testimonial Shared --- */
.section-tag {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--pink);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 60px;
}

.text-center .section-title,
.text-center .section-tag {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: block;
}

/* --- Features --- */
.features {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-image img {
    width: 100%;
    border-radius: 32px;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* --- Stats Section --- */
.stats-section {
    padding: 80px 5% 60px;
}

.stats-section .section-title {
    margin-bottom: 50px;
}

.stats-container {
    background: #000;
    color: white;
    padding: 50px 3%;
    border-radius: 48px;
    margin: 0 auto;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Luxury Glow Effect */
.stats-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 66, 106, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: drift 15s linear infinite;
}

@keyframes drift {
    0% {
        transform: translateX(-10%);
    }

    50% {
        transform: translateX(10%);
    }

    100% {
        transform: translateX(-10%);
    }
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    height: 50px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.stat-item:hover .stat-icon {
    transform: rotate(-8deg) translateY(-5px);
    background: var(--accent);
    color: white;
    box-shadow: 0 14px 28px rgba(245, 66, 106, 0.35);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2px;
}

.stat-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -1.5px;
    color: #fff;
}

.stat-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

@media (max-width: 1024px) {
    .stat-item {
        padding: 0 14px;
        gap: 14px;
    }

    .stat-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 40px;
        padding: 50px 30px;
        text-align: center;
        border-radius: 32px;
    }

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

    .stat-item:not(:last-child)::after {
        display: none;
    }
}

/* --- Testimonials --- */
.testimonials {
    padding: 120px 0;
    overflow: hidden;
}

.testimonial-header {
    margin-bottom: 80px;
    padding: 0 5%;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-text);
    margin-top: -40px;
    margin-bottom: 30px;
}

.testimonial-cta {
    margin-bottom: 30px;
}

/* Testimonial scroll wrapper — overflow container */
.testimonial-scroll-wrapper {
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.testimonial-scroll-wrapper:active {
    cursor: grabbing;
}

/* Hide scrollbar */
.testimonial-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-scroll-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-track {
    display: flex;
    width: max-content;
    gap: 24px;
    padding: 20px 40px;
    user-select: none;
}


.testimonial-group {
    display: flex;
    gap: 24px;
}

.testimonial-card {
    width: 380px;
    padding: 40px;
    padding-bottom: 70px;
    /* Space for the name in bottom right */
    background: #F5F5FA;
    border-radius: 32px;
    border: none;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    /* Anchors the name */
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.9;
}

.user-name {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-weight: 800;
    font-size: 0.8rem;
    color: #7C3AED;
    /* Premium Royal Purple */
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(124, 58, 237, 0.08);
    /* Faint purple background */
    padding: 6px 14px;
    border-radius: 12px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.user-img-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 20px;
    background: var(--accent);
    padding: 3px;
}

.user-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- Gallery --- */
.gallery-section {
    padding: 60px 0;
    /* Reduced padding for space efficiency */
    background: var(--white);
    overflow: hidden;
}

.scroll-container {
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Template scroll outer — overflow container */
.scroll-outer {
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.scroll-outer:active {
    cursor: grabbing;
}

.scroll-outer::-webkit-scrollbar {
    display: none;
}

.scroll-outer {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.track {
    display: flex;
    width: max-content;
    gap: 20px;
    padding: 20px 40px;
    align-items: center;
    user-select: none;
}


.menu-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 420px;
    /* Increased width */
}

.menu-column:nth-child(even) {
    margin-top: 60px;
    /* Zigzag effect */
}

.menu-card {
    background: #F5F5FA;
    /* Subtle light grey/blue background */
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    width: 320px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.menu-card:nth-child(even) {
    background: #FFF5F7;
    /* Subtle pink background for variety */
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Centers the image without cropping */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Mockup shadow */
}

@keyframes scrollX {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- Footer --- */
footer {
    padding: 30px 5% 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
    background: #1e2126;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /* Reduced bottom margin */
}

.footer-logo {
    margin-bottom: 8px;
}

.copyright-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--pink);
}

.appstore-btn img {
    height: 64px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.appstore-btn:hover img {
    transform: translateY(-2px);
}

/* --- Footer Copyright CSS cleanup if needed --- */
/* (Removed footer-copyright as it's now integrated) */

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: -2px;
    }

    .stats {
        flex-direction: column;
        gap: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .testimonial-card {
        width: 300px;
    }

    .menu-column {
        width: 280px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
    }

}