@font-face {
    font-family: 'UniChat';
    src: url('../fonts/TTF/ClashDisplay-Variable.ttf') format('truetype');
}

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

html, body {
    font-family: 'UniChat', sans-serif;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0;
    }
}

/* NEW: Keyframes for mobile menu appear animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-blur {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

.left-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    z-index: -1;
    transform: scaleX(-1);
    animation: flicker 4s linear infinite;
}

.right-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    z-index: -1;
    animation: flicker 3s linear infinite;
}

.section {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.5rem;
}

.nav-left:hover {
    cursor: pointer;
}

.nav-left img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.3rem;
    font-family: 'UniChat';
    text-decoration: none;
    color: black;
    text-align: center;
}

.nav-actions button {
    margin-left: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.nav-actions .signup {
    background-color: #0057ff;
    color: white;
}

.nav-actions .signup:hover {
    background-color: #003ecc;
    transform: scale(1.05);
}

.nav-actions .learn {
    background-color: black;
    color: white;
}

.nav-actions .learn:hover {
    background-color: #333;
    transform: scale(1.05);
}

.actions button,
.actions a,
.final-actions a,
.final-actions button {
    text-decoration: none;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    font-family: 'UniChat', sans-serif;
    font-weight: 600;

    -webkit-transition: transform 0.5s;
    -moz-transition: transform 0.5s;
    -o-transition: transform 0.5s;
    transition: transform 0.5s;
}

.signup {
    background-color: #0057ff;
    color: white;
}

.signup:hover {
    background-color: #003ecc;
    transform: scale(1.05);
}

.learn {
    background-color: black;
    color: white;
}

.learn:hover {
    background-color: #333;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    z-index: 100; /* Ensure hamburger is clickable */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: black;
    /* NEW: Add transition for smooth animation */
    transition: all 0.3s ease-in-out;
}

/* NEW: Styles for the cross (X) animation */
.hamburger.active div:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 70px;
    right: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    gap: 20px;
    z-index: 9999;
}

.mobile-menu.show {
    display: flex;
    /* NEW: Apply the appear animation */
    animation: fadeInDown 0.3s ease-in-out;
}

.mobile-menu a,
.mobile-menu button {
    text-decoration: none;
    color: black;
    background: none;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.4rem;
    font-family: 'UniChat';
    padding: 8px 5px;
    text-align: center;
    color: black;
}

.mobile-learn {
    background-color: black !important;
    color: white !important;
}

.mobile-signup {
    background-color: #0057ff !important;
    color: white !important;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    animation: slideIn 1s ease-out;
}

.main-content-text {
    max-width: 650px;
}

.main-content img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-right: 20px;
}

@keyframes slideIn {
    from {
    opacity: 0;
    transform: translateY(50px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.main-content h1 {
    font-size: 3.4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

.main-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.main-content .actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.partners {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partners img {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
}

.community-section {
    height: auto; 
    min-height: auto;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    font-family: 'Rubik', sans-serif; /* Using Rubik for paragraph text as per your setup */
}

.community-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px; /* Increased gap for more space */
    max-width: 1200px;
    width: 100%;
}

.community-text {
    flex-basis: 50%;
    max-width: 550px;
}

.community-text h2 {
    font-family: 'UniChat', sans-serif; /* Using your custom font for the heading */
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 30px;
    color: #000;
}

.community-text .quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.community-text .citation {
    font-weight: 500;
    color: #111;
}

.community-image {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-image img {
    max-width: 100%;
    width: 400px; /* Set a max width for the image */
    height: auto;
    border-radius: 60px 60px 10px 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}


.id-section {
    min-height: auto;
    height: auto; 
    width: 100%;
    background-color: #f8f9fa; /* A light grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    overflow: hidden; /* Prevents scrollbars during animation */
}

.id-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.id-features {
    flex-basis: 50%;
    max-width: 550px;
}

.id-features h2 {
    font-family: 'UniChat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0057ff;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-top: 5px;
}

.feature-text h3 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #000;
}

.feature-text p {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    color: #444;
}

.id-image {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.id-image img {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 60px 60px 20px 20px;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.12);
}

/* ======================================================= */
/* Animation Styles                          */
/* ======================================================= */

/* Initial state for all animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* The visible state */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for each feature item */
.feature-item.animate-on-scroll:nth-child(1) { transition-delay: 0.2s; }
.feature-item.animate-on-scroll:nth-child(2) { transition-delay: 0.3s; }
.feature-item.animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }


.discount-section {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    overflow: hidden;
}

.discount-section .section-title {
    font-family: 'UniChat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0057ff;
    text-align: center;
    margin-bottom: 60px;
}

.discount-layout-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-container {
    position: relative;
    width: 350px;
}

.phone-image {
    width: 100%;
    height: auto;
}

.notification-image {
    position: absolute;
    width: 300px;
    top: 5%;
    left: -45%;
    z-index: 10;
}

/* Base style for all callout boxes */
.callout {
    position: absolute;
    padding: 16px 24px;
    border-radius: 16px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.callout.blue { background-color: #0057ff; }
.callout.black { background-color: #000000; }

/* Positioning for each individual callout box on desktop */
.callout-1 { top: 20%; left: 9%; }
.callout-2 { top: 45%; left: -5%; }
.callout-3 { top: 70%; left: 3%; }
.callout-4 { top: 10%; right: 20%; }
.callout-5 { top: 35%; right: 5%; }
.callout-6 { top: 60%; right: -5%; }
.callout-7 { top: 85%; right: 5%; }
.callout-8 { top: 90%; left: 25%; }


/* ======================================================= */
/* Animation Fly-in Styles                     */
/* ======================================================= */

.fly-in-left.animate-on-scroll { transform: translateX(-50px); }
.fly-in-right.animate-on-scroll { transform: translateX(50px); }
.fly-in-top.animate-on-scroll { transform: translateY(-50px); }

/* When animation is triggered */
.discount-section .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered animation delays */
.discount-section .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.discount-section .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.discount-section .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.discount-section .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.discount-section .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.discount-section .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }
.discount-section .animate-on-scroll:nth-child(7) { transition-delay: 0.7s; }
.notification-image.animate-on-scroll { transition-delay: 0.2s; }


.analytics-section {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    overflow: hidden;
}

.analytics-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1300px;
    width: 100%;
}

.analytics-features {
    flex: 1;
    max-width: 450px;
}

.analytics-features h2 {
    font-family: 'UniChat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0057ff;
    margin-bottom: 40px;
}

.features-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.feature-button {
    padding: 16px 28px;
    border-radius: 18px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

.feature-button.blue { background-color: #0057ff; }
.feature-button.black { background-color: #000000; }

.analytics-image {
    flex: 2;
}

.analytics-image img {
    width: 100%;
    height: auto;
    /* border: 1px solid #e0e0e0; */
    border-radius: 16px;
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); */
}

/* ======================================================= */
/* Analytics Section Animations                */
/* ======================================================= */

/* Staggered animation delays for the feature buttons */
.features-buttons .animate-on-scroll:nth-child(1) { transition-delay: 0.2s; }
.features-buttons .animate-on-scroll:nth-child(2) { transition-delay: 0.3s; }
.features-buttons .animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }
.features-buttons .animate-on-scroll:nth-child(4) { transition-delay: 0.5s; }
.features-buttons .animate-on-scroll:nth-child(5) { transition-delay: 0.6s; }
.analytics-image.animate-on-scroll { transition-delay: 0.2s; }


.signup-process-section {
    min-height: 100vh;
    width: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    overflow: hidden;
}

.process-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
}

/* Left Column */
.process-card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-card {
    background-image: url('../assets/faded-card-bg.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 2.2;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.process-card .hashtag {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.process-card .dynamic-number {
    font-family: 'UniChat', sans-serif;
    font-size: 10rem;
    line-height: 1;
    font-weight: 900;
    color: #000;
}

.curved-arrow {
    width: 150px;
    position: sticky;
    bottom: 0;
    left: 323px;
}

/* Right Column */
.process-steps-container {
    flex: 1.5;
}

.process-steps-container h2 {
    font-family: 'UniChat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0057ff;
    margin-bottom: 50px;
}

.steps-list {
    list-style: none;
    padding-left: 30px;
    position: relative;
}

/* The timeline connecting the steps */
.steps-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background-color: #d8dde3;
}

.step-item {
    position: relative;
    padding-bottom: 40px;
}

.step-number {
    position: absolute;
    left: -16px; /* Center number on the timeline */
    top: -5px;
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: #f8f9fa; /* To hide the line behind it */
    padding: 5px;
    color: #888;
}

.step-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    padding-left: 40px;
    line-height: 1.4;
}

.step-item.final-step .step-text {
    font-weight: 700;
    color: #0057ff;
}


/* ======================================================= */
/* Process Section Animations                  */
/* ======================================================= */
.process-card.animate-on-scroll { transition-delay: 0.1s; }
.process-steps-container h2.animate-on-scroll { transition-delay: 0.1s; }
.steps-list .step-item.animate-on-scroll:nth-child(1) { transition-delay: 0.2s; }
.steps-list .step-item.animate-on-scroll:nth-child(2) { transition-delay: 0.3s; }
.steps-list .step-item.animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }
.steps-list .step-item.animate-on-scroll:nth-child(4) { transition-delay: 0.5s; }

.curved-arrow.animate-on-scroll {
    transform: scale(0.5); /* Start smaller for the animation */
    transition-delay: 0.6s;
}
.curved-arrow.animate-on-scroll.is-visible {
    transform: scale(1) rotate(-30deg);
}

/* ======================================================= */
/* Sign Up Offer Section (REVISED)                         */
/* ======================================================= */

.signup-offer-section {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column; /* Stacks title on top of content */
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    overflow: hidden;
    font-family: 'UniChat', sans-serif;
    gap: 60px; /* Adds space between title and content */
}

.signup-offer-section h2 {
    font-size: 3.5rem; /* Increased font size */
    font-weight: 900;
    color: #0057ff; /* Changed to blue */
    text-align: center;
}

.signup-offer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px; /* Increased gap for more space */
    width: 100%;
    max-width: 1200px;
}

/* Left Column: Process Steps */
.process-steps-column {
    flex: 1;
}

.steps-timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between each step */
    border-left: 2px solid #e0e0e0; /* The new permanent left border */
    padding-left: 30px; /* Space between the border and the items */
}

/* This targets each individual step for alignment */
.timeline-item {
    display: flex; /* Key for alignment */
    align-items: center; /* Vertically centers number and text */
    gap: 30px; /* Space between number and text */
}

.timeline-number {
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem; /* Increased size */
    font-weight: 700;
    color: #a0a0a0;
    min-width: 50px; /* Ensures consistent spacing */
    text-align: right;
}

.timeline-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1.8rem; /* Increased size */
    font-weight: 500;
    line-height: 1.4;
    color: #000;
}

/* Right Column: Free Offer Card */
.offer-card {
    flex: 1.1; /* Give the card slightly more space */
    max-width: 500px; /* Increased max-width */
    background-color: #0057ff;
    color: white;
    border-radius: 30px; /* More pronounced radius */
    padding: 80px 50px 50px 50px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 87, 255, 0.25);
}

.offer-card .free-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: white;
    font-weight: 700;
    font-size: 1.4rem; /* Increased size */
    padding: 12px 30px;
    border-radius: 16px;
    border: 4px solid white;
}

.offer-card p {
    font-family: 'Rubik', sans-serif;
    font-size: 2.2rem; /* Increased size */
    line-height: 1.5;
    margin-bottom: 40px;
}

.offer-card p strong {
    font-size: 2.8rem; /* Increased size */
    font-weight: 900;
    font-family: 'UniChat', sans-serif;
}

/* Corrected Button Style */
.offer-signup-btn {
    width: 100%;
    background-color: #ffffff;
    color: #0057ff;
    border: 2px solid #0057ff; /* Added blue border */
    border-radius: 12px;
    padding: 18px;
    font-family: 'UniChat', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-signup-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}


/* Entrance Animations for this Section */
.signup-offer-section .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.signup-offer-section .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.signup-offer-section h2.animate-on-scroll { transition-delay: 0.1s; }
.process-steps-column.animate-on-scroll { transition-delay: 0.2s; }
.offer-card.animate-on-scroll { transition-delay: 0.4s; }

/* ======================================================= */
/* Why Us Section                                          */
/* ======================================================= */

.why-us-section {
    min-height: 100vh;
    height: auto; /* Allow content to define height */
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    gap: 60px;
    overflow: hidden;
}

.why-us-section h2 {
    font-family: 'UniChat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #0057ff;
    text-align: center;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.feature-block {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-top: 5px;
    flex-shrink: 0;
    object-fit: contain;
}

.feature-text-content h3 {
    font-family: 'UniChat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0057ff;
    margin-bottom: 10px;
}

.feature-text-content p {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Align text to the right for the left column */
.features-column:first-child .feature-block {
    text-align: right;
    flex-direction: row-reverse; /* Flips order of icon and text */
}

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

.phone-image-why-us {
    max-height: 650px;
    width: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}


/* ======================================================= */
/* Why Us Section Animations                               */
/* ======================================================= */

.why-us-section .animate-on-scroll {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.why-us-section .animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.why-us-section .features-column:first-child .feature-block.animate-on-scroll {
    transform: translateX(0px);
}

.why-us-section .features-column:last-child .feature-block.animate-on-scroll {
    transform: translateX(0px);
}

.why-us-section .phone-column.animate-on-scroll {
    transform: scale(0.95);
}

/* Staggered animation delays */
.why-us-section .animate-on-scroll:nth-child(1) { transition-delay: 0.2s; }
.why-us-section .animate-on-scroll:nth-child(2) { transition-delay: 0.3s; }
.why-us-section .animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }
.why-us-section .phone-column.animate-on-scroll { transition-delay: 0.1s; }

/* ======================================================= */
/* Final Section                                           */
/* ======================================================= */

.final-section {
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px;
}

/* Container for the background collage */
.final-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-card {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.15;
}

.bg-card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'UniChat', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: black;
    opacity: 0.2;
    white-space: nowrap;
}

/* Individual positions and sizes for each card */
.card-1 {
    width: 40%;
    height: 45%;
    top: 5%;
    left: 15%;
    transform: rotate(-8deg);
}

.card-2 {
    width: 35%;
    height: 40%;
    top: 15%;
    right: 12%;
    transform: rotate(6deg);
}

.card-3 {
    width: 45%;
    height: 50%;
    bottom: 5%;
    left: 30%;
    transform: rotate(3deg);
}

/* Foreground content styles */
.final-section-content {
    position: relative;
    z-index: 2; /* Ensures content is above the background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-text {
    font-family: 'UniChat', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    font-weight: 700;
}

.final-section-content h2 {
    font-family: 'UniChat', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #0057ff;
    max-width: 800px;
    line-height: 1.2;
    margin-bottom: 40px;
}

.final-actions {
    display: flex;
    gap: 20px;
}


/* ======================================================= */
/* Final Section Animations                                */
/* ======================================================= */
.final-section .bg-card.animate-on-scroll {
    opacity: 0;
    transform: scale(0.9) rotate(0deg); /* Start smaller and un-rotated */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.final-section .bg-card.card-1 {
    border-radius: 20px;
}

.final-section .bg-card.card-1.is-visible {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
}
.final-section .bg-card.card-2.is-visible {
    opacity: 1;
    transform: scale(1) rotate(6deg);
}
.final-section .bg-card.card-3.is-visible {
    opacity: 1;
    transform: scale(1) rotate(3deg);
}

.final-section .intro-text.animate-on-scroll,
.final-section .final-section-content h2.animate-on-scroll,
.final-section .final-actions.animate-on-scroll {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    color: #0038ff;
}

.final-section .animate-on-scroll.is-visible {
    color: black;
    opacity: 1;
    transform: none;
}

/* Staggered animation delays */
.final-section .bg-card.card-1 { transition-delay: 0.1s; }
.final-section .bg-card.card-2 { transition-delay: 0.2s; }
.final-section .bg-card.card-3 { transition-delay: 0.3s; }

.final-section .intro-text { transition-delay: 0.4s; }
.final-section .final-section-content h2 { transition-delay: 0.5s; }
.final-section .final-actions { transition-delay: 0.6s; }


@media (max-width: 1100px) {
    .why-us-content {
        grid-template-columns: 1fr; /* Stack everything into a single column */
        gap: 70px;
    }

    .phone-column {
        order: 2; /* Puts phone between the two feature columns */
    }

    .features-column:first-child {
        order: 1;
    }

    .features-column:last-child {
        order: 3;
    }

    /* Reset text alignment for stacked view */
    .features-column:first-child .feature-block {
        text-align: left;
        flex-direction: row; /* Revert to icon-first order */
    }
}

@media (max-width: 1000px) {
    .bg-blur {
        top: -10%;
    }

    nav {
        padding: 20px 20px;
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .nav-left img {
        height: 60px;
    }

    .nav-actions button {
        font-size: 0.9rem;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .main-content h1 {
        font-size: 2.5rem;
    }

    .main-content img {
        max-width: 350px;
    }

    .partners {
        padding: 20px 0px;
        gap: 20px;
    }

    .community-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .community-text h2 {
        font-size: 2.4rem;
    }

    .community-image {
        order: -1; /* Puts the image on top on mobile/tablet views */
        width: 100%;
    }

    .community-image img {
        width: 350px; /* Adjust image size for tablets */
    }

    .id-content {
        flex-direction: column;
        gap: 50px;
    }
    .id-features {
        order: 2; /* Puts the text below the image on mobile */
        text-align: center;
    }
    .id-features h2 {
        font-size: 2.4rem;
    }
    .feature-item {
        text-align: left; /* Keep feature text left-aligned */
    }
    .id-image {
        order: 1;
    }
    .id-image img {
        width: 350px;
    }

    .analytics-section {
        min-height: auto;
        height: auto;
        padding: 80px 20px;
    }
    .analytics-content {
        flex-direction: column;
        gap: 50px;
    }
    .analytics-features {
        order: 2; /* Puts features below the image on mobile */
        text-align: center;
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .analytics-features h2 {
        font-size: 2.4rem;
    }
    .features-buttons {
        align-items: center;
        width: 100%;
    }
    .analytics-image {
        order: 1;
        width: 100%;
    }

    .signup-process-section {
        min-height: auto;
        height: auto;
    }
    .process-content {
        flex-direction: column;
        gap: 60px;
    }
    .process-steps-container {
        order: 1;
        width: 100%;
        max-width: 500px;
        text-align: center;
    }
    .steps-list {
        text-align: left;
    }
    .process-card-container {
        order: 2;
    }
    /* Hide the arrow on mobile as it won't point correctly */
    .curved-arrow {
        display: none;
    }

    .signup-offer-section {
        min-height: auto;
        height: auto;
    }

    .signup-offer-content {
        flex-direction: column;
        gap: 80px;
    }

    .process-steps-column,
    .offer-card {
        flex-basis: 100%;
        max-width: 550px;
        width: 100%;
    }

    .signup-offer-section h2 {
        font-size: 2.8rem;
    }

    .timeline-text {
        font-size: 1.5rem;
    }

    .card-1 { width: 45%; left: 5%; }
    .card-2 { width: 40%; right: 5%; }
    .card-3 { width: 50%; left: 25%; }

    .final-section-content h2 {
        font-size: 3.5rem;
    }
}

@media (max-width: 841px) {
    .callout-7 { top: 80%; right: 0%; }
    .callout-8 { top: 85%; left: 17%; }
}

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

    .hamburger {
        display: flex;
    }

    /* .mobile-menu.show is already defined above with the animation */

    .main-content h1 {
        font-size: 3rem;
        text-align: center;
        color: #0038ff;
    }

    .main-content p {
        font-size: 1.2rem;
        text-align: center;
    }

    .bg-blur {
        display: none;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-content img {
        max-width: 600px;
        margin-right: 0;
        position: absolute;
        z-index: -1;
        opacity: 0.3;
    }
    
    .left-bg {
        width: calc(50% - 5px);
        height: auto;
    }
    
    .right-bg {
        width: calc(50% - 5px);
        height: auto;
    }

    .community-section {
        min-height: auto; /* Allow height to be natural on phones */
        padding: 80px 20px;
    }

    .community-text h2 {
        font-size: 2rem;
    }

    .community-image img {
        width: 100%;
        max-width: 320px; /* Further adjust for phones */
    }

    .id-section {
        min-height: auto;
        padding: 80px 20px;
    }
    .id-features h2 {
        font-size: 2rem;
    }
    .feature-text h3 {
        font-size: 1.2rem;
    }
    .id-image img {
        width: 100%;
        max-width: 320px;
    }

    .discount-section .section-title {
        font-size: 2rem;
    }
    .phone-container {
        width: 100%;
        max-width: 300px;
    }

    .analytics-features h2 {
        font-size: 2rem;
    }

    .signup-process-section {
        padding: 80px 20px;
    }
    .process-steps-container h2,
    .process-card .dynamic-number {
        font-size: 2.2rem;
    }
    .process-card .dynamic-number {
        font-size: 8rem;
    }
    .step-text {
        font-size: 1.2rem;
    }

    .signup-offer-section {
        padding: 80px 20px;
    }

    .signup-offer-section h2 {
        font-size: 2.5rem;
    }

    .timeline-item {
        gap: 20px;
    }

    .timeline-text {
        font-size: 1.3rem;
    }

    .offer-card p {
        font-size: 1.8rem;
    }

    .offer-card p strong {
        font-size: 2.2rem;
    }

    .why-us-section {
        padding: 80px 20px;
    }

    .why-us-section h2 {
        font-size: 2.8rem;
    }

    .feature-text-content h3 {
        font-size: 1.5rem;
    }

    .phone-image-why-us {
        max-height: 500px;
    }

    .card-2 {
        display: none;
    }
    .card-1 {
        width: 70%;
        height: 35%;
        left: 15%;
        top: 10%;
    }
    .card-3 {
        width: 70%;
        height: 35%;
        left: 15%;
        bottom: 10%;
    }

    .bg-card-text {
        font-size: 4rem;
    }

    .final-section-content h2 {
        font-size: 2.8rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .final-actions {
        flex-direction: column;
        width: 80%;
        max-width: 300px;
    }
    .final-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .callout-1 { top: 18%; left: -10%; }
    .callout-2 { top: 43%; left: -10%; }
    .callout-3 { top: 66%; left: -10%; }
    .callout-4 { top: 8%; right: -10%; }
    .callout-5 { top: 30%; right: -10%; }
    .callout-6 { top: 55%; right: -10%; }
    .callout-7 { top: 78%; right: -10%; }
    .callout-8 { top: 90%; left: -10%; }

    .notification-image {
        top: -7%;
        left: calc(50% - 150px); /* Center the notification image */
    }
}

/* @media screen and (max-width: 300px) {
    .steps-timeline::before {
        top: 47px;
        bottom: 63px;
    }
} */