/* ------------------------------------------------------------------- */
/* --- 1. Variables & Reset --- */
/* ------------------------------------------------------------------- */
:root {
    --primary-teal: #00CEC9;
    /* Main Accent */
    --teal-dark: #042f2e;
    /* Footer Banner BG */
    --bg-light-blue: #F0FAFA;
    /* Feature section background base */
    --dark-bg: #111111;
    --text-dark: #1E1E1E;
    --text-light: #FFFFFF;
    --font-serif: 'Playfair Display', serif;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /*outline: 1px dotted red;*/
}

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


body {
    font-family: var(--font-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* NEW: Global utility to lock screen scrolling when menu is open */
.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* ------------------------------------------------------------------- */
/* --- 2. Buttons & Utilities --- */
/* ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-width: 160px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-black {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-white {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-white-outline {
    border: 1px solid #000;
    background: transparent;
    color: #000;
}

.app-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin: auto;
    max-width: 85%;
}
.app-buttons.sm-margin {
    margin-top: 50px;
}
.app-buttons a {
    display: flex;
    align-items: center;      /* vertical centering */
    justify-content: center;  /* horizontal centering */
    gap: 10px;

    text-align: center;
}

.left-align {
    justify-content: left;
}

.app-buttons .btn-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.app-buttons .btn-txt small {
    font-size: 10px;
    text-transform: uppercase;
}

.app-buttons .btn-txt strong {
    font-size: 14px;
}


/* ------------------------------------------------------------------- */
/* --- 3. Header & Navigation --- */
/* ------------------------------------------------------------------- */
.header {
    position: absolute;
    /* absolute */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

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

.logo {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    border: 2px solid var(--text-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.desktop-nav {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(8px);
}

.nav-pill {
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ------------------------------------------------------------------- */
/* --- 4. Hero Section --- */
/* ------------------------------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 10px 0;
}

.hero-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Search Pill */
.search-pill {
    background: var(--text-light);
    border-radius: 50px;
    padding: 6px 10px 6px 20px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 250px;
}

.search-pill input {
    border: none;
    outline: none;
    flex: 1;
    padding: 12px 15px;
    font-family: var(--font-main);
    color: #333;
}

.search-btn-icon {
    background: #000;
    color: #fff;
    border: none;
    height: 35px;
    width: 100px;
    border-radius: 50px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* ------------------------------------------------------------------- */
/* --- 5. Together Section --- */
/* ------------------------------------------------------------------- */
.together {
    padding: 80px 0;
    background: #fff;
}

/* NEW: Added padding-bottom to separate content from mockup */
.together .container {
    padding-bottom: 50px;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-sub {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

/* NEW: Text wrapping rule */
.section-desc {
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* NEW: Full-width phones mockup */
.phones-mockup {
    display: flex;
    justify-content: center;
    margin-top: 0px;
    width: 100%;/*100vw*/
    max-width: 100%;
    left: 0; /**/
    transform: none;/* translate(-50%) */
    /* overflow: hidden; /**/
    padding-bottom: 0;
}

.phones-mockup img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    margin-bottom: -80px;
}

/* ------------------------------------------------------------------- */
/* --- 6. Features Section (Grid) --- */
/* ------------------------------------------------------------------- */
.features {
    /* Gradient Background Applied Here */
    background: linear-gradient(180deg, var(--bg-light-blue) 0%, #E6F3F3 100%);
    padding: 80px 0;
}

.features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.features-header-text {
    font-size: 0.95rem;
    color: #444;
    margin-top: 10px;
    /* Space below the title */
    max-width: 450px;

    margin-top: 0.5rem;
    /* 5px */
    width: 40%;
    text-align: right;

}

.features-text-wrapper {
    display: flex;
    justify-content: space-between;
    /* Pushes H2 and P apart */
    align-items: flex-start;
    /* Aligns them to the top */
    margin-bottom: 40px;
    /* Add spacing before the grid */
    flex-wrap: wrap;
    /* Allows stacking on mobile */
}

.features-title {
    width: 55%;
    font-size: 3rem;
    /* Adjust as needed */
    margin-bottom: 0;
    /*
    font-size: 2.5rem;
    line-height: 1.2;
    max-width: 450px; */
}

.features-subtext {
    max-width: 100%;
    /* 350px */
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    /*right*/
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    height: 600px;
}

/* Big Left Feature */
.large-feature {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.large-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Wrapper (2x2 Grid) */
.small-features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.feature-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Desktop Overlay (Hover state) */
.feature-overlay-desktop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-overlay-desktop {
    opacity: 1;
}

.feature-overlay-mobile {
    display: none;
    /* Hidden on desktop */
}

/* ------------------------------------------------------------------- */
/* --- 7. Social Section (Snapshot Cards + Marquee) --- */
/* ------------------------------------------------------------------- */
.socials {
    background: var(--primary-teal);
    padding: 50px 0 80px;
    position: relative;
    overflow-x: hidden;
}

/* Marquee Styling (Crossed Tapes) */
.marquee-wrapper {
    position: relative;
    height: 80px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.tape {
    position: absolute;
    width: 100%;
    /* OVERFLOW */
    overflow: hidden;
    padding: 10px 0;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.track {
    display: flex;
    animation: scroll 20s linear infinite;
}

.track span {
    margin: 0 30px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.white-tape {
    background: #F0F0F0;
    color: #000;
    transform: rotate(2deg);
    z-index: 1;
}

.black-tape {
    background: #000;
    color: #fff;
    transform: rotate(-2deg);
    z-index: 2;
}

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

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

/* Cards Container (Desktop Grid) */
.social-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 10px;
}

.social-card {
    background: var(--dark-bg);
    border-radius: 15px;
    padding: 15px;
    color: var(--text-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Follow Pill */
.social-follow-wrapper {
    position: relative;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    margin-top: 40px;
}

.follow-wrapper-image {
    /* Ensure the image scales down, but never exceeds 100% of its parent */
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove extra space below the image */
    margin: 0 auto;
    /* Center the image itself */
}

/* Default Visibility (Desktop/Large Screen) */
.follow-text-desktop {
    display: inline;
    /* Show on desktop */
}

.follow-text-mobile {
    display: none;
    /* Hide on desktop */
}

.follow-box {
    /* background: var(--text-light); */
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    /* CRUCIAL: Keeps text and icons on one line */

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: transparent;
    color: var(--text-dark);
}

/* Updated to target <a> tags for clickable icons */
.follow-icons a {
    color: inherit;
    text-decoration: none;
    margin-left: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ------------------------------------------------------------------- */
/* --- 8. Newsletter (UPDATED FOR GRID LAYOUT) --- */
/* ------------------------------------------------------------------- */
.newsletter {
    padding: 80px 0;
    /* text-align: center; -- REMOVED for grid layout */
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F8F8 100%);
}

.newsletter-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
    max-width: 50%;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: #666;
    margin-bottom: 0;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    width: 100%;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 5px;
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.input-group input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px;
    font-family: var(--font-main);
}

.newsletter-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 50px;
    cursor: pointer;
}

/* ------------------------------------------------------------------- */
/* --- 9. Footer --- */
/* ------------------------------------------------------------------- */
.cta-banner {
    background: var(--primary-teal);
    color: #fff;
    padding: 60px 0;
    width: 90%;
    height: auto;
    margin: auto;
    margin-bottom: 50px;
    border-radius: 10px;
}

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

.cta-text {
    flex: 1;
    padding-right: 50px;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-image img {
    max-width: 350px;
    margin-bottom: -65px;
    border-radius: 20px;
}

.main-footer {
    background: #000;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    margin-bottom: 15px;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #fff;
    background-color: var(--primary-teal);
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* ------------------------------------------------------------------- */
/* --- 10. Back to Top --- */
/* ------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 40px;
    background: var(--primary-teal);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------------------------- */
/* --- 11. Responsive (Mobile View) --- */
/* ------------------------------------------------------------------- */
@media (max-width: 768px) {

    .container {
        padding: 0 15px;
    }

    /* Header */
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        color: var(--text-light);
    }

    /* NEW: Mobile Open State */
    .desktop-nav.menu-open {
        display: flex;
        flex-direction: column;

        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;

        background: #000;
        padding-top: 100px;
        z-index: 1000;
        align-items: center;
        gap: 30px;
    }

    .desktop-nav.menu-open .nav-pill {
        width: 80%;
        text-align: center;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
    }


    /* Hero */
    .hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding-top: 60px;
        max-width: 550px;
    }
    h1.hero-title {
        font-size: 32px;
    }

    .app-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 70%;
    }
    .app-buttons {
        justify-content: center;
        max-width: 400px;
        margin-top: 25px;
    }

    .search-pill {
        max-width: 90%;
        padding: 5px;
        margin-top: 100px;
    }

    .search-pill input {
        padding: 10px;
        width: 200px;
    }

    /* Back To Top */
    .back-to-top {
        right: 15px;
        bottom: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Together */
    .phones-mockup {
        flex-direction: column;
        height: auto;
    }

    .phones-mockup img {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        margin-bottom: -80px;
    }


    /* Features (Stacking + Overlays) */
    .features-header {
        flex-direction: column;
        align-items: flex-end;
        /*flex-start*/
        gap: 15px;
        margin-bottom: 40px;
        /*20px*/
        justify-content: space-between;
        display: flex;
    }

    .features-text-wrapper {
        flex-direction: column;
        align-items: center;
        /* Stack H2 and P */
    }

    .features-title,
    .features-header-text {
        width: 100%;
        /* Full width on mobile */
        text-align: left;
        /* Text alignment resets to center on mobile */
    }
    .features-title {
        font-size: 32px;
    }

    .features-grid,
    .small-features-wrapper {
        display: block;
        height: auto;
    }

    .feature-card,
    .large-feature {
        margin-bottom: 20px;
        height: 250px;
        border-radius: 10px;
    }

    /* Desktop Overlay hidden */
    .feature-overlay-desktop {
        display: none;
    }

    /* Text Overlay logic for Mobile (Green Bar look) */
    .feature-overlay-mobile {
        display: block;
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        /* background: linear-gradient(90deg, var(--primary-teal), #00A8A4); */
        background: linear-gradient(90deg, rgba(0, 168, 164, 0.6), rgba(0, 168, 164, 0.6));
        /* Adjust opacity here */
        color: var(--text-light);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .feature-overlay-mobile h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .feature-overlay-mobile p {
        font-size: 0.8rem;
        margin: 0;
    }

    /* Social (Carousel/Snap Scroll) */
    .social-cards-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Better scrolling on iOS */

        padding: 0 0 20px 0;
        gap: 15px;
        margin: 0;
    }

    .social-cards-container::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for a cleaner look */
    }

    /* Tweak image size inside card */
    .social-card img {
        width: 300px;
        max-width: none;
    }

    .social-card {
        min-width: 75%;
        /* Reduced size for better visual flow */
        scroll-snap-align: start;
        padding: 15px;
        flex-shrink: 0;
        margin-left: 15px;
    }

    .social-card:last-child {
        margin-right: 15px;
    }

    .social-follow-wrapper {
        padding: 0 15px;
    }

    /* Responsive Text Swap */
    .follow-text-desktop {
        display: none;
        /* Hide long text on mobile */
    }

    .follow-text-mobile {
        display: inline;
        /* Show short text on mobile */
    }

    .follow-box {
        flex-direction: row;
        /* Ensure horizontal layout */
        padding: 10px 30px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Newsletter Mobile Stacking (New Changes) */
    .newsletter-content-wrapper {
        flex-direction: column;
        /* Stack text and form vertically */
        text-align: left;
        /* Center all text content */
        gap: 30px;
    }

    .newsletter-text {
        max-width: 90%;
        /* Allow text to use full width */
        margin: 0 auto;
    }

    .newsletter-text p {
        margin-bottom: 20px;
    }

    .newsletter-form {
        max-width: 90%;
        /* Keep form width constrained but centered */
        margin: 0 auto;
    }

    /* End Newsletter Mobile Stacking */


    .newsletter-form button {
        padding: 12px 20px;
    }

    /* Footer */
    .cta-flex {
        flex-direction: column;
        text-align: left;
    }

    .cta-text {
        padding: 0;
        margin-bottom: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-brand p {
        max-width: 300px;
        margin: 20px auto;
        margin-left: 0;
    }
}




/* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-content {
        background-color: white;
        padding: 40px 30px;
        border-radius: 15px;
        width: 100%;
        max-width: 500px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: modalFadeIn 0.3s ease-out;
        box-sizing: border-box;
        margin: 0 auto;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        font-weight: bold;
        color: #666;
        cursor: pointer;
        transition: color 0.2s;
        line-height: 1;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close:hover {
        color: #000;
    }

    .modal-body h2 {
        color: var(--text-dark);
        margin-bottom: 15px;
        font-size: 2rem;
        font-weight: 600;
    }

    .modal-body p {
        color: #666;
        font-size: 1.1rem;
        line-height: 1.5;
        margin: 0;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .modal-content {
            max-width: 90%;
            padding: 30px 20px;
            margin: 0 10px;
        }

        .modal-body h2 {
            font-size: 1.7rem;
        }

        .modal-body p {
            font-size: 1rem;
        }

        .close {
            top: 10px;
            right: 15px;
            font-size: 24px;
        }
    }

    @media (max-width: 480px) {
        .modal-content {
            max-width: 95%;
            padding: 25px 15px;
        }

        .modal-body h2 {
            font-size: 1.5rem;
        }

        .modal-body p {
            font-size: 0.95rem;
        }
    }