
:root {
    --button-bg-primary: #69DD90;
    --button-bg-primary-hover: #32bd60;
    --button-text-primary: #24262B;
    
    --title-primary: #363840;
    --title-secondary: #474B55;

    --description-primary: #6B7180;
    --description-secondary: #9499A5;

    --bg-secondary: #F7F9FB;
    --line-stroke-primary: #DDE0E7;
    --background-grid-color: #d1f2df;
    --green-300: #4EC07A;
    --nav-bg: #121315;
    --chart-bg: #EBEDF2;

    --icon-bg-primary: rgba(241, 243, 247, 1);
    --icon-primary: rgba(148, 153, 165, 1);
}

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


@font-face {
    font-family: 'Figtree';
    src: url('/assets/fonts/Figtree/Figtree-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('/assets/fonts/Figtree/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Full height of the viewport */
    
    /* First, the solid grid, then the fade */
    background-image:
        /* Fade starts from 80vh and below */
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 30vh, var(--bg-secondary) 100%),
        /* The grid itself, now using the variable for color */
        repeating-linear-gradient(0deg, transparent, transparent 98.5px, var(--background-grid-color) 100px),
        repeating-linear-gradient(90deg, transparent, transparent 98.5px, var(--background-grid-color) 100px);
    
    background-position: 0 0;
    background-size: 100% auto; /* Ensure the grid spans full width */
    
    z-index: -1; /* Send behind other content */
    pointer-events: none; /* Ensure it's not interactive */
}

main {
    position: relative;
    z-index: 1; /* Ensure main content appears above the grid */
}


/* HEADER */

header {
    position: fixed;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px 5px 30px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 3;
}

.navigation.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo a {
    display: inline-block;
}

.logo-image {
    height: 70px;
    width: auto;
    margin-top: -5px;
}

.nav {
    display: flex;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-variation-settings: 'wght' 500;
    gap: 48px;
}

.nav a {
    text-decoration: none;
    color: var(--title-secondary);
    font-size: 18px;
}

.nav a:hover {
    color: #000;
}

.sign-up {
    align-self: center;
}

.sign-up .btn-signup {
    padding: 15px 28px 15px 28px;
    margin-left: 3px;
    background-color: var(--button-bg-primary);
    color: var(--button-text-primary);
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-variation-settings: 'wght' 500;
    text-decoration: none;
    font-size: 18px;
    border-radius: 12px;
    min-width: 250px;
    display: inline-block;
    text-align: center;
}

.sign-up .btn-signup:hover {
    background-color: var(--button-bg-primary-hover);
    cursor: pointer;
}

.sign-up input {
    width: 25vw;
    border-radius: 12px;
}

.button-dark {
    background-color: var(--nav-bg) !important;
    color: white !important;
}

.centered {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PRIMARY CONTAINER */

.container {
    display: flex;
    justify-content: center;
    margin-bottom: 15vh;
    width: 100%;
    position: relative;
}

.major-quote {
    margin-bottom: 30vh;
}

.left {
    flex: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vh 33px 150px 150px;
}

.left:has(img) {
    place-items: center;
}

.right {
    flex: 40%;
    position: relative; /* Allows precise positioning of the image inside this section */
    display: flex;
    justify-content: flex-end; /* Ensures the image is aligned to the right */
    padding-right: 10vw;
}

.left-image {
    height: 80vh; /* Maintains the image's aspect ratio */
    position: absolute;
    left: 0;
    object-fit: cover; /* Ensures the image covers the right side */
    max-width: 500px;
}

.about-image {
    max-width: 500px;
}


h1, h2 {
    font-size: min(8vh, 60px);
    margin-bottom: 20px;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    color: #2B2B2B;
}

h3 {
    font-size: 3vh;
    margin-bottom: 10px;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
}

p {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 20px;
    color: var(--description-primary);

    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

.inline-logo {
    width: 29%;
    height: auto;
    vertical-align: middle;
    margin-left: 10px;
    max-width: 150px;
    min-width: 80px;
}

.input-email {
    background-color: var(--bg-secondary);
    padding: 19px 28px 15px 28px;
    font-size: 16px;
    flex: 1;
    border: 1px solid var(--line-stroke-primary);
    outline: none;
}

.input-wrapper {
    position: relative;
    display: inline-flex; /* Use inline-flex to keep it inline and maintain flex behavior */
    align-items: center;
}

.icon-email {
    position: absolute;
    left: 10px; /* Adjust based on your design */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; /* Adjust based on your icon size */
    height: 24px; /* Adjust based on your icon size */
    background-image: url('/assets/images/Extra\ Icons/Email_Icon.svg'); /* Use the actual path to your icon */
    background-size: contain;
    background-repeat: no-repeat;
}

.input-email {
    padding-left: 50px; /* Make space for the icon */
    width: 100%;
}

.responsive-container {
    display: flex !important;
}

#manage-container {
    margin-bottom: 25vh;
}

#fp-devices-img {
    max-height: 660px;
}

button {
    border: none;
}

/* Quote section */

.quote-wrapper {
    position: relative;
    text-align: center;
    width: 60%; /* Adjust as necessary */
}

blockquote {
    font-size: 4vh;
    font-style: italic;
    line-height: 1.5;
    color: #333;
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

.highlight {
    font-weight: bold;
    color: var(--green-300); /* Special color for the highlighted part */
}

/* Styling for the icons */
.icon {
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
}

/* Positioning the icons around the quote */
.icon-1 {
    top: -10vh;
    left: 18vw;
    width: 60px;
    height: 60px;
    background-image: url('/assets/images/Categories/Bread_Icon.png');
}

.icon-2 {
    top: -1vh;
    right: 62vw;
    width: 60px;
    height: 60px;
    background-image: url('/assets/images/Categories/Dairy_Icon.png');
}

.icon-3 {
    top: 30vh;
    left: 0vw;
    width: 55px;
    height: 55px;
    background-image: url('/assets/images/Categories/Fish_Icon.png');
}

.icon-4 {
    top: 35vh;
    right: 15vw;
    width: 60px;
    height: 60px;
    background-image: url('/assets/images/Categories/Meat_Icon.png');
}

.icon-5 {
    top: 25vh;
    left: 65vw;
    width: 65px;
    height: 65px;
    background-image: url('/assets/images/Categories/Vegetables_Icon.png');
}

.icon-6 {
    top: -4vh;
    right: -6vw;
    width: 55px;
    height: 55px;
    background-image: url('/assets/images/Categories/Soda_Icon.png');
}

/* Grid Section */

.centered-content {
    flex-direction: column; /* Stack the elements vertically */
    align-items: center; /* Center elements horizontally */
    text-align: center; /* Center text inside the elements */
}

.centered-heading {
    width: 100%; /* Ensure full width for proper centering */
    text-align: center; /* Center text inside the headings */
    padding: 0px 10px 0px 10px;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the cards within the grid */
    gap: 20px; /* Space between cards */
    margin: 40px 15px 0px 15px;
    max-width: 1200px;
}

/* Adjust the card styling to have fixed dimensions */
.card {
    background-color: #FFFFFF;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
    padding: 20px; /* Reduced padding to fit within fixed size */
    width: 366px; /* Fixed width */
    height: 247px; /* Fixed height */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Ensure content is vertically centered */
    align-items: center;
    box-sizing: border-box; /* Ensure padding is included in total width/height */
    position: relative;
}

/* Extra margin for the top row of cards */
.card:nth-child(-n+3) {
    margin-bottom: 50px; /* Adds extra space below the first row */
}

.card-icon {
    width: 75px;
    position: absolute;
    top: -40px; /* Adjust this value to control vertical positioning at the top */
    left: 50%; /* Position it horizontally centered relative to the card */
    transform: translateX(-50%); /* Center the icon exactly by shifting it left by 50% of its width */
    display: block; /* Ensure the icon is visible */
}

.card-title {
    font-family: 'Figtree', sans-serif;
    font-size: 26px;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    margin-bottom: 10px;
    color: var(--title-primary);
}

.card-text {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    color: var(--description-primary);
    line-height: 1.4;
    margin: 0; /* Remove default paragraph margin */
}

/* Revolution Section */

/* Left side styles */
.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    padding: 0px 0px 0px 80px;
}

.left-content .sign-up {
    align-self: unset;
}

/* Right side styles */
.right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Gradient background wrapper */
.content-wrapper {
    display: flex;
    width: 100%;
    height: 100%; /* Ensures it covers all content */
    background: linear-gradient(to right, #66DB8E99, #C8F4D799); /* Dark green to lighter green */
    margin: 0px 100px 0px 100px;
    border-radius: 40px;
}

.left-content h1, .left-content h2 {
    font-size: 7vh;
}

.social-media-icons {
    display: inline-block;
}

.social-icon {
    margin-right: 10px; /* Space between icons */
    vertical-align: middle;
}

/* Tall cards */

.tall-cards-wrapper {
    display: flex;
    justify-content: space-between; /* Ensure spacing between cards */
    width: 100%;
    padding: 0px 10vw 0px 10vw;
    gap: 32px;
}

.tall-card {
    background-color: white;
    width: 23vw; /* Adjusted width */
    margin: 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push image to the bottom */
    padding: 20px 20px 0px 20px; /* Padding inside each card */
    position: relative; /* Important: allows absolute positioning inside the card */
    display: flex;
    place-items: center;
}

.card-title {
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-description {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image scales and covers the available space */
    border-radius: 10px; /* Optional: soften image corners */
    margin-top: auto; /* Pushes the image to the bottom */
}


/* New class for the icon */
.tall-card-icon {
    position: absolute;
    bottom: -7.5vh;
    left: 50%; /* Center it horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    width: 13vh; /* Adjust size as needed */
    object-fit: contain; /* Keep the icon's aspect ratio */
}

/* CEO Quote */
.quote-container {
    position: relative;  /* This makes it a reference for absolutely positioned elements */
    display: inline-block;  /* Keeps the container width fitting its content */
    padding: 20px;  /* You can tweak this to add spacing around the quote */
}

.quote-icon {
    position: absolute;
    top: -50px;
    left: -20px;
    width: 100px;
    height: auto;
}

.quote {
    font-style: italic;
    font-size: 2.9vh;
    color: var(--title-secondary);
    text-indent: 60px;
}

.quote_author {
    text-align: right;
    color: var(--description-secondary);
}

.quote_author b {
    color: var(--title-primary);
}

.quote_img {
    flex: 30%;
    flex-direction: column;
    justify-content: center;
    top: -70px;
}

/* Large grid section */

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(270px, 21vw)); /* Grid items */
    grid-auto-rows: 184px;
    gap: 30px;
    justify-content: center;
    width: 100%;
    position: relative; /* Make grid the relative reference for absolute elements */
    z-index: 1;
}

.grid-item {
    background-color: white;
    border-radius: 20px;
    padding: 25px 20px 0px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add some shadow for visual depth */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between title and text */
    font-family: 'Figtree', sans-serif;
}

.title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between the title and the content */
}

.title-logo {
    margin-right: 10px; /* Spacing between logo and title */
    width: 28px;
}

.grid-title {
    font-size: 18px;
    color: var(--title-primary);
    font-weight: 600;
    font-variation-settings: 'wght' 600;
}

.grid-text {
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    color: var(--description-primary);
}

.grid-hidden {
    background-color: transparent;
    box-shadow: none;
}

.image-wrapper {
    position: absolute; /* Position the wrapper absolutely within the grid */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the wrapper */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Let images be positioned relative to each other */
    pointer-events: none; /* Images won't block interactions with the grid */
}

.image-grid {
    position: absolute; /* Position images absolutely relative to the wrapper */
    top: -150px;
    height: 80vh;
}

/* FAQ */

.faq-columns {
    display: flex;
    gap: 20px; /* Space between the two columns */
    width: 80vw;
}

.faq-column {
    flex: 1; /* Make sure both columns take up equal space */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between FAQ items */
}

.faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden; /* Important for smooth collapse */
    transition: max-height 0.3s ease; /* Animating the max-height of the entire faq-item */
    text-align: left;
    max-height: 75px; /* Collapsed height (adjust based on the height of your header) */
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
    color: var(--title-secondary);
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-variation-settings: 'wght' 500;
    height: 75px; /* Set the height of the header */
}

.faq-content {
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease; /* Add opacity transition for smoother fade-in effect */
    font-size: 16px;
    line-height: 1.5;
    color: var(--description-primary);
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

.faq-content p {
    font-size: 18px;
}

.faq-item.expanded {
    max-height: 700px; /* Expanded height, adjust according to your content */
}

.faq-item.expanded .faq-content {
    opacity: 1;
}

.toggle-icon {
    margin-left: 10px;
    transition: transform 0.3s ease; /* Rotate icon when expanded */
}

.faq-item.expanded .toggle-icon {
    transform: rotate(180deg); /* Rotate icon by 180 degrees */
}

/* Footer */
.footer {
    position: relative;
    background-color: var(--nav-bg);
    height: 319px;
    width: 100%;
    border-radius: 40px 40px 0px 0px;
    padding: 60px 80px 0px 80px;
}

.footer .navigation .nav a {
    color: #AEB2BC;
}   

.footer .navigation .nav a:hover, .footer .extra-links a:hover {
    color: #e3e6ee;
}

.footer .extra-links a {
    color: #AEB2BC;
    margin-left: 30px;
    text-decoration: none;
}

.footer p {
    color: #565D6C;
    font-size: unset;
}

.footer hr {
    margin-top: 20px;
    color: #fff3;
}

.footer .social-icon {
    width: 40px;
}

.footer .nav a {
    font-size: min(2.3vh, 27px);
}

.footer .card-icon {
    top: -9vh;
    width: 20vh;
}

.full-image {
    margin-bottom: -128px;
    max-width: 70vw;
}

/* Popup box */
/* Basic styling for the popup */
.popup {
    display: none;
    position: fixed;
    top: 55%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 1000;
    background-color: white;
    border-radius: 40px;
    box-shadow: 0px 4px 28px 0px var(--Backgroundshadow);
    transition: transform 0.15s ease-out, opacity 0.1s ease-out;
  }

  .popup.show {
    transform: translate(0%, -50%) scale(1); /* Normal scale */
    opacity: 1; /* Fully visible */
  }
  
  .popup-content {
    position: relative;
    padding: 20px;
  }
  
  .popup-body {
    margin-top: 10px;
  }

  .popup-center {
    display: grid;
    place-items: center;
  }
  
  /* Close button style */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    background-color: var(--icon-bg-primary);
    color: var(--icon-primary);
    padding: 2px 8px 2px 8px;
    border-radius: 100px;
  }

  .close-btn:hover {
    background-color: rgb(221, 221, 221);
  }
  
  .hidden {
    display: none;
  }

  .popup-icon {
    width: 88px;
  }

  .popup-content p {
    font-size: 18px;
    color: var(--title-secondary);
  }

  .popup-content button {
    padding: 15px 28px 15px 28px;
    width: min(158px, 90%);
    background-color: var(--button-bg-primary);
    border: none;
    border-radius: 12px;
    font-size: 18px;
  }

  .popup-content button:hover {
    background-color: var(--button-bg-primary-hover);
    cursor: pointer;
  }

  .popup-content .input-wrapper {
    width: min(286px, 90%);
    margin-bottom: 20px;
  }

  .popup-center .input-wrapper .input-email {
    border-radius: 12px;
    background-color: white;
  }

  .popup-content .nav {
    padding: 20px;
    padding-left: 5%;   
    display: grid;
    gap: 28px;
  }

  .popup-content h1, .popup-content h2 {
    font-size: 48px;
  }

  .popup .left, .popup .right {
    padding: unset;
  }

  .popup .container {
    margin-bottom: unset;
  }

  .opacity_bg {
    display: none;
    width: 100vw;
    height: 100%;
    position: fixed;
    top: 0;
    background-color: black;
    opacity: 0.5;
    z-index: 2;
  }


  .input-error {
    display: none;
    color: #f55 !important;
    margin-left: 15px;
    font-size: 16px !important;
  }

/* Privacy Policy */
.main-text {
    text-align: left;
    margin: 0px 150px 0px 150px;
    color: var(--description-primary);
    font-size: 20px;
    min-height: 40vh;
}

a {
    text-decoration: none;
    color: #00e;
}

a:hover {
    text-decoration: underline;
}

.main-text h1, .main-text h2 {
    text-align: center;
}

.main-text h2, .main-text b {
    color: black;
}

.main-text h2 {
    margin-top: 40px;
}

.main-text ul {
    margin-left: 50px;
}


.conditions-checkbox {
    display: block;
    align-items: flex-start; /* Aligns the checkbox and text at the top */
    margin: 10px 0px 40px 10px;
    white-space: nowrap;
    text-align: left;
}

.conditions-checkbox input[type="checkbox"] {
    display: inline-block;
    margin-right: 5px; /* Space between checkbox and text */
    vertical-align: middle;
    position: relative;
    left: 0;
    flex-shrink: 0; /* Prevents the checkbox from shrinking on small screens */
    width: unset;
}

.conditions-checkbox span {
    display: inline;
    flex-grow: 1; /* Allows the text to take up the remaining space */
    vertical-align: top;
    white-space: normal; /* Ensures the text wraps correctly on smaller screens */
    word-wrap: break-word; /* Prevents text from overflowing */
}

#revolutionize_budget .sign-up {
    margin-top: 20px;
}

#mobile-nav {
    display: none;
}

#fp-revolution-devices, #stay_connected img {
    max-width: 650px;
}

#our_vision img {
    max-width: 400px;
}

.lang-switch {
    background: var(--chart-bg);
    width: 72px;
    height: 36px;
    border-radius: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden; /* Prevent overflow during sliding */
    margin-right: 10px;
    align-self: center;
  }
  
  .lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-image: url('/assets/images/Extra Icons/Flags/en-flag.svg');
    transition: transform 0.3s ease, background-image 0.3s ease;
    position: absolute;
    left: 4px; /* Starting position for EN */
  }
  
  .lang-text {
  font-size: 16px;
  font-weight: bold;
  color: var(--description-primary);
  margin-left: 36px; /* Space to avoid overlap with flag */
  transition: opacity 0.15s ease, color 0.3s ease, margin-left 0.3s ease;
  opacity: 1; /* Initial state */
}

/* Slide effect for Danish language */
.lang-switch.active .lang-flag {
  transform: translateX(36px); /* Moves flag to the right side */
  background-image: url('/assets/images/Extra Icons/Flags/dk-flag.svg'); /* Danish flag */
  transition: transform 0.3s ease, background-image 0.3s ease;
}

.lang-switch.active .lang-text {
  opacity: 0; /* Fade out when active */
  margin-left: 5px; /* Adjust position */
}

/* Show the text again with a delayed opacity */
.lang-switch:not(.active) .lang-text,
.lang-switch.active .lang-text {
  opacity: 1; /* Fade back in */
}

.email-confirmation {
    font-size: 22px;
}

/* Tablets */
@media only screen and (max-width: 1255px) {
    .container {
        display: block;
        margin-bottom: unset;
    }

    #how-it-works h1, #how-it-works h2 {
        margin-left: 40px;
    }

    .footer {
        padding: 60px 20px 0px 20px;
    }

    .right {
        padding-right: 5vw;
    }

    #home {
        padding-top: unset !important;
    }

    #fp-devices-img {
        max-width: unset;
    }

    .signup-form {
        padding: 15px;
    }

    .sign-up {
        max-width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .content-wrapper .sign-up {
        margin-top: 0;
        margin-bottom: 20px;
    }

    #revolutionize_budget h1, #revolutionize_budget h2 {
        width: 140%;
    }

    #revolutionize_budget p {
        width: 110%;
    }

    .input-email {
        font-size: 0.9rem;
        padding: 16px 24px 14px 45px;
    }

    .btn-signup {
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    .icon-3, .icon-4 {
        top: unset;
    }

    .container .content-wrapper {
        margin: 0px 20px 0px 20px;
        overflow-x: hidden;
        max-width: 97%;
    }

    .quote_img {
        padding: 10vh 5vw 0px 0px;
        top: -120px;
    }

    .left {
        padding-left: 5vw;
    }

    .popup .right {
        display: flex;
        justify-content: center;
    }
    
    .popup .right img {
        width: 40%;
        min-width: 300px;
    }

    .popup-content .input-wrapper {
        margin-bottom: unset;
    }

    .popup-content h1, .popup-content h2 {
        font-size: 40px;
    }

    .popup .btn-signup {
        margin-top: 0;
    }

    #stay_connected {
        display: flex;
    }

    #our_vision {
        margin-bottom: 0;
    }

    .major-quote {
        margin: 30vh 0px 30vh 0px;
    }

    #features, #how_it_works, #faq {
        margin-top: 15vh;
        margin-bottom: 15vh;
    }

    .popup .sign-up {
        align-self: unset;
    }
}

@media only screen and (max-width: 1050px) {
    .nav {
        display: none;
    }

    #main-header .sign-up {
        display: none;
    }

    #mobile-nav {
        display: block;
    }

    #mobile-nav img:hover {
        cursor: pointer;
    }

    #main-header #lang-switch-container {
        display: none !important;
    }
    
    .lang-switch {
        margin-left: 4.5vw;
        margin-bottom: 20px;
    }
}

/* Phones */
@media only screen and (max-width: 900px) {
    .left {
        padding: 150px 5vw 150px 5vw;
    }

    h1, h2 {
        font-size: min(11vw, 8vh);
        word-break: break-word;       /* Break word at the container's edge */
        overflow-wrap: break-word;    /* Ensures breaking for all browsers */
    }

    .sign-up {
        width: 90vw;
    }

    #fp-devices-img {
        max-width: 70vw;
        max-height: unset;
    }

    .quote-wrapper {
        width: 90%;
        margin-left: 5%;
        text-align: left;
    }

    .responsive-container {
        /*display: block !important;*/
    }

    .left {
        padding-bottom: 100px;
    }

    .right {
        padding-left: 5vw;
    }

    .content-wrapper {
        width: 90%;
        margin: 0px 5% 0px 5%;
    }

    .left-content {
        padding: 0px 0px 0px 30px;
        max-width: 100%;
    }

    .tall-cards-wrapper {
        display: grid;
        justify-content: center;
        place-items: center;
    }

    .tall-card {
        width: min(100%, 367px);
        min-height: 440px;
        margin-bottom: 60px;
    }

    .signup-form {
        flex-direction: column;
        width: 100%; /* Ensure it fits the screen width */
        justify-content: center;
    }

    .sign-up {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 20px
    }

    .sign-up input {
        width: 100%;
    }

    .input-wrapper {
        display: block;
        width: 100%;
    }

    .btn-signup {
        margin-top: 10px; /* Add space between input and button */
        display: block;
        width: 100%; /* Make button full width */
        text-align: center;
    }

    .icon-email {
        position: absolute;
        left: 10px;
        top: 50%; /* Position it halfway down the input */
        transform: translateY(-50%); /* Offset it by half its height to center vertically */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .container {
        align-items: center; /* Center items when stacked */
        margin-bottom: 10vh;
    }

    .container:has(.left-image) {
        flex-direction: column-reverse; /* Moves image below the text */
        align-items: center; /* Center items when stacked */
    }

    .left, .right {
        flex: 100%; /* Ensure both sections take full width */
        padding: 20px;
        padding-left: max(20px,10vw);
    }

    .left-image {
        height: auto; /* Maintain aspect ratio */
        position: relative; /* Remove absolute positioning */
        margin-top: 20px; /* Add some margin between the text and image */
    }

    .about-image {
        width: 100% !important;
        margin-left: -5%;
    }

    .left .about-image {
        margin-left: -14%;
    }

    .right {
        order: 2; /* Ensure the image is below the text */
    }

    .right img {
        width: 100%; /* Adjust image to fit full width on smaller screens */
        height: auto; /* Maintain aspect ratio */
    }

    .card {
        margin-bottom: 50px; /* Adds extra space below the first row */
    }

    #home {
        margin-bottom: 20vh;
    }

    .major-quote {
        margin-bottom: 10vh;
    }

    blockquote {
        font-size: 3.5vh;
        text-indent: 60px;
    }

    .icon-1, .icon-6, .icon-4, .icon-3 {
        display: none;
    }

    .icon-2 {
        top: -10vh;
        right: 0vw;
    }

    .icon-5 {
        top: -5vh;
        left: 0vw;
    }

    .left-content h1, .left-content h2 {
        font-size: 6vw;
        font-weight: 800px;
        font-variation-settings: 'wght' 800;
        padding: 20px 0px 0px 0px;
    }

    .left-content .sign-up .btn-signup {
        width: 60%;
    }

    .grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .grid-hidden {
        display: none;
    }

    .grid-item {
        margin: 20px 20px 0px 20px;
        padding-bottom: 20px;
        text-align: left;
        width: min(350px, 90%);
        height: 184px;
    }

    .image-wrapper {
        display: none;
    }

    h1, h2 {
        font-size: 36px;
    }

    #manage-container {
        margin-bottom: 15vh;
    }

    #home {
        margin-bottom: 15vh;
    }

    #our_vision .left, #our_vision .left .quote-container {
        padding-bottom: 0;
    }

    #our_vison .right {
        padding-top: 0;
    }

    #stay_connected img {
        display: none;
    }

    #stay_connected .social-icon {
        width: unset;
        display: unset;
        top: unset;
        margin-bottom: unset;
    }

    #stay_connected .content-wrapper .left-content {
        padding: 30px 30px 60px 30px;
        text-align: center;
    }

    .faq-columns {
        display: unset;
    }

    .faq-column {
        margin-bottom: 12px;
    }

    .faq-item {
        padding: 5px 0px 5px 0px;
        max-height: 85px;
    }

    .footer {
        height: unset;
        padding-bottom: 30px;
        padding-left: 15px;
    }

    .footer .navigation:nth-of-type(1) {
        padding: unset;
        display: grid;
        justify-content: center;
    }

    .footer .navigation:nth-of-type(1) .logo {
        display: grid;
        place-items: center;
    }

    .footer .navigation div {
        margin-bottom: 40px;
    }

    .footer .navigation:nth-of-type(2) {
        display: grid;
        justify-content: center;
        margin-left: -10px;

        grid-template-rows: repeat(3, 1fr);
        text-align: center;
    }

    .footer .navigation:nth-of-type(2) p {
        grid-row: 3;
    }

    .footer .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: 45px;
    }

    .footer .nav a {
        margin: 0;
        padding: 0;
        line-height: 0.1;
        font-size: 18px;
    }

    .full-image {
        margin-bottom: -10vw;
        max-width: 90%
    }

    #faq .signup-form {
        margin-bottom: 40px;
        width: 80vw;
    }

    .footer .navigation .sign-up {
        margin-top: 40px;
    }

    .footer .sign-up {
        display: grid;
        justify-content: center;
    }

    .footer .sign-up .btn-signup {
        width: 182px;
    }

    .footer .extra-links {
        margin-right: unset;
        margin-left: -50px;
        margin-bottom: 0px !important;
    }

    .main-text {
        margin: 0px 20px 0px 20px;
    }

    .popup .right img {
        min-width: min(300px, 90%);
    }

    .popup-content h1, .popup-content h2 {
        font-size: 5vh;
    }

    .quote_img {
        padding: 10vh 5vw 0px 10px;
        display: grid;
    }

    .major-quote {
        margin: 0px 0px 15vh 0px;
    }

    #home, #gain-insights, #our_vision {
        display: block !important;
    }
}

/* Smaller Phones */
@media only screen and (max-width: 600px) {

}

/* Smaller Phones */
@media only screen and (max-width: 500px) {
    .container {
        display: flex;
    }

    .popup-body .container {
        display: block;
    }

    #fp-devices-img {
        max-width: unset;
    }

    .popup .right img {
        margin-left: -20px;
    }

    .faq-header {
        font-size: 16px;
    }

    .left-content h1, .left-content h2 {
        font-size: 8vw;
    }

    .grid-item {
        height: 200px;
    }

    .card-grid {
        max-width: min(95%, 1200px);
    }

    .content-wrapper {
        display: block;
    }

    .content-wrapper img {
        position: relative;
        top: -100px;
        margin-bottom: -100px;
        border-radius: 0px 0px 40px 40px;
        width: 100%;
    }

    #revolutionize_budget h1, #revolutionize_budget h2 {
        width: unset;
    }

    #revolutionize_budget p {
        width: unset;
    }
}