/* Global Styles */
:root {
    --primary-color: #33BFCC;
    --secondary-color: #008B9B;
    --text-color: #1D3557;
    --light-bg: #F8FDFF;
    --card-bg: #FFFFFF;
    --section-bg: #FFFFFF;
    --box-shadow: 0 8px 32px rgba(0, 187, 212, 0.1);
    --hero-gradient: linear-gradient(180deg, rgba(51, 191, 204, 0.25) 0%, rgba(231, 253, 255, 0.35) 74.04%, #FFF 85%);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow-x: clip) {

    html,
    body {
        overflow-x: clip;
    }
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text-color);
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

p {
    line-height: 24px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.navbar-logo {
    display: block;
    width: auto;
    height: 60px;
    margin-right: 10px;
    opacity: 1;
    transition: none;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2333BFCC' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 0;
    overflow: hidden;
    background: var(--hero-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

.hero-section h1 {
    color: var(--text-color);
    font-size: 60px;
    font-weight: 800;
    line-height: 42px;
    margin-bottom: 1.5rem;
}

.hero-mockup {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.mystery-text {
    color: #33BFCC;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

/* Places */
.features-section {
    padding: 0 0 150px;
    overflow: hidden;
    background: var(--section-bg);
    transition: background-color 0.3s ease;
}

.places-header {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.places-header p {
    color: #242424;
    font-size: 16px;
    line-height: 1.35;
    max-width: 700px;
    margin: 0 auto;
}

.places-header strong {
    display: block;
    font-weight: 800;
}

.places-showcase {
    position: relative;
    min-height: 520px;
    max-width: 920px;
    margin: 0 auto;
}

.places-box {
    position: absolute;
    left: 50%;
    top: 54%;
    z-index: 2;
    width: min(330px, 42vw);
    transform: translate(-50%, -50%);
}

.places-box img {
    display: block;
    width: 100%;
    height: auto;
}

.place-card {
    position: absolute;
    z-index: 3;
    max-width: 230px;
    min-height: 78px;
    padding: 1rem 1.15rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid rgba(29, 53, 87, 0.18);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(29, 53, 87, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    animation: placeCardFloat 6s ease-in-out infinite;

}

.place-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 187, 212, 0.14);
}

.place-card i {
    color: var(--primary-color);
    display: inline-block;
    font-size: 0.95rem;
    margin-right: 0.25rem;
}

.place-card h3 {
    color: #242424;
    display: inline;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.place-card p {
    color: #242424;
    font-size: 0.88rem;
    line-height: 1.25;
    margin: 0.4rem 0 0;
}

.place-card-restaurants {
    left: 0;
    top: 145px;
}

.place-card-sushi {
    right: 0;
    top: 170px;
}

.place-card-cafes {
    left: calc(50% - 110px);
    top: 0;
}

.place-card-sweets {
    left: 15px;
    bottom: 115px;
}

.place-card-markets {
    right: 30px;
    bottom: 80px;
}

.place-card-caterers {
    left: calc(50% - 110px);
    bottom: -60px;
}

/* How It Works */
.how-it-works {
    padding: 0 0 100px;
    background: var(--section-bg);
    transition: background-color 0.3s ease;
}

.how-section-left {
    display: flex;
    justify-content: end;
    background: var(--primary-color);
}

.how-section-text-bold {
    font-size: 23px;
    font-style: normal;
    font-weight: 500;
    line-height: 29px;
}

.how-section-text {
    font-size: 22px;
    font-style: normal;
    font-weight: 200;
    line-height: 29px;
}

.lifestyle-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lifestyle-image video {
    width: auto;
    min-width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.homepage-image-section {
    width: 100%;
    overflow: hidden;
}

.homepage-image-section img {
    display: block;
    width: 100%;
    height: auto;
}

/* App Section */
.food-grid {
    margin-top: 40px;
    border-radius: 20px;
    background: linear-gradient(287deg, #33BFCC 0%, #66D4DE 100%);
    color: white;
}

.app-badges {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 2rem;
}

.store-badge {
    display: inline-block;
    padding: 0;
    text-decoration: none;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.store-badge img {
    display: block !important;
    width: auto !important;
    max-width: 100%;
    height: 50px !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.store-badge img:not([src]),
.store-badge img[src=""],
.store-badge img[src*="error"] {
    display: none;
}

.store-badge:has(img:not([src])),
.store-badge:has(img[src=""]),
.store-badge:has(img[src*="error"]) {
    display: none;
}

/* Statistics */
.title-stats {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

/* Supporting Sections */
.bg-save-dark {
    background: linear-gradient(244deg, #66D4DE 32.51%, #53CCD7 47.22%, #33BFCC 66.51%);
}

/* Footer */
.footer {
    transition: background-color 0.3s ease;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    text-align: center;
}

.footer-links a {
    margin-right: 0 !important;
    padding: 0.35rem 0;
}

/* Phone Slider */
@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

/* place card */
@keyframes placeCardFloat {

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

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


.phone-wrap {
    animation: floatPhone 6s ease-in-out infinite;
}

.scr {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.scr.on {
    z-index: 2;
    opacity: 1;
}

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

.ndot {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    min-width: 8px;
    height: 8px;
    min-height: 8px;
    padding: 0;
    line-height: 0;
    appearance: none;
    background: #ddd;
    border: none;
    border-radius: 50%;
    transition: all 0.4s;
}

.ndot.on {
    background: #33BFCC;
    transform: scale(1.35);
}

/* Dark Mode */
[data-theme="dark"] {
    --text-color: #E0E0E0;
    --light-bg: #121212;
    --card-bg: #1E1E1E;
    --section-bg: #1A1A1A;
    --hero-gradient: linear-gradient(135deg, #121212 0%, #1A1A1A 100%);
    background-color: #121212;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.9) !important;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: var(--text-color) !important;
}

[data-theme="dark"] .features-section {
    background: var(--section-bg);
}

[data-theme="dark"] .place-card {
    background: #1A1A1A;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .places-header h2,
[data-theme="dark"] .places-header p,
[data-theme="dark"] .place-card h3,
[data-theme="dark"] .place-card p,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] p {
    color: var(--text-color);
}

[data-theme="dark"] .footer {
    background-color: #0A0A0A !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .navbar-nav {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .homepage-image-section {
        height: clamp(360px, 46vw, 560px);
    }

    .homepage-image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

@media (min-width: 992px) {
    #how-it-works>.d-flex>.col-lg-5 {
        display: flex;
    }

}

@media (max-width: 991.98px) {

    .features-section {
        padding: 90px 0;
    }

    .places-header {
        margin-bottom: 2.25rem;
    }

    .places-showcase {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 230px));
        justify-content: center;
        gap: 1rem clamp(1rem, 4vw, 2rem);
        max-width: 540px;
        min-height: auto;
    }

    .places-box {
        position: relative;
        left: auto;
        top: auto;
        grid-column: 1 / -1;
        justify-self: center;
        order: 1;
        width: min(340px, 78vw);
        margin-bottom: 0.75rem;
        transform: none;
    }

    .place-card {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        order: 2;
        width: 100%;
        max-width: none;
        min-height: 0;
    }

    .place-card:hover {
        transform: translateY(-4px);
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .d-flex.align-items-center {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .navbar-toggler {
        margin-left: 0.5rem;
    }

    .navbar-collapse {
        position: absolute;
        top: 89%;
        right: 0;
        left: 0;
        display: none;
        padding: 1rem;
        margin-top: 0.5rem;
        background: var(--card-bg);
        border-radius: 0px 0px 10px 10px;
        box-shadow: var(--box-shadow);
    }

    .navbar-collapse.show {
        display: block;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .hero-mockup {
        margin-top: 3rem;
    }

    .navbar-collapse .d-flex.align-items-center {
        justify-content: center;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .navbar-collapse {
        background: var(--card-bg);
    }

    [data-theme="dark"] .navbar-collapse .d-flex.align-items-center {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    #how-it-works>.d-flex>.col-lg-7,
    #how-it-works>.d-flex>.col-lg-5 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .how-section-left {
        justify-content: center;
        padding: 2rem 1.25rem !important;
    }

    .how-section-left>.col-8 {
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
        margin-right: 0 !important;
    }

    .lifestyle-image {
        height: auto;
    }

    .lifestyle-image video {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
    }

    .app-section p.fs-4 {
        font-size: 1.2rem !important;
        line-height: 1.55;
    }

    .app-section .food-grid {
        margin-top: 0;
        overflow: hidden;
        border-radius: 16px;
    }

    .app-section .food-grid>.col-6 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .app-section .food-grid>.col-6:first-child {
        justify-content: center !important;
        text-align: center;
    }

    .app-section .food-grid>.col-6:first-child>.col-11 {
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {

    [data-aos="fade-left"],
    [data-aos="fade-right"] {
        transform: translate3d(0, 24px, 0) !important;
    }

    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate {
        transform: none !important;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .phone-wrap>div {
        width: min(260px, calc(100vw - 64px)) !important;
    }

    .how-it-works {
        padding: 0;
    }

    .app-badges {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .store-badge {
        flex: 0 0 auto;
        width: auto;
    }

    .store-badge img {
        max-width: none;
        height: 45px !important;
    }
}

@media (max-width: 767.98px) {
    .app-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }



    .app-section h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.1;
    }

    .app-section .app-badges {
        justify-content: center;
        margin-top: 1.25rem;
    }

    .app-section .food-grid>.col-6:last-child {
        justify-content: center !important;
        padding: 0 1rem 1.5rem;
    }

    .app-section .food-grid>.col-6:last-child img {
        display: block;
        width: min(78vw, 300px);
        height: auto;
    }

    .title-stats {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .features-section {
        padding: 80px 0;
    }

    .homepage-image-section {
        height: clamp(300px, 95vw, 430px);
    }

    .places-header {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .places-header h2 {
        font-size: 2rem;
    }

    .places-header h2,
    .places-header h3 {
        font-size: clamp(1.75rem, 8vw, 2rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .places-header p {
        max-width: 100%;
        font-size: 0.95rem;
        overflow-wrap: break-word;
    }

    .places-showcase {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .places-box {
        width: min(300px, 86vw);
    }

    .place-card {
        width: min(100%, 330px);
        max-width: calc(100vw - 2rem);
        padding: 0.95rem 1rem;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        gap: 0.25rem;
    }

    .footer-links a {
        display: block;
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 480px) {
    .app-badges {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .store-badge img {
        width: auto !important;
        height: 40px !important;
    }
}