:root {
    /* Refined Color Palette: White, Yellow, Black, Grey */
    --black: #000000;
    --black-soft: #000000;
    --gold: #F2AF17;
    --gold-light: #F2AF17;
    --white: #ffffff;
    --off-white: #ffffff;
    --text-dark: #000000;
    --text-muted: #6D7176;
    --text-light: #ffffff;
    --accent-glow: rgba(242, 175, 23, 0.2);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium Grain Texture */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gold);
    z-index: 10002;
    transition: width 0.1s ease;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.accent-gold {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader {
    position: relative;
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gold);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Navigation & Logos */
.nav-logo {
    height: 50px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 2rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--black);
    transition: var(--transition-fast);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: var(--transition-smooth);
        backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }
}

.nav-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.nav-cta {
    background: var(--black);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700 !important;
    opacity: 1 !important;
}

.nav-cta:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: left;
    max-width: 800px;
    z-index: 5;
}

.hero .container {
    margin-left: 0;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 3.5rem;
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.8;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Sections General */
.section-tag {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-tag.tag-large {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

/* About Section Refined */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: var(--black-soft);
}

.about-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 2s ease-out;
    transform: scale(1.1);
    filter: brightness(0.85);
}

.slider-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-nav .dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
}

.experience-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    z-index: 10;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number-box {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 0.25rem;
}

.stat-count {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.stat-symbol {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.8;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Residential Mastery Sub-section */
.residential-mastery-card {
    background: var(--white);
    padding: 5rem 2rem;
    margin-top: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.02);
}

.section-subtitle-border {
    color: var(--black);
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--gold);
    padding-left: 1.5rem;
    line-height: 1;
    letter-spacing: 1px;
}

.rm-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: center;
}

.rm-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
}

.rm-title {
    font-size: 2.2rem;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.rm-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.rm-list {
    list-style: none;
    padding: 0;
}

.rm-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.rm-list-icon {
    width: 22px;
    height: 22px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-list-icon i {
    color: var(--white);
    font-size: 0.75rem;
}

.rm-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    position: relative;
    height: 520px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--black);
    transition: var(--transition-smooth);
    border: 1px solid rgba(242, 175, 23, 0.2);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    /* Consistently dark to make white text pop */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 1;
}

.service-card:hover .service-image-bg {
    filter: brightness(0.35);
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 3;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(242, 175, 23, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(15deg);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 700;
}

.service-content ul {
    opacity: 1;
    max-height: none;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: none;
}

.service-content li {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 400;
}

.service-content li::before {
    content: '\f058';
    /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gold);
    font-size: 0.9rem;
}



/* Experts & Parallax */

/* Experts & Parallax */
.parallax-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.experts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.text-white {
    color: var(--white);
}

.text-light {
    color: #6D7176;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tech-feature {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--gold);
}

.tech-text h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.tech-text p {
    color: var(--white);
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    background: var(--off-white);
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    display: flex;
    align-items: center;
}

.testimonials-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
}

.testimonial-card {
    width: 480px;
    /* Stable width for ticker */
    min-width: 480px;
    flex-shrink: 0;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(242, 175, 23, 0.1);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author .name {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 0.2rem;
}

.testimonial-author .title {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 1px solid rgba(242, 175, 23, 0.2);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

@media (max-width: 992px) {
    .testimonial-card {
        width: calc(100vw - 4rem);
        min-width: calc(100vw - 4rem);
    }

    .prev-btn {
        left: -20px;
    }

    .next-btn {
        right: -20px;
    }
}

/* FAQ Section */
.faq {
    background: #ffffff;
    /* matches reference colors */
}

.faq-reveal-wrapper {
    margin-top: 3rem;
    position: relative;
    z-index: 5;
}

#toggleFaqBtn {
    padding: 1.2rem 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#toggleFaqBtn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(242, 175, 23, 0.2);
}

#toggleFaqBtn i {
    margin-left: 12px;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#toggleFaqBtn.active i {
    transform: rotate(180deg);
}

.faq-container-outer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    margin-top: 0;
}

.faq-container-outer.active {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 4rem;
}

.faq-container-inner-scroll {
    min-height: 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.faq-item {
    background: #111;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--text-muted);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(242, 175, 23, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    font-family: var(--font-heading);
    transition: var(--transition-fast);
    gap: 1.5rem;
    /* Ensure space between text and icon */
}

.faq-question span {
    flex: 1;
    /* Allow text to wrap correctly */
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question i {
    color: var(--gold);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    background: rgba(242, 175, 23, 0.1);
    min-width: 35px;
    /* Prevent shrinking */
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    background: var(--gold);
    color: var(--white);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    padding: 0 2rem 2rem 2rem;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-answer-inner {
    opacity: 1;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.faq-answer ul {
    margin-top: 1.5rem;
    list-style: none;
    padding-left: 0;
}

.faq-answer li {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.7;
}

.faq-answer li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    top: -0.1rem;
}

.faq-answer strong {
    color: var(--white);
    font-weight: 700;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.gold-icon {
    width: 50px;
    height: 50px;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-action-badge {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-left: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-action-badge:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateX(5px);
}

.contact-action-badge i {
    font-size: 0.8rem;
}

.contact-form-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #6D7176;
}

.form-group label {
    color: var(--black);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 1px solid #6D7176;
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(242, 175, 23, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
}

.footer-founder .founder-info {
    display: block;
    color: var(--text-muted);
    line-height: 1.4;
    transition: var(--transition-fast);
}

.footer-founder .founder-info strong {
    color: var(--white);
    font-size: 1.1rem;
}

.footer-founder .founder-info small {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-founder .founder-info:hover {
    color: var(--gold);
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
}

.footer-brand h4 {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.footer h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: #111;
    border: 1px solid var(--text-muted);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-text.active {
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active,
.scroll-reveal-left.active,
.scroll-reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Interactive Text */
.about-text {
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 0;
}

.about-text:hover {
    color: var(--black);
    transform: translateX(10px);
    padding-left: 15px;
    border-left: 3px solid var(--gold);
}

/* Relocated New Section Styles */
.investors {
    background: var(--off-white);
}

.investor-card {
    background: var(--black-soft);
    border-radius: 20px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(242, 175, 23, 0.3);
}

.investor-overlay-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
}

.investor-content {
    position: relative;
    z-index: 1;
}

.investor-card .section-title {
    color: var(--white);
    font-size: 2.8rem;
}

.investor-card p {
    color: #6D7176;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.investor-stats {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.inv-stat {
    display: flex;
    flex-direction: column;
}

.inv-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-heading);
}

.inv-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.6;
}

.investor-actions {
    display: flex;
    gap: 2rem;
}

.investor-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.floating-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(242, 175, 23, 0.4));
    animation: none;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}




/* New Section Styles */
.investors {
    background: var(--off-white);
}

.investor-card {
    background: var(--black-soft);
    border-radius: 20px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(242, 175, 23, 0.3);
}

.investor-overlay-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
}

.investor-content {
    position: relative;
    z-index: 1;
}

.investor-card .section-title {
    color: var(--white);
    font-size: 2.8rem;
}

.investor-card p {
    color: #6D7176;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.investor-stats {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.inv-stat {
    display: flex;
    flex-direction: column;
}

.inv-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-heading);
}

.inv-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.6;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

.investor-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.investor-contact-link {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 8px;
    transition: var(--transition-fast);
}

.investor-contact-link:hover {
    color: var(--gold);
}

.investor-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.floating-logo {
    width: 180px;
    height: auto;
    animation: none;
    filter: drop-shadow(0 0 25px rgba(242, 175, 23, 0.4));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Gallery Styles */
.gallery-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 750px;
}

.gallery-item-large {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img,
.gallery-item-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
    transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay,
.gallery-item-large:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item-large:hover img {
    transform: scale(1.15);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.gallery-overlay span {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.partners-section {
    margin-top: -6rem;
    /* Shift upwards to save space */
}

.partners-title {
    font-size: 2.22rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Partner Ticker */
.partners-slider {
    overflow: hidden;
    padding: 3rem 0;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    width: max-content;
    gap: 7rem;
    animation: ticker 40s linear infinite;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition-smooth);
    filter: grayscale(1);
    height: 120px;
}

.partner-logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.partner-logo img.logo-large {
    height: 110px;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



.footer-concerns h4 {
    color: var(--white);
}

.footer-concerns a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-concerns a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.link-icon {
    font-size: 0.7rem;
    margin-left: 8px;
    opacity: 0.6;
}

/* --- RESPONSIVE FIXES (End of File for Cascading) --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid,
    .experts-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid-wrapper {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .investor-card {
        grid-template-columns: 1fr !important;
        padding: 2.5rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }

    .investor-card .section-title {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 1rem;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .investors.section-padding {
        padding: 4rem 0;
    }

    .investor-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .investor-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .inv-stat {
        flex: 1 1 120px;
    }

    .inv-num {
        font-size: 1.7rem;
    }

    .investor-actions {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        width: 100%;
    }

    .investor-actions .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.2rem 1.5rem !important;
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        text-align: center !important;
        display: block !important;
    }

    .investor-visual {
        margin-top: 2rem;
    }

    .floating-logo {
        width: 120px;
    }
}

/* --- MOBILE CENTRALIZATION & ENHANCEMENTS --- */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .section-padding {
        padding: 4rem 0 !important;
    }

    .section-header,
    .about-content,
    .experts-info,
    .contact-details,
    .footer-brand,
    .footer-links,
    .footer-concerns,
    .footer-founder,
    .footer-social {
        text-align: center !important;
    }

    .container {
        padding: 0 1.2rem !important;
        margin: 0 auto !important;
    }

    /* Fix Hero Alignment on Mobile */
    .hero {
        padding-top: 80px;
        min-height: 80vh;
    }

    .hero .container {
        margin: 0 auto !important;
        padding: 0 1.5rem !important;
        width: 100% !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        /* Smaller size for mobile screens */
        line-height: 1.2 !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-content p {
        margin: 0 auto 2.5rem !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem !important;
    }

    /* General Section Centering */
    .section-title {
        text-align: center !important;
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fix Firm Overview / About Section */
    .about-content {
        padding: 2.5rem 1.5rem !important;
        /* Balanced mobile padding */
        border-radius: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .about-badge {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .about-stats {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        margin-top: 3rem !important;
    }

    .stat-item {
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .stat-number-box {
        justify-content: center !important;
    }

    .stat-item {
        align-items: center !important;
        text-align: center !important;
    }

    .stat-count {
        font-size: 2.8rem !important;
    }

    .stat-label {
        font-size: 0.85rem !important;
    }

    .experts-grid img {
        margin: 0 auto;
        max-width: 100%;
    }

    .social-icons {
        justify-content: center !important;
    }

    /* Fix Footer Misalignment */
    .footer h4 {
        text-align: center !important;
        margin-bottom: 2.5rem !important;
    }

    .footer h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-grid {
        gap: 4rem !important;
    }

    .footer-links a,
    .footer-concerns a {
        text-align: center !important;
        justify-content: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-founder {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .founder-info {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem !important;
        align-items: center;
    }

    /* Residential Mastery Mobile Fix */
    .residential-mastery-card {
        padding: 3.5rem 1.5rem !important;
        border-radius: 20px !important;
        margin-top: 2rem !important;
    }

    .section-subtitle-border {
        font-size: 1.6rem !important;
        text-align: center !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin-bottom: 2.5rem !important;
    }

    .rm-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
    }

    .rm-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .rm-title {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
        word-wrap: break-word;
    }

    .rm-text {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        max-width: 100%;
    }

    .rm-list {
        display: inline-block !important;
        text-align: left !important;
        margin: 0 auto !important;
        width: auto !important;
    }

    .rm-list li {
        justify-content: flex-start !important;
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }

    .rm-image-wrapper {
        order: -1;
        /* Move image to top for mobile flow */
    }

    .info-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .contact-action-badge {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .info-detail {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .investor-card {
        padding: 2rem 1rem;
    }

    .investor-card .section-title {
        font-size: 1.4rem;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .inv-num {
        font-size: 1.6rem;
    }

    .section-tag {
        font-size: 0.75rem;
    }
}