
    :root{
        --bg-1:#0d1322; --bg-2:#0b0f1b; --card:#11182a;
        --text:#eaf0ff; --muted:#9aa4b2; --primary:#dc1c2e;
        --accent:#7f64ff; --accent-2:#9a57ff; --radius:18px;
        --shadow-md:0 10px 30px rgba(0,0,0,.35);
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
        margin:0; color:var(--text);
       font-family: Montserrat;
        background: var(--bg-2);
        overflow-x:hidden;
    }
    a {
    text-decoration: none;
    color: inherit;
    }

    /* --- MODIFICATION START: New Header/Nav Styles --- */
    .main-header { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 15px 5%;
        background: rgba(13, 19, 34, 0.7); 
        backdrop-filter: blur(10px); 
        z-index: 1000; 
        border-bottom: 1px solid rgba(234, 240, 255, 0.1); 
    }
    .main-header a img {
        width: 140px;
    DISPLAY: flex;
    ALIGN-ITEMS: center;
    JUSTIFY-CONTENT: CENTER;
    }
    .main-header nav {
        height: 100%;
    }
    .main-header .links {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        height: 100%;
    }
    .main-header .links > li {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }
    .main-header .links > li > a {
        display: flex;
        align-items: center;
        padding: 5px 15px;
        color: var(--muted);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }
    .main-header .links > li > a:hover {
        color: var(--text);
    }
    .main-header .links > li > a img {
        height: 30px; /* Size for GIF buttons */
    }
    .main-header .links .arrow {
        font-size: 18px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    /* Sub-menu styles (Desktop) */
    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-1);
        border: 1px solid rgba(234, 240, 255, 0.1);
        border-radius: 0 0 8px 8px;
        list-style: none;
        padding: 10px 0;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
    .sub-menu li {
        width: 100%;
    }
    .sub-menu a {
        display: block;
        padding: 10px 20px;
        color: var(--muted);
    }
    .sub-menu a:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.05);
    }

    /* Desktop Hover Logic */
    .links > li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .links > li:hover > a .arrow {
        transform: rotate(180deg);
    }

    /* Hamburger (always present, shown on mobile) */
    .hamburger { 
        display: none; 
        flex-direction: column; 
        gap: 5px; 
        cursor: pointer; 
        background: transparent; 
        border: none; 
        z-index: 1001; 
    }
    .hamburger span { 
        display: block; 
        width: 25px; 
        height: 3px; 
        background-color: var(--text); 
        border-radius: 3px; 
        transition: all 0.3s ease; 
    }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Responsive Mobile Styles */
    @media (max-width: 900px) {
        .main-header nav { 
            position: fixed; 
            top: 60px; /* Height of the header */
            right: -100%; 
            width: 70%; 
            height: calc(100vh - 48px); 
            background: var(--bg-1); 
            transition: right 0.4s ease-in-out; 
            overflow-y: auto;
            border-left: 1px solid rgba(234, 240, 255, 0.1);
        }
        .main-header nav.active { 
            right: 0; 
        }
        .main-header .links {
            flex-direction: column;
            align-items: center;
            height: auto;
            width: 100%;
            margin-top: 52px;
        }
        .main-header .links > li {
            width: 90%;
            flex-direction: column;
            align-items: flex-start;
            border-bottom: 1px solid rgba(234, 240, 255, 0.1);
        }
        .main-header .links > li > a {
            /* Make the main link clickable area larger */
            width: 100%;
            justify-content: space-between; /* Puts arrow on the far right */
            padding: 15px 20px;
        }
        .main-header .links > li > a img {
            height: 35px;
            padding: 5px 0;
        }

        /* Mobile Sub-menu */
        .sub-menu {
            position: relative; /* Un-do absolute positioning */
            width: 100%;
            top: 0;
            border: none;
            border-radius: 0;
            background: rgba(0,0,0,0.2);
            padding: 0;
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            display: none; /* Hide by default, show with JS */
        }
        .sub-menu a {
            padding-left: 40px; /* Indent sub-items */
        }

        /* JS-driven class to show sub-menu */
        .main-header .links > li.show-sub-menu .sub-menu {
            display: block;
        }
        .main-header .links > li.show-sub-menu > a .arrow {
            transform: rotate(180deg);
        }
        
        .hamburger { 
            display: flex; 
        }
    }
    /* --- MODIFICATION END: New Header/Nav Styles --- */


    /* --- HERO SECTION --- */
    .hero{ position:relative; padding:120px 0 12%; overflow:clip; isolation:isolate; background: radial-gradient(1200px 600px at 20% -10%, #1b2454 0%, transparent 60%), radial-gradient(900px 500px at 85% -20%, #1b365b 0%, transparent 55%), linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
    .container{width:min(1250px,90%);margin-inline:auto}
    .eyebrow{color:var(--muted);font-weight:500;letter-spacing:.2px;margin-bottom:16px;font-size: 1.5rem;}
    .title{font-size:clamp(32px,6vw,72px);line-height:1.02;font-weight:900;margin:0 0 16px;max-width:22ch;white-space: normal;margin: 32px 0;}
    .dynamic-text-wrapper { display: inline-block; height:87px;}
    .dynamic-text-wrapper .text-item { display: none; white-space: nowrap; animation: fade-in 1s ease-in-out; }
    .dynamic-text-wrapper .text-item.active { display: inline; }
    .third-line { white-space: nowrap; line-height: 87px;}
    @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
    .text-successful, .text-remax { font-family: "Just Another Hand", cursive; color: #f39c12; font-weight: 700; line-height: 87px; letter-spacing: 5px;}
    .gradient-text{background:linear-gradient(90deg,#fff,#a0b3ff 40%,#cbb6ff 70%,#fff);-webkit-background-clip:text;background-clip:text;color:transparent}
    .subtitle{color:var(--muted);font-size:clamp(16px,2.2vw,22px);max-width:56ch;margin:0 0 32px}
    .franchise-state{display: flex; width: 90%;margin-top: 25px;}
    .franchise-stat-images{width: 20%;display: flex;align-items: center;justify-content: flex-start;}
    .franchise-stat-images img{width: 60%;}
    .cta-row{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
    .Journeycta-row,.Opportunitycta-row{    justify-content: center;margin-top: 20px;}
    .Journeycta-row{margin-top: 35px; }
    .btn{display:inline-flex;align-items:center;gap:10px;padding:16px 22px;border-radius:999px;font-weight:700;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
    .btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));box-shadow:0 10px 25px rgba(154,87,255,.35);color:#fff}
    .Opportunitycta-row .btn-primary{background: linear-gradient(135deg, #0b0f1b, #4b4f5a); box-shadow: 0 10px 25px rgb(75 78 88);}
    .Journeycta-row .btn-primary{box-shadow:none;}
    box-shadow: 0 10px 25px rgb(0 34 85 / 34%);
    color: #fff;}
    .btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(154,87,255,.45)}
    .Opportunitycta-row .btn-primary:hover{box-shadow: 0 14px 32px rgb(18 22 34 / 58%);}
    .btn-ghost{border:1px solid rgba(255,255,255,.14);color:#e6ecff;background:rgba(255,255,255,.04)}
    .btn-ghost:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25);background:rgba(255,255,255,.07)}
    .btn svg{width:18px;height:18px}
    .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:25px}
    .horizontal-scroll-section {
    padding-top: 4rem;
    overflow-x: hidden;
}
.horizontal-scroll-section .section-title {
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}
.pin-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.scroll-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    padding-left: 34vw;
    gap: 4rem;
    height: 35vh;
    margin-top: 6rem;
}
.Journeycta-row{margin-top: 100px;}
.testimonial-card {
    flex-shrink: 0;
    width: 450px;
    max-width: 80vw;
    background: #1a1f35;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem;
    margin-right: 2rem;
    box-shadow: var(--shadow-md);
    color: var(--muted);
    position: relative;
}
.testimonial-card::before {
    content: attr(data-number);
    position: absolute;
    top: -50px;
    left: -40px;
    font-size: 125px;
    font-weight: 900;
    color: rgba(167, 139, 250, 0.15);
    line-height: 1;
    z-index: 0;
}
.testimonial-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}
.testimonial-card .duration {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    display: block;
}
.testimonial-card p {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}
.testimonial-card strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}
.remax-not-everyone{background:#FFF;    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;}
.remaxeveryonesec1{display: flex;flex-direction: column;align-items: center;    width: 83%;}
.remaxeveryonesec1 img{width:100%;}
.remaxsec1{display: flex;}
.remaxsec2{display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center}
.remaxsec2text{width: 50%;}
.remaxsec2textline{width: 90%;font-size: 30px;color:#000;}
.remaxsec2textline span{    position: relative;
    display: inline-block;
    margin-bottom: 0; z-index: 2;font-weight:800;}
 .remaxsec2textline span::before{    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: 0;
    background: linear-gradient(180deg, #ff384a38 -20%, #f0c06f 100%);
    z-index: -1;
    transform: translateY(-94%);
    padding: 0 0.1em;
    clip-path: polygon(0 0, 97% 32%, 100% 100%, 0 100%);
    BORDER-RADIUS: 10PX;}   
.remaxsec2video{width: 32%;display: flex;justify-content: flex-end;}
.remaxsec2video video{width:90%; }
.player .vp-video-wrapper video {border-radius: 10px;}

/* --- MODIFICATION END: New Footer CSS --- */
      /* CTA Section */
        .cta-section {
            min-height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 120px 8%;
            background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
            position: relative;
        }

        .cta-title {
            font-size: 4rem;
            margin-bottom: 3rem;
            position: relative;
            z-index: 1;
        }

        .cta-bg-text {
            position: absolute;
            top: 80px;
            left: 8%;
            font-size: 8rem;
            font-weight: 900;
            color: rgb(255 255 255 / 17%);
            letter-spacing: -0.05em;
        }

        .cta-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0;
           width: 100%;
        }

        .cta-btn {
            padding: 20px 50px;
            font-size: 1.25rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.02);
            text-align: center;
        }

        .cta-btn:hover {
            background: #003da5;
            box-shadow: 0 15px 50px rgba(0, 61, 165, 0.4);
            border-color: #003da5;
        }
.footer-container {
    background-color: var(--bg-1);
    padding: 0 5%;
    border-top: 1px solid rgba(234, 240, 255, 0.1);
    color: var(--muted);
}

.footer-cta-bar {
    background: var(--bg-2);
    padding: 20px 30px;
    margin: 40px 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.conversation-sec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.conversation-sec .textsec p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.formbtnsec a {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(154, 87, 255, 0.35);
}

.formbtnsec a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(154, 87, 255, 0.45);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-address .address-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-address img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    margin-top: 5px;
}

.footer-address p {
    margin: 0;
    line-height: 1.7;
}

.footer-address .phone-link {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
}
.footer-address .phone-link:hover {
    color: var(--accent);
}

.social-wrapper {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon .tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 140%;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.facebook:hover { background: #3b5998; }
.social-icon.instagram:hover { background: #e1306c; }
.social-icon.envelope:hover { background: #aaaaaa; }
.social-icon.youtube:hover { background: #ff0000; }
.social-icon.linkedin:hover { background: #0077b5; }


.footer-disclaimer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(234, 240, 255, 0.1);
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-disclaimer .youngace {
    font-size: 0.9rem;
    color: var(--text);
}
      @media (max-width:1370px){
          .hero {padding: 60px 0 64px;} 
          .eyebrow{margin: 17px 0 0;} 
          .title {white-space: normal; margin: 16px 0 16px;font-size: clamp(32px, 6vw, 55px);}
          .scroll-container{margin-top: 3rem;}
          .testimonial-card{padding: 1rem;}
          .testimonial-card p{font-size: 1rem;}
          .cta-btn {padding: 15px 10px;}
          .footer-main{gap: 33px;}
          .remaxsec2textline {width: 90%;font-size: 20px;color: #000;}
          .Journeycta-row {margin-top: 50px;}
          .remaxsec2video video{width:80%;}
           .franchise-state{margin-top: 15px;}
      }
    @media (max-width:1024px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
    .stat-card{ position:relative;background:linear-gradient(180deg,#0f1629 0%,#0b1120 100%);border:1px solid rgba(255,255,255,.06);border-radius:var(--radius); padding:16px;box-shadow:var(--shadow-md);overflow:hidden;isolation:isolate; transform:translateY(30px);opacity:0;display: flex;align-items: flex-start;}
    .stat-card::after{ content:"";position:absolute;inset:auto -30% -40% -30%;height:120%; background:radial-gradient(500px 140px at 50% 100%,rgba(127,100,255,.15),transparent 60%); filter:blur(8px);z-index:-1 }
    .stat-top{width: 35px;display: inline;align-items:center;gap:12px;color:var(--primary);font-weight:800;font-size:clamp(28px,4vw,28px)}
    .stat-top img{width:30px;height:30px}
    .stat-label{color:var(--muted);margin:0 0 0 8px;font-weight:600;letter-spacing:.2px;font-size:18px;display: flex;flex-direction: column;}
    .parallax-wrap{position:absolute;inset:-20% -10% -20% -10%;pointer-events:none;z-index:0}
    .blob{ position:absolute; border-radius:50%; filter:blur(42px); width:clamp(200px,28vw,560px); aspect-ratio:1/1; opacity:.65; mix-blend-mode:screen; will-change:transform; background:radial-gradient(circle at 30% 30%,rgba(127,100,255,.65),rgba(30,45,140,.25) 60%,transparent 70%); }
    .blob.b1{ top:10%; left:8%; }
    .blob.b2{ bottom:6%; right:10%; background:radial-gradient(circle at 30% 30%,rgba(220,28,46,.55),rgba(120,20,35,.2) 60%,transparent 70%); }
    .blob.b3{ top:55%; left:48%; width:clamp(260px,34vw,640px); background:radial-gradient(circle at 30% 30%,rgba(122,109,255,.6),rgba(15,22,41,.2) 60%,transparent 70%); }
    .blob.follow{ width:clamp(160px,22vw,420px); filter:blur(36px); background:radial-gradient(circle at 40% 40%,rgba(151,127,255,.55),rgba(30,45,140,.18) 60%,transparent 70%); }
 
    /* --- ANIMATION SECTION (Simplified) --- */
    .animation-section { position: relative; height: 100vh; width: 100%; overflow: hidden; background-color: #f7f7f7; }
    .ball { z-index: 4; } .revealed-content { z-index: 3; } .trail-background { z-index: 2; } .final-text { z-index: 8; }

    .trail-background { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 300px; height: 0; background: linear-gradient(160deg, var(--accent), var(--primary)); opacity: 0; border-radius: 0 0 150px 150px; }
   .ball { 
    position: absolute; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%) translateY(-170px); 
    width: 300px; 
    height: 300px; 
    opacity: 0; 
}
    .ball img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'contain' to ensure the whole logo fits */
    /* If your logo image isn't already a circle, add this line: */
    /* border-radius: 50%; */ 
}
    .revealed-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); font-size: 1.8rem; font-weight: 500; opacity: 0; }
    .revealed-content span { display: block; padding: 10px; opacity: 0; transform: translateY(20px); }
    .final-text { position: absolute; bottom: 10vh; left: 50%; transform: translateX(-50%); color: var(--text); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-align: center; opacity: 0; white-space: nowrap; border-radius:10px; border:1px solid #fff;padding: 10px;}
    a{text-decoration:none;}
    .app-video-frame{ position:absolute; inset:0; margin:auto; width:28vmin; height:28vmin; opacity:0; border-radius:20px; overflow:hidden; z-index:4; }
    .app-video-iframe{ position:absolute; inset:0; width:100%; height:70%; border:0;top: 19%;border-radius: 14px; }

    /* --- FORM SECTION --- */
    .maincontainer { background: #002255; padding: 2rem 0; position: relative; }
    .formcontainer{ width:min(1140px,90%); margin-inline:auto; }
    .mb3container { background: #002255; border-radius: 8px; padding:0; position: relative; overflow: hidden; }
    .mb3container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #d4af37; }
    .mb3container::after {content: '';position: absolute;bottom: 0px;left: 0;right: 0;height: 3px;background: #d4af37;}
    .formheadline { text-align: Start; font-size: clamp(1.8rem, 2.5vw, 2.2rem); color: #ffffff; margin-bottom: 3rem; font-weight: 700; line-height: 1.4;  letter-spacing: 0.5px; }
    .mb3b1 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom:20px;}
    .quote { font-style: normal; color: #ffffff; font-size: 2.8rem; font-weight: 700; line-height: 1.3; margin-bottom: 2rem; position: relative; padding: 0; margin-top: 0;}
    .quote span { font-size: 1rem; position: absolute; top: 10%; right: 35%; }
    .mb3b1b1img{position: relative;}
    .mb3b1b1img img { max-width: 280px; height: auto; z-index: 4; position: absolute;     transform: rotate(26deg);left: 22rem;bottom: -8rem; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3)); }
    .mb3para { margin-top: 2rem; color: #f0f0f0; font-size: 1.1rem;  line-height: 1.7; }
    .mb3para2 p {  font-size: 0.95rem; color: #b0b0b0; margin-top: 1.5rem; }
    .tag-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
    .tag { display: inline-block; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; text-align: left; padding: 12px 20px; border-radius: 6px; font-size: 15px; cursor: default; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
    .tag:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
    .form-cta-buttons { display: none;}
    .cta { padding: 16px 30px; font-size: 16px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; transition: 0.3s ease; margin-bottom: 1rem; letter-spacing: 0.5px; }
    .cta-yellow { background: #d4af37; color: #001c45; box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
    .cta-yellow:hover { background: #c4a032; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4); }
    .cta-outline { background: transparent; border: 1.5px solid #fff; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
    .cta-outline:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); }
    .mb3b1b2form { background: #ffffff; border: none; padding: 30px; border-radius: 8px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); }
    .formsec h3 { color: #001c45; font-size: 1.6rem; margin-bottom: 0.6rem;margin-top: 0;  font-weight: 700; }
    .formsec p { color: #555; font-size: 1.05rem; margin-bottom: 2rem;  }
    .formdatainput { display: flex; flex-direction: column; gap: 1.4rem; }
    .datalabel input, .datalabel select, .datalabel textarea { width: 100%; padding:0.5rem; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 1rem; transition: all 0.3s ease; background: #f9f9f9; color: #333;  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); }
    .datalabel input::placeholder, .datalabel textarea::placeholder { color: #999; }
    .datalabel input:focus, .datalabel select:focus, .datalabel textarea:focus { outline: none; border-color: #001c45; box-shadow: 0 0 0 3px rgba(0, 28, 69, 0.1); background: #fff; transform: translateY(-2px); }
    .nextstepbtn { background: #001c45; color: #ffffff; border: none; padding: 1.3rem 2rem; border-radius: 6px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; margin-top: 1.8rem; width: 100%;  text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 12px rgba(0, 28, 69, 0.2); }
    .nextstepbtn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 28, 69, 0.3); background: #002255; }
    
    /* Why Choose Section */
    .why-choose { background: #e0e0e0; padding: 2rem 0; }
    .section-header { margin-bottom: 3rem; }
    .section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: #000; font-weight: 400;  }
    .section-titlewhyremax{font-family: 'Montserrat';}
    .section-subtitle { font-size: clamp(1rem, 1.5vw, 1.2rem); color: #333; max-width: 700px; margin: 0 auto; line-height: 1.6; }
    .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
    .feature-card { padding: 2rem; border-radius: 1rem;background: #fff;box-shadow: 1px 1px 20px 2px #d1d1d1; border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; text-align: left; }
    .feature-card:hover { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); transform: translateY(-5px); }
    .feature-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #d4af37; }
    .feature-card h3 { font-size: 1.4rem; font-weight: 600; color: #000; margin-bottom: 0.75rem;  }
    .feature-card p { color:#000; font-weight: 400; line-height: 1.6;  font-size: 0.95rem; }

    .remaxagent-head{
        position: relative;
        z-index: 10;
        text-align: center;
        width: 100%;
        padding: 0 3rem 2%;
    }

    /* Overlay Image Section */
    .remaxagent-head h3 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; color: #ffffff; font-weight: 700; line-height: 1.3;  }
    .highlighted-text span { color: #d4af37; }
    .remaxagent-head p { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, 0.8); font-weight: 400;  background-color: transparent; margin-top: 1rem; }
    #remax_agent { position: relative; height: 100vh; overflow: hidden; }
    #overlay { position: absolute; height: 100%; width: 100%; background: linear-gradient(135deg, rgba(9, 19, 37, 0.3) 0%, rgba(0, 61, 165, 0.2) 100%); z-index: 1; }
    #remax_agent img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
    .imgdskview { display: block; } .imgmobview { display: none; }
    .pin-wrapper .section-title{display: inline;}
    @media (max-width: 900px) {
        .franchise-state {width: 100%;}
        .franchise-stat-images {width: 25%;}
        .franchise-stat-images img {width: 100%;}
}
    @media (max-width: 768px) {
        .remaxeveryonesec1 img{width: 180%;}
    .eyebrow{font-size: .7rem;}
    .subtitle {font-size: clamp(14px, 2.2vw, 22px);}
    .stat-label {font-size: 16px;}
    .remaxsec2text{width: 100%;display: flex;flex-direction: column;align-items: center;}
    .remaxsec2textline{width: 90%;font-size: 18px;}
    .remaxsec2video{width: 100%; justify-content: center;}
    .formheadline{text-align: center;font-size: clamp(2rem, 2.5vw, 2.2rem);margin-bottom: 0rem; font-family: serif;}
    .quote{margin-top: 25px;font-size: 20px;}
    .imgdskview { display: none; } .imgmobview { display: block; }
    .mb3b1 { grid-template-columns: 1fr; }
    .mb3b1b1img img {transform: rotate(29deg); left: 0; bottom: -5rem;position: absolute;display: block; margin: 2rem auto 0; max-width: 200px; }
    .mb3b1b2form{padding: 12px;}
    .section-title{display: flex;flex-wrap: wrap;font-weight: 400;}
    .section-title span{font-weight: 900;}
    .form-cta-buttons{display:none;}
    .tag{padding: 8px 5px;border-radius: 6px;font-size: 11px;}
    .third-line {line-height: 0;}
    .cta-row{justify-content: space-evenly;}
    .btn{   gap: 5px;padding: 14px 11px;font-size: 13px;border-radius: 999px;font-weight: 500;}
    .remaxagent-head{text-align: left;width: 100%;display: flex;flex-wrap: wrap;justify-content: center;padding: 75px 5% 1rem 5%;}
    .remaxagent-head h3{font-size: clamp(1.2rem, 6vw, 2rem);}
    .remaxagent-head p {font-size: clamp(0.7rem, 4vw, .7rem);margin-top: 0;        text-align: start;
        width: 100%;}

.title{font-size: clamp(23px, 5vw, 55px);}
.dynamic-text-wrapper{height: 0;}
.text-successful,.text-remax{line-height:0;}
.remaxeveryonesec1{overflow: hidden; width: 90%;margin-top: 20px;} 
.remaxsec2video video {width: 90%;}
.mb3para {display: none;}
    /* Horizontal scroll section on Mobile */
    .horizontal-scroll-section {padding-top: 2rem;}
    .pin-wrapper {
        height: auto !important; 
    }
    .horizontal-scroll-section .section-title {
        margin-bottom: 2rem;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .scroll-container {
        flex-direction: column; 
        width: 100%;
        padding-left: 0; 
        height: auto; 
        margin-top: 1rem;
        gap: 2rem; 
    }
    .testimonial-card {
        width: 90%; 
        max-width: 90%;
        margin: 0 auto; 
        padding: 1.5rem; 
    }
    .testimonial-card::before {
        font-size: 80px; 
        top: -20px;
        left: -15px;
    }
    .testimonial-card h3 {
        font-size: 1.2rem; 
    }
    .testimonial-card p {
        font-size: 1rem; 
        line-height: 1.6;
    }
.app-video-iframe {
    height: 80%;
    border: 0;
    top: 11%;
    border-radius: 14px;
}
    }
    @media (max-width:400px){    .title {
        font-size: clamp(20px, 5vw, 55px);
    }}
    /* --- FOOTER --- */
    /* --- MODIFICATION START: New Footer CSS --- */


@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr; /* Stack all columns */
    }
}

@media (max-width: 768px) {
    .conversation-sec {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-main {
        gap: 30px;
    }
    .footer-address .address-content {
        flex-direction: column; /* Stack image on top of text */
        align-items: flex-start;
    }
}


        /* Responsive Design */
        @media (max-width: 1200px) {
            .step-grid {
                gap: 120px;
            }

            .step-number {
                font-size: 14rem;
            }

            .step-item.right .step-number {
                right: 10%;
            }

            .step-item.left .step-number {
                left: 10%;
            }
        }

        @media (max-width: 1024px) {
            .journey-hero-bg-text {
                font-size: 8rem;
            }

            .journey-hero-content h1 {
                font-size: 3.5rem;
            }

            .step-grid {
                grid-template-columns: 1fr;
                gap: 50px;
            }

            .step-item {
                min-height: 60vh;
            }

            .step-item.left .step-grid {
                direction: ltr;
            }

            .step-number {
                font-size: 10rem;
                opacity: 0.5;
            }

            .step-item.right .step-number,
            .step-item.left .step-number {
                right: 5%;
                left: auto;
                color: rgb(255 255 255 / 40%);
                text-shadow: -2px -2px 0px #79585896;

            }

            .step-text h2 {
                font-size: 2.2rem;
            }

            .step-text p {
                font-size: 1rem;
            }

            .cta-buttons {
                grid-template-columns: 1fr;
            }

            .cta-btn {
                padding: 50px 30px;
            }

            .cta-title {
                font-size: 3rem;
            }
        }

        @media (max-width: 768px) {
            .journey-hero-section {
                min-height: 35vh;
                padding: 0 5%;
            }
            .timeline-line,.timeline-dot {display: none;}
            .journey-hero-bg-text {
                font-size: 5rem;
                top: 10%;
                left: 5%;
            }

            .journey-hero-content h1 {
                font-size: 2.5rem;
            }

            .journey-hero-content p {
                font-size: 1rem;
            }

            /* Hide scrolling balloon on mobile */
            .balloon-scroll {
                display: none;
            }

            .step-item {
                padding: 60px 5%;
                min-height: auto;
            }

            .step-grid {
                gap: 40px;
            }

            .step-number {
                font-size: 8rem;
            }

            .step-text h2 {
                font-size: 1.8rem;
                margin-bottom: 1.2rem;
            }

            .step-text p {
                font-size: 0.95rem;
            }

            .step-image {
                margin: 0 auto;
                max-width: 100%;
            }

            .step-image img {
                height: 250px;
                width: 100%;
            }
            .cta-section{
                padding: 80px 5%;
            }

            .cta-title {font-size: 2rem;
        text-align: start;
            }

            .cta-bg-text {
                font-size: 5rem;
            }

            .cta-btn {
                padding: 29px 11px;
                font-size: 1.1rem;
            }

            /* Mobile scroll animations */
            .step-item {
                opacity: 0;
                transform: translateY(50px) scale(0.95);
                transition: opacity 0.8s ease, transform 0.8s ease;
            }

            .step-item.active {
                opacity: 1;
                transform: translateY(0) scale(1);
            }

            .step-image {
                opacity: 0;
                transform: translateX(-30px);
                transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
            }

            .step-item.active .step-image {
                opacity: 1;
                transform: translateX(0);
            }

            .step-text {
                opacity: 0;
                transform: translateX(30px);
                transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
            }

            .step-item.active .step-text {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @media (max-width: 480px) {
            .journey-hero-bg-text {
                font-size: 3.5rem;
            }

            .journey-hero-content h1 {
                font-size: 2rem;
            }

            .step-number {
                font-size: 6rem;
            }

            .step-text h2 {
                font-size: 1.5rem;
            }

            .step-image img {
                height: 200px;
            }

            /* Enhanced mobile animations for smaller screens */
            .step-item {
                transform: translateY(40px) scale(0.97);
            }
        }
        .linkbutton{
    background-color: #dc1c2e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}
.linkbutton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100px;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, transparent, #ffffff4f, transparent);
    animation: lineefect 2.5s 
ease-in-out infinite;
    transform: skewX(10deg);
}
.linkbutton  p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    width: 100%;
    height: 100%;
    margin: 0;
}
@keyframes lineefect{
    0% {
    left: -140px;
}

50% {
    left: 150px;
}
100% {
    left: -150px;
}
}