/**
 * NetSetGo Landing Page Styles
 * Organized and optimized for maintainability and performance
 */

/* ==========================================================================
   Font Face Declarations
   ========================================================================== */
@font-face {
  font-family: 'Visby';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/VisbyMedium.otf') format('opentype');
}

@font-face {
  font-family: 'Visby';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/VisbySemibold.otf') format('opentype');
}

@font-face {
  font-family: 'Visby';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/VisbyHeavy.otf') format('opentype');
}


/* =================================================
   GLOBAL STYLES & VARIABLES (Desktop Defaults)
   ================================================= */
:root {
  /* Colors */
  --color-primary: #5a00a4; /* Deep Purple */
  --color-secondary: #f0f0f5; /* Light Gray/Off-white for background */
  --color-text-dark: #1a1a1a;
  --color-text-muted: rgba(0, 0, 0, 0.5);
  --color-cta-bg: linear-gradient(90deg, #4b008c, #b066ff);

  /* Typography - Set Visby as the primary font */
  --font-family-sans: 'Visby', 'Helvetica Neue', 'Arial', sans-serif;

  /* ================================================= */
  /* TYPOGRAPHY VARIABLES (Globalized for Consistency) */
  /* ================================================= */
  
  /* Weights */
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 900;

  /* Global Sizes (Used for Headings and large text) */
  /* Re-tuning CLAMP values for better mobile scaling */
  --fs-h1: clamp(22px, 6vw, 75px);  /* Main Section Headers */
  --fs-h2: clamp(36px, 5vw, 60px);  /* CTA Main Title */
  --fs-h2-large: 70px;  /* Hero Word static size for DESKTOP */
  --fs-hero-word: clamp(60px, 8vw, 130px);  /* Hero Word static size for DESKTOP */
  --fs-subheading: clamp(16px, 2.5vw, 28px); 
  --fs-body-large: clamp(20px, 2.5vw, 34px); 
  --fs-body-medium: clamp(16px, 2vw, 28px); 
  --fs-body-small: clamp(14px, 1.2vw, 18px); 
  --fs-tiny: 14px; /* Why Us? card subtext */
}

body {
  box-sizing: border-box;
  color: var(--color-text-dark);
  font-family: var(--font-family-sans);
  overflow-x: hidden;
  line-height: 1.6; 
}
main {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
}

/* Override for a specific, wider container width (Desktop Default) */



/* =================================================
   HEADER STYLES
   ================================================= */

header {
  background-color: transparent;
  left: 0;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: 250px;
}


/* =================================================
   HERO SECTION STYLES
   ================================================= */

#hero {
  background: var(--color-secondary);
  overflow: visible;
  padding-bottom: 50px;
  padding-top: 155px; /* Increased default padding-top for desktop header */
  position: relative;
}
/*#hero .order-lg-1 {
  margin-top: -8%;
}*/

#hero .h_lead {
  font-size: var(--fs-body-medium);
  color: var(--color-text-muted);
  line-height: 1.3em;
  margin-bottom: 35px;
}

.hero-text {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-medium);
  color: var(--color-text-dark);
  line-height: 1.5em;
  max-width: 900px;
}

.hero-title {
  font-weight: var(--fw-semibold);
  line-height: 128%;
  margin-bottom: 55px;
}
.hero-title .hero-head {
  padding: 30px 0;
}

.hero-word {
  color: var(--color-text-dark);
  display: inline-block;
  font-size: var(--fs-hero-word); 
  font-weight: var(--fw-heavy);
  line-height: 87%;
  margin-right: .5rem;
  position: relative;
  z-index: 3;
}

/* Hero Lead Text */
.col-lg-6 p:nth-child(2),
.col-lg-6 p:nth-child(3) {
  font-size: clamp(20px, 2.5vw, 28px); 
  font-weight: var(--fw-medium);
  line-height: 128%;
  padding-bottom: 20px;
  max-width: 900px;
  text-transform: capitalize;
}
.col-lg-6 p:nth-child(2) {
  color: rgba(0, 0, 0, 0.5) !important;
}


/* --- TOGGLE SWITCH STYLES (.hero-toggle) --- */
.hero-toggle {
  /* Key change for the Neumorphic Track */
  align-items: center;
  background: var(--color-secondary);
  border-radius: 90px;
  box-shadow:
    12px 12px 24px rgba(0, 0, 0, 0.05),
    inset 0 0 15px rgba(200, 200, 200, 0.9),
    inset -6px -6px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
  height: 90px; 
  margin: 0 -69px;
  padding: 0 15px; 
  position: relative;
  transform: translateY(6%);
  width: 180px; 
  z-index: 4;
  cursor: pointer;
  transition: background 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

/* Small indicator circle for the 'inactive' state */
.hero-toggle::after {
    content: '';
    display: block;
    position: absolute;
    right: 40px; 
    top: 50%;
    transform: translateY(-50%);
    height: 25px; 
    width: 25px;
    border-radius: 50%;
    border: 5px solid rgb(255 255 255); 
    background-color: transparent; 
    opacity: 1; 
    transition: all 0.3s ease-in-out;
}

/* The large circular button */
.hero-toggle-switch {
  background: #ffffff;
  border-radius: 50%;
  display: block;
  height: 80px; /* Scaled Size: 50px * 1.5 = 75px */
  width: 80px; /* Scaled Size: 50px * 1.5 = 75px */

  /* Position absolutely inside the track so movement isn't affected by flex layout */
  position: absolute;
  top: 50%;
  left: 8px; 
  transform: translateY(-50%);
  transition: left 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.25s ease-in-out;
}

/* --- ACTIVE STATE STYLES (.hero-toggle.active) --- */
.hero-toggle.active .hero-toggle-switch {
  left: 92px;
}

.hero-toggle.active::after {
    opacity: 0; 
}

.hero-toggle-state {
    display: inline-block;
    min-width: 50px; /* Ensure space for the word */
    text-align: center;
}

/* Additional style for the 'active' toggle color/text if needed */
.hero-toggle.active {
    background: var(--color-cta-bg); 
}


/* --- CTA Button: "Explore More" --- */
.cta-btn {
  background: var(--color-cta-bg);
  border: none;
  border-radius: 40px;
  font-family: var(--font-family-sans);
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: 128%;
  padding: 5px 5px 5px 48px;
  text-align: center;
  text-transform: capitalize;
  transition: transform 0.3s ease;
  box-shadow: 5px 20px 20px #00000040;
  background-image: url('../images4/btn-bg.jpg');
  background-size: cover;
  background-position: center center;
  color: #fff;
  cursor: pointer;
}

.cta-btn:hover {
  color: white !important;
  transform: translateY(-2px);
  cursor: pointer;
}

.cta-btn .fa-arrow-right {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  color: var(--color-primary);
  font-size: 25px;
  padding: 14px 16px;
  margin-left: 28px !important;
  transition: transform 0.3s ease;
}

.cta-btn:hover .fa-arrow-right {
  transform: translateX(5px);
}

/* Hero Visual Image Container (Desktop/Default) */
.hero-visual {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  margin-top: 30%; /* Keep this for final position */
  max-width: 520px;
  position: relative;
  width: 100%;
}

#heroImage-main {
  border-radius: 0 0 180px 180px;
  margin-bottom: -125px;
  margin-right: -15%;
  z-index: 1;
}

#heroImage-foreground {
  max-width: 435px;
  position: absolute;
  right: 32% !important;
  top: -12%;
  transform: translateY(6%); 
  z-index: 3;
}

#heroImage-bg {
  border-radius: 300px 300px 30px 30px;
  height: 850px;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.logo {
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, rgba(240, 240, 240, 1) 0%, rgb(182 177 177) 50%, rgba(240, 240, 240, 1) 100%) 1;
  width: 900px;
}

/* =================================================
   CONTACT FORM WRAP
   ================================================= */
#contact h2.big_heading {
  
  line-height: 1.1;
  padding-bottom: 30px;
  text-align: center;
}
#contact {
  padding: 100px 50px;
}
.form-width label {
    margin-bottom: 5px;
    font-family: var(--font-family-sans)
}
.form-width form#contactForm {
    border: 2px solid #f3f3f3;
    border-radius: 8px;
    padding: 30px;
    background: #ffffff;
}
.popup-contact span {
    padding: .375rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
}
#myModal .form-group, .form-width .form-group {
    margin-bottom: 15px;
}
#contact .cta-btn .fa-arrow-right {
  font-size: 20px;
  padding: 6px 8px;
}
button#btnSubmit
 {
    margin-left: 15%;
}
.rc-anchor-normal {
    height: 74px;
    width: 300px;
}

/* =================================================
   NET ICON BOX
   ================================================= */
.net-icon-box {
  background-image: url("../images4/icon-box-bg.jpg");
  background-position: center;
  background-size: cover;
  color: white;
  padding: 35px 0 20px;
  text-align: center;
}
.net-icon-box .row .border-after:after {
    content: '';
    width: 1px;
    height: 60%;
    right: 0;
    top: 50%;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(0%, -50%);
}

.net-icon-box p {
  font-family: var(--font-family-sans); /* Changed font-family to Visby for consistency */
  font-size: 17px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.5px;
}

/* Net icon box counters (animated) */
.net-number {
    font-family: var(--font-family-sans);
    font-weight: 900;
    font-size: 65px;
    margin: 0 0 6px 0;
    letter-spacing: -2px;
    color: #fff;
    position: relative;
    margin-bottom: 10px;
}
.net-number::after {
  content: "+";
  margin-left: 6px;
  font-weight: 700;
  font-size: 90px;
}

.net-icon-box .row {
  padding: 0 180px;
}

.net-icon-box .row div {
  padding: 0 80px;
}

.net-icon-box .row .border-after {
  position: relative;
}

/* =================================================
   REMARKABLE SECTION STYLES
   ================================================= */
#remarkable {
  margin-top: 100px;
  padding: 0 50px;
}
.remarkable-title, #contact h2.big_heading, .why-us-title, .who-we-title, .how-we-scale .big_heading {
  color: var(--color-text-dark);
  font-family: var(--font-family-sans);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.1;
}
.remarkable-title {
  line-height: 1.1;
  padding-bottom: 30px;
}

.remarkable-highlight {
  background-color: rgba(217, 217, 217, 0.5);
  border-radius: 50px;
  box-sizing: border-box;
  color: var(--color-text-dark);
  display: inline-block;
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading);
  font-weight: 600;
  max-width: 1450px;
  padding: 15px 65px !important;
  margin-bottom: 30px !important;
}

.remarkable-separator {
  color: #000000;
  margin: 0 20px;
}

.remarkable-problem-1 {
  color: rgba(0, 0, 0, 0.7);
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading);
  font-weight: 400; /* Regular weight */
  line-height: 1.4;
  margin-bottom: 25px !important;
}

.remarkable-problem-2{
  margin-bottom: 25px !important;
}
.remarkable-solution {
  margin-bottom: 35px !important;
}
#remarkable .cta-btn{
  padding: 5px 5px 5px 30px;
}

.remarkable-problem-2,
.remarkable-solution {
  color: var(--color-text-dark);
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}


/* =================================================
   WHAT WE DO SECTION STYLES
   ================================================= */

section.what-we-do {
  margin: 100px 100px 80px 100px;
}

.big_heading {
  padding-bottom: 35px;
}



.what-we-do .card_sec {
    align-items: center;
    background: rgba(245, 245, 245, 0.01);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 420px;
    padding: 48px 48px 0px;
    position: relative;
    text-align: center;
    transition: box-shadow 0.3s, background 0.5s;
    max-width: 450px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.what-we-do .card_sec hr {
    color: rgba(0, 0, 0, 0.1);
    width: 60%;
}

.what-we-do .card_sec:hover {
  background: url('../images4/icon-box-bg2.jpg') center/cover no-repeat, linear-gradient(90deg, #5a00a4 0%, #9d4edd 100%);
  box-shadow: 5px 30px 48px rgb(0 0 0 / 58%);
}

.what-we-do .card_sec:hover .desc_card h2,
.what-we-do .card_sec:hover .desc_card p {
  color: #fff;
}

.what-we-do .card_sec .icon_card {
  align-items: center;
  display: flex;
  height: 90px;
  justify-content: center;
  margin-bottom: 15px;
}

.what-we-do .card_sec .icon_card img {
  max-height: 90px;
  max-width: 90px;
  transition: opacity 0.3s;
}

.what-we-do .card_sec .desc_card h2 {
  font-family: var(--font-family-sans), 'Poppins', Arial, sans-serif;
  /* Original size 34px, using body-large clamp */
  font-size: 34px; 
  font-weight: var(--fw-bold);
  margin-bottom: 18px;
}

.what-we-do .card_sec .desc_card p {
  color: #222;
  font-family: var(--font-family-sans), 'Poppins', Arial, sans-serif;
  /* Original size 22px, using body-medium clamp */
  font-size: 22px; 
}

.what-we-do .card_sec:hover .icon_card .black-icon {
  opacity: 0;
}

.what-we-do .card_sec:hover .icon_card .white-icon {
  display: inline-block !important;
  opacity: 1;
}

.what-we-do .card_sec .icon_card .white-icon {
  display: none;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 25%;
  transform: translate(-50%, -50%);
}

.what-we-do .card_sec .icon_card .black-icon {
  opacity: 1;
  transition: opacity 0.3s;
}

/* =================================================
    RATING / STATS BAR SECTION STYLES
    ================================================ */

.rating {
  
    background: linear-gradient(90deg,#5a00a4,#36124f);
    color: white;
  
    padding: 5px 0; /* Increased padding for a taller bar */
}
.rating-list {
    list-style: none;
    display: flex;
  
    gap: 0;
    justify-content: center; /* Center the list in the row */
    align-items: center;
    padding: 0;
    margin: 0;
}
.rating-item {
    position: relative;
  
    padding: 0 2rem; /* Add padding here to space out the text from the separator */
  
  
  
}
.rating-item:not(:first-child)::before {
    content: "|";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: white; 
    font-size: 2vmax;
    font-weight: 700;
    line-height: 1;
}
.rating-item:first-child {
    padding-left: 0;
}


.rating-content {
  
    white-space: nowrap; 
  
    text-align: center;
}

.rating-number {
    display: inline;
    font-family: var(--font-family-sans, 'Arial', sans-serif); 
    font-weight: 900;
    font-size: 2vmax;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.rating-number::after {
    
    content: "+";
    margin-left: 2px; 
    font-weight: 900; 
    font-size: 1em; 
}


.rating-label {
    display: inline; 
    font-size: 2vmax; 
    font-weight: 900; 
    letter-spacing: 0.1rem; 
    margin-top: 0; 
    margin-left: 0.5rem; 
    text-transform: uppercase; 
    vertical-align: middle; 
}
.net-icon-box hr {
    opacity: 0.7;
    width: 35%;
    justify-self: center;
}



/* =================================================
   WHY US? SECTION STYLES
   ================================================= */
#why-us {
  background-color: var(--color-secondary);
  padding: 0 30px;
}

.why-us-subtitle {
  color: var(--color-text-dark);
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  margin-bottom: 40px;
}

.why-us-card {
  background-color: transparent;
  border-radius: 20px;
  height: 100%;
  margin-left: auto;
  padding: 20px;
  margin-right: auto;
  max-width: 260px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
      border: 1px solid rgba(0, 0, 0, 0.1);
}

.why-us-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

#why_us_cards > div:nth-child(even) .why-us-card {
    background-color: white;
}
div#why_us_cards {
    padding-bottom: 30px;
}

.why-us-icon {
  align-items: center;
  display: flex;
  height: 60px;
  justify-content: center;
  margin: 0 auto;
}

.why-us-icon img {
  filter: invert(0%);
  height: 48px;
  transition: filter 0.3s ease;
  width: 48px;
}

.why-us-text {
  color: black;
  font-family: var(--font-family-sans);
  font-size:18px; 
  font-weight: var(--fw-medium);
  line-height: 1.5;
}


/* =================================================
   INVESTMENT VISUAL / UNION SECTION STYLES
   ================================================= */

/* Base Styles (Desktop First) */
#investment-visual {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.investment-bg {
    position: relative; 
    width: 100%;
    z-index: 1;
}

.investment-bg .investment-main-image {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}


.union-spin-wrapper {
    position: absolute; 
    bottom: 5%; 
    left: 50%; 
    transform: translateX(-50%); 
    display: inline-block;
}


.union-spin-wrapper .union-spin-image {
    margin-top: 0; 
    max-width: 215px; /* Desktop Size */
    display: block;
}


.play-button-overlay {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 2; 
    cursor: pointer; 
    
    display: flex; 
    align-items: center;
    justify-content: center;
}

.play-button-overlay .play-btn-image {
    max-width: 100%; 
    height: auto;
    display: block;
}




/* =================================================
   WHO WE WORK WITH SECTION STYLES
   ================================================= */

#who-we-work-with {
  background-color: white;
}

.who-we-subtitle {
  color: var(--color-text-dark);
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  margin-left: auto;
  margin-right: auto;
}

.work-with-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding-left: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 40px;
  
}

    


.work-with-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.work-with-card .card-text {
  color: var(--color-text-dark);
  font-family: var(--font-family-sans);
  
  font-size: clamp(18px, 2vw, 30px); 
  font-weight: var(--fw-medium);
  max-width: 70%;
  text-align: left;
}

.work-with-card .card-icon {
  align-items: center;
  border-radius: 15px;
  display: flex;
  flex-shrink: 0;
  height: 165px;
  justify-content: center;
  width: 165px;
}

.work-with-card .card-icon-dark {
  background-color: rgba(46, 46, 46, 1);
}

.work-with-card .card-icon img {
  max-height: 60px;
  max-width: 60px;
}


.work-with-card .order-2 {
  text-align: right;
}


/* =================================================
   HOW WE SCALE SECTION STYLES
   ================================================= */
section.how-we-scale {
  padding: 35px 0;
}

.how-we-scale .container-fluid {
  max-width: 1440px;
}

.how-we-scale .new-page-2 {
  text-align: center;
}

.how-we-scale .card_sec {
  background: transparent;
  border-radius: 27px;
  height: 100%;
  margin: 10px;
  padding: 45px 92px 1px;
  transition: box-shadow 0.3s, background 0.5s;
  max-width: 430px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.how-we-scale-process .col-md-4 {
  padding-bottom: 10px;
  margin-bottom: 45px;
}

.how-we-scale-process .desc_card {
  margin-top: 10px;
}

.how-we-scale .card_sec:hover {
  background: url('../images4/icon-box-bg3.jpg') center/cover no-repeat, linear-gradient(90deg, #5a00a4 0%, #9d4edd 100%);
  cursor: pointer;
}

.how-we-scale .card_sec:hover .desc_card h2,
.how-we-scale .card_sec:hover .desc_card p {
  color: #fff;
}

.how-we-scale .card_sec:hover .icon_card .black-icon {
  opacity: 0;
}

.how-we-scale .card_sec:hover .icon_card .white-icon {
  display: inline-block !important;
  opacity: 1;
  position: absolute;
  left: 20%
}

.how-we-scale .card_sec .icon_card img {
  max-height: 90px;
  max-width: 90px;
  transition: opacity 0.3s;
}

.how-we-scale .card_sec .desc_card h2 {
  font-family: var(--font-family-sans), 'Poppins', Arial, sans-serif;
  
  font-size: 34px; 
  font-weight: 600;
  margin-bottom: 18px;
}

.how-we-scale .card_sec .desc_card p {
  color: #222;
  font-family: var(--font-family-sans), 'Poppins', Arial, sans-serif;
  
  font-size: 22px; 
}

.how-we-scale .cta-btn {
  max-width: 370px;
}


/* =================================================
   FINAL CTA BANNER STYLES
   ================================================= */
#final-cta {
  background-image: url('../images4/footer_bg.jpg');
  border-radius: 100px 100px 0 0;
  color: white;
  margin-top: 65px;
  overflow: hidden;
  padding: 0 50px;
  position: relative;
  background-size: cover;
  background-position: right;
}
#final-cta::after{
  background-image: url('../images4/footer_bg.png');
  position: absolute;
  content: '';
  top: 0px;
  left: 0px;
  width: 100%;
    height: 100%;
        background-size: cover;
} 
#final-cta .container-w1580 {
  position: relative;
  z-index: 2;
  padding-left: 0px;
}


.cta-text-content {
  position: relative;
  z-index: 3;
  max-width: 990px;
  margin-top: 20px;
  margin-bottom: 50px;
}


.cta-main-title {
  color: white;
  font-family: var(--font-family-sans);
  font-size: 60px; 
  font-weight: 600;
  line-height: 1.1;
}


.cta-subtitle {
  color: white;
  font-family: var(--font-family-sans);
  
  font-size: clamp(20px, 2.5vw, 35px); 
  font-weight: var(--fw-medium);
  line-height: 1.4;
}


.cta-key-pitch {
  color: rgba(255, 255, 255);
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading); 
  font-weight: var(--fw-medium);
  line-height: 1.4;
  margin-bottom: 35px;
}


.cta-next-step {
  color: white;
  font-family: var(--font-family-sans);
  font-size: var(--fs-subheading); 
  font-weight: var(--fw-bold);
  line-height: 1.4;
}




/* =================================================
   RESPONSIVE MEDIA QUERIES (Cleaned & Consolidated)
   ================================================= */

   @media only screen and (min-width: 1600px) { 
  .container-w1580 {
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bs-gutter-x, 1.5rem);
    padding-right: var(--bs-gutter-x, 1.5rem);
    width: 100%;
    max-width: 1580px; /* Setting a clear max-width for desktop */
  }
  #who-we-work-with .container-w1580 {
    max-width: 1702px;
  }
  .hero-title span:not(.hero-word):not(.hero-toggle) {
    font-size: var(--fs-h2-large); 
    font-weight: var(--fw-semibold);
  }
  
}
/* --- 1. Large Desktop (min-width: 1200px) --- */
/* This section handles specific layout for the widest screens (Large Laptops/Desktops) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 100%;
  }

  #who-we-work-with .container-w1580 {
    max-width: 100%;
  }
  .hero-word {
    font-size: var(--fs-hero-word); 
  }
  #hero .order-lg-1 {
    max-width: 610px;
  }
  #heroImage-main {
    max-width: 600px;
    margin-bottom: -125px; 
  }
  #heroImage-foreground {
    top: -45%; 
    right: 32% !important; 
    max-width: 435px; 
  }
  #heroImage-bg {
    right: 0;
    height: 750px; 
    width: 510px; 
    top: -42%;
  }
  #contactForm .form-group.col-md-3.mb-0.smt_btn {
    min-width: 100%;
  }
  button#btnSubmit {
    margin-left: 0;
    margin-top: 15px;
}

  .net-icon-box {
    padding: 30px 0;
  }
  .net-icon-box .row div {
    padding: 0 35px;
  }
  .hero-title span:not(.hero-word):not(.hero-toggle) {
    font-size: 40px;
  }
  .rating-number, .rating-label {
    font-size: 28px;
  }
  .union-spin-wrapper{
    bottom: 3%;
  }
  .what-we-do .card_sec {
    padding: 48px 40px;
  }
  .remarkable-title, #contact h2.big_heading, .why-us-title, .who-we-title, .how-we-scale .big_heading {
    font-size: 35px;
  }
  .remarkable-highlight {
    font-size: 20px;
  }
}



/* --- 2. Tablet / Small Desktop (max-width: 1024px) --- */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  /* Global */
  .min-vh-100 {
    min-height: auto !important; /* Allow hero section to collapse */
  }
  
  /* Hero Section */
  #hero {
    padding-top: 9.5rem; /* Reduce top padding for better space utilization */
  }
  #hero .order-lg-1 {
    max-width: 600px;
  }
  .hero-title span:not(.hero-word):not(.hero-toggle) {
    font-size: 35px; /* Smaller main heading text */
  }
  .hero-word {
    font-size: 110px; 
  }
  .hero-title .hero-head {
    padding: 10px 0;
  }
  .hero-title {
    margin-bottom: 10px;
  }
  #hero .h_lead {
    margin-bottom: 10px;
  }
  /* Hero Visual: Scale down and adjust positioning */
  .hero-visual {
    margin-top: 5%;
  }
  #heroImage-main {
    max-width: 450px;
    margin-bottom: -100px;
  }
  #heroImage-foreground {
    top: -20%;
    right: 30% !important;
    max-width: 300px;
  }
  #heroImage-bg {
    height: 540px;
    width: 400px;
    top: -30%;
    right: -5%;
  }

  /* Toggle Button (Re-applying the responsive fix for the Neumorphic toggle) */
 .hero-toggle {
    height: 70px;
    width: 130px;
    margin: 0 -22px;
    padding: 0 6px;
  }
  
  .hero-toggle::after {
    right: 14px;
    height: 20px;
    width: 20px;
  }

  .hero-toggle-switch {
    height: 50px;
    width: 50px;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero-toggle.active .hero-toggle-switch {
    left: 75px;
  }
  #contactForm .form-group.col-md-3.mb-0.smt_btn {
    min-width: 100%;
  }
  button#btnSubmit {
    margin-left: 0;
    margin-top: 15px;
  }
  
  /* Net Icon Box */
  .net-icon-box .row {
    padding: 0 100px;
  }
  .net-icon-box .row div {
    padding: 0 30px;
  }
  .net-icon-box h2, .net-number::after {
    font-size: 50px;
  }
  
  /* Remarkable Section */
  .remarkable-highlight span {
    padding: 0.25rem 0;
  }
  .remarkable-problem-1, .remarkable-problem-2, .remarkable-solution {
    font-size: var(--fs-body-medium);
  }
  
  /* Rating Section */
  .rating {
    padding: 1rem 0;
  }
  .rating-number, .rating-label {
    font-size: 22px;
  }
  .rating h1 {
    white-space: normal; /* Allow text to wrap */
    width: 100%;
  }
  .rating .col-lg-4 {
    margin-bottom: 1rem;
  }
  .rating .col-lg-4:not(:last-child) h1::after {
    content: none; /* Remove vertical separator */
  }

  /* Why Us */ 
  #why_us_cards .col-lg-2 {
    flex: 0 0 auto;
    width: 20%;
}
  
  /* What We Do Section */
  .what-we-do .card_sec {
    min-height: 320px;
    padding: 40px;
  }
  section.what-we-do {
    margin: 100px 30px 80px 30px;
  }

  /* Who We Work With Section */
  .work-with-card {
    padding-left: 30px;
  }
  .work-with-card .card-text {
    max-width: 80%;
  }
  .how-we-scale .card_sec {
    padding: 45px 30px 60px;
    
  }
  .how-we-scale .card_sec:hover .icon_card .white-icon {
    position: relative;
    left: -25%;
  }

  
  .union-spin-wrapper .union-spin-image {
      max-width: 160px; /* Scale down spinning image on tablets */
  }

  /* Scale the play button down (e.g., from 60px to 45px) */
  .play-button-overlay {
      width: 45px; 
      height: 45px; 
  }
  .play-button-overlay .play-btn-image {
    max-width: 90px;
    
  }

  #final-cta{
    padding: 0 50px;
    background-position: right;
  }
  .cta-main-title {
    font-size: 40px;
  }

}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-toggle {
    height: 48px;
    margin: 0 -22px;
    transform: translateY(8%);
    width: 88px;
  }
  .hero-toggle::after {
    right: 10px;
    height: 15px;
    width: 15px;
    border: 3px solid rgb(255 255 255);
  }
  .hero-toggle-switch {
    height: 38px;
    width: 38px;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.2s ease-in-out;
  }
  #contactForm .form-group.col-md-3.mb-0.smt_btn {
    min-width: 100%;
  }
  button#btnSubmit {
    margin-left: 0;
    margin-top: 15px;
  }
  #hero {
    padding-top: 90px;
  } 
  #hero .order-2 {
    margin-top: 5%;
  }
  .hero-title .hero-head {
    padding: 10px 0;
  }
  .hero-title {
    margin-bottom: 20px;
  }
  #contact {
    margin: 50px;
  }
  .remarkable-title, #contact h2.big_heading, .why-us-title, .who-we-title, .how-we-scale .big_heading {
    font-size: 32px;
  }
  .net-icon-box .col-md-3 {
    width: 50%;
  }
  .net-icon-box .row div {
    padding: 0 50px;
  }
  .net-icon-box .row .border-after:nth-child(2)::after {
  display: none;
  content: none;
  }
  .net-icon-box .row {
    padding: 0 70px;
  }
  .net-number::after {
    font-size: 65px;
  }
  .net-number h2 {
    font-size: 65px;
  }
  #remarkable {
    margin-top: 50px;
  }
  section.what-we-do {
    margin: 50px 100px 30px 100px;
  }
  div#why_us_cards {
    padding-bottom: 0px;
  }
  .union-spin-wrapper .union-spin-image {
    max-width: 130px;
  }
  .union-spin-wrapper {
    bottom: 3%;
  }
  .work-with-card {
    margin-bottom: 20px;
  }
  .work-with-card .card-icon {
    height: 95px;
    width: 95px;
  }
  .how-we-scale .card_sec {
    padding: 45px 30px 0px;
  }
  .how-we-scale .card_sec .desc_card h2 {
    font-size: 28px;
  }
  .how-we-scale .card_sec:hover .icon_card .white-icon {
    position: relative;
    left: -25%;
  }
  .play-button-overlay .play-btn-image {
    max-width: 70px;
  }
}

/* --- 3. Mobile (max-width: 767px) --- */
@media (max-width: 767px) {
  /* Global */
  

  /* Hero Section */
  #hero .order-2 {
    margin-top: -5%; /* Spacing for the image above the text on mobile */
  }
  .hero-title span:not(.hero-word):not(.hero-toggle) {
    font-size: 22px;
    line-height: 0.1em;
  }
  #hero .h_lead {
    font-size: 18px;
  }
  .hero-word {
    font-size: 70px;
  }
  .hero-text {
    font-size: 18px;
    margin-bottom: 35px;
  }
  .hero-visual {
    max-width: 90%;
    margin-top: 35%;
  }
  #heroImage-main {
    max-width: 290px;
    margin-bottom: 10px;
    margin-right: -55%;
  }
  #heroImage-foreground {
    top: -15%;
    right: 20% !important;
    max-width: 150px;
  }
  #heroImage-bg {
    height: 330px;
    width: 270px;
    top: -30%;
  }
  #hero {
    padding-top: 18%;
    padding-bottom: 0;
  }
  .header-logo {
    max-width: 150px;
  }
  .hero-toggle::after {
    right: 10px;
    height: 15px;
    width: 15px;
    border: 3px solid rgb(255 255 255);
}


  /* Contact */
  #contact
 {
    padding: 40px 20px;
}
  #contact .cta-btn {
    padding: 5px 5px 5px 50px;
  }
  button#btnSubmit {
    margin-top: 15px;
    margin-left: 0;
  }
  .form-width .form-group {
    margin-bottom: 15px !important;
  }
  #contact h2.big_heading {
    margin-bottom: 25px;
    padding-bottom: 0;
  }
  #contact .title__top, .phara{
    font-size:18px;
  }
  .form-width form#contactForm {
    
    padding: 10px;
  }

  /* Net Icon Box */
  .net-icon-box .row {
    padding: 0 15px; /* Minimal side padding */
  }
  .net-icon-box .row div {
    padding: 0 20px;
  }
  .net-icon-box h2 {
    font-size: 40px;
  }
  .net-icon-box p {
    font-size: 14px;
  }
  .net-icon-box .row .border-after:nth-child(2) {
    padding: 0 30px;
  }
  .net-number { font-size: 28px; }
  .net-number::after {
    font-size: 40px;
  }
  .net-icon-box .row .border-after:nth-child(2)::after {
  display: none;
  content: none;
  }

  
  /* Remarkable Section */
  #remarkable {
    padding: 35px 20px !important;
    margin-top: 0px;
  }
  .remarkable-title, #contact h2.big_heading, .why-us-title, .who-we-title, .how-we-scale .big_heading {
    font-size: 22px;
    font-weight: 500;
    
  }
  .remarkable-title {
    padding-bottom: 30px;
  }
  .remarkable-highlight {
    padding: 10px 55px !important;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 35px;
  }
  .remarkable-problem-2, .remarkable-solution {
    line-height: 1.3em;
    font-weight: 600;
  }
  .remarkable-solution {
    margin-bottom: 35px;
}


  
  .cta-btn {
    font-size: 16px;
    padding: 5px 5px 5px 20px;
  }
  .cta-btn .fa-arrow-right {
    font-size: 20px;
    padding: 8px 10px;
    margin-left: 20px !important
  }
  .big_heading{
    padding-bottom: 0;
    margin-bottom: 40px;
  }
  
  .how-we-scale .cta-btn {
    max-width: 245px;
  }

  /* Rating Section */
  .rating h1 {
    font-size: 15px;
    font-weight: var(--fw-medium);
  }

  /* Who We Work With Section */
  .work-with-card .card-text {
    font-size: 14px;
    max-width: 100%;
  }
  .work-with-card .card-icon {
    height: 50px;
    width: 50px;
    border-radius: 8px;
  }
  .work-with-card .order-2 {
    text-align: left; /* Align text back to left on small screen stack */
  }
  .work-with-card {
    flex-direction: row; 
    padding-left: 20px;
    margin-bottom: 20px;
  }
  #who-we-work-with .container-w1580 {
    padding-top: 30px !important;
    min-width: 100%;
  }
 .work-with-card .card-icon img {
    max-height: 25px;
    max-width: 25px;
  }
  .who-we-title {
    padding-bottom: 10px;
  }
  .who-we-subtitle {
    padding-bottom: 15px !important;
  }

  section.what-we-do {
  margin: 0px;
  }
  .what-we-do .card_sec .desc_card h2 {
    font-weight: var(--fw-semibold);
    margin-bottom: 10px;
  }
  .what-we-do .card_sec .icon_card .white-icon {
    top: 25%;
  }
  .what-we-do .card_sec .icon_card {
    margin-bottom: 10px;
  }
  .what-we-do .card_sec
  {
    min-height: 100px;
    padding: 30px 30px;
  }
  .what-we-do-process {
    margin: 0 20px 15px 20px;
  }
  .what-we-do .icon_card img{
    max-width: 45px;
  }
  .what-we-do .card_sec .desc_card p , .what-we-do .card_sec .desc_card h2 {
    font-size: 16px;
  }


  #why-us .container-w1580 {
    padding: 30px 15px 15px 15px !important;
  }

 .why-us-card {
  padding: 10px 14px;
  max-width: 100%;
 }
 .how-we-scale .card_sec .icon_card img {
    max-height: 45px;
    max-width: 45px;
}
.how-we-scale .card_sec:hover .icon_card .white-icon {
    left: 8%;
}
 .why-us-text b {
    display: block;
}
 .why-us-title {
    padding-bottom: 10px;
 }
 .why-us-text {
  font-size: 16px;
  font-weight: 400;
 }

/* how we scale */
.how-we-scale .container-fluid {
  padding: 0px 20px 15px 20px !important;
}
.how-we-scale-process .col-md-4 {
    padding-bottom: 20px;
    margin-bottom: 0px;
}
.scale_together_btn {
    margin-top: 25px;
}
section.how-we-scale
 {
    padding: 25px 0;
 }
 .how-we-scale .card_sec{
  padding: 20px 25px 10px;
  margin: 0;
  border-radius: 20px;
 }
 .how-we-scale .card_sec .desc_card h2{
  margin-bottom: 5px;
  font-size: 16px;
 }
 .how-we-scale .card_sec .desc_card p {
  font-size: 16px;
 }

  /* Further scale the spinning text wrapper down */
  .union-spin-wrapper .union-spin-image {
      max-width: 70px; /* Scale down spinning image for mobile */
  }

  /* Further scale the play button down (e.g., from 45px to 35px) */
  .play-button-overlay {
      width: 35px; 
      height: 35px; 
  }
  
  /* Slightly adjust bottom position for smaller screens if needed */
  .union-spin-wrapper {
      bottom: 4%; 
  }
  

  .rating-list { flex-direction: column; gap: 0.75rem; }
  .rating { padding: 1rem 0; }
  .rating-number, .rating-label { display: block; font-size: 1.4rem; } 
  .rating-number::after { font-size: 1em; }
  .rating-label { margin-left: 0; margin-top: 0; }
  .rating-item { padding: 0; }
  .rating-item:not(:first-child)::before { content: none; }
  .hero-toggle {
    height: 48px;
    margin: 0 -22px;
    transform: translateY(8%);
    width: 88px;
  }
  .hero-toggle-switch {
    height: 38px;
    width: 38px;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.2s ease-in-out;
  }

  /* target active position on tablet/mobile */
  .hero-toggle.active .hero-toggle-switch {
    left: 44px; /* 88 - 6 - 38 = 44 */
  }
  .rating-content {
    display : flex;
  }

  #final-cta {
    margin-top: 0px;
    border-radius: 70px 50px 0px 0px;
    background-repeat: no-repeat;
    background-position: center right;
  }
  
  #remarkable .cta-btn {
    padding: 5px 5px 5px 10px;
  }
  #final-cta .container-w1580 {
    padding-bottom: 0px !important;
  }
  .cta-main-title{
    font-size: 35px;
    font-weight: 500;
  }
  .cta-subtitle{
    font-size: 16px;
    font-weight: 400;
  }
}