/* CSS Variables & Reset */
:root {
    --bg-color: #0b0d17;
    --card-bg: #15192b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gold: #d4af37;
    --gold-hover: #b5952f;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.gold-text {
    color: var(--gold);
}

.text-center {
    text-align: center;
}

.italic-serif {
    font-style: italic;
}

/* Header */
header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 13, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary-small {
    background: var(--gold);
    color: var(--bg-color) !important;
    padding: 10px 20px;
    border-radius: 2px;
    font-weight: 600;
}

.btn-primary-small:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-color);
    padding: 15px 35px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 15px 35px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/project-4.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-color) 0%, rgba(11, 13, 23, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    background: #0f121d;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-family: var(--font-body);
    /* Using font-body for clean numbers */
    font-weight: 700;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Partners Section */
.partners-section {
    padding: 40px 0;
    background: var(--bg-color);
}

.partners-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    opacity: 0.6;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background: rgba(212, 175, 55, 0.05);
    /* Slight gold tint */
    border-left: 2px solid var(--gold);
}

.comparison-table th.highlight {
    color: var(--gold);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td strong {
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}


/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.separator {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Mobile Sticky CTA */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default (desktop) */
    z-index: 1000;
    padding: 10px 15px;
    gap: 10px;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.sticky-btn:active {
    transform: scale(0.98);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.call-btn {
    background: var(--gold);
    color: var(--dark-bg);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }

    /* Add padding to body so content isn't covered */
    body {
        padding-bottom: 70px;
    }

    /* Hide the floating whatsapp button on mobile to avoid clutter */
    .whatsapp-float {
        display: none;
    }
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--gold);
}

.project-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-img-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .project-img-wrapper .overlay {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.project-info {
    padding: 25px;
    position: relative;
}

.badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background: var(--gold);
    color: var(--bg-color);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.new {
    background: #fff;
    color: var(--bg-color);
}

.project-info h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.specs li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.specs i {
    color: var(--gold);
    margin-right: 5px;
}

.price {
    font-size: 1.1rem;
}

.price strong {
    color: var(--gold);
    font-size: 1.3rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(11, 13, 23, 0.8), rgba(11, 13, 23, 0.9)), url('assets/hero-bg.png') center/cover;
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 2px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.full-width {
    width: 100%;
}

.privacy-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: #05060b;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations - Simple Fade In */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment Calculator */
.calculator-section {
    background: linear-gradient(rgba(11, 13, 23, 0.9), rgba(11, 13, 23, 0.9)), url('assets/project-3.png') center/cover;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: 0.3s;
}

.toggle-switch input:checked+label {
    background: var(--gold);
    color: var(--bg-color);
    font-weight: 700;
}

.calc-content {
    flex: 1;
    min-width: 300px;
}

.calc-benefits {
    margin-top: 20px;
}

.calc-benefits li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.calc-benefits i {
    color: var(--gold);
    margin-right: 10px;
}

.calc-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calc-card h3 {
    margin-bottom: 25px;
    text-align: center;
}

.range-value {
    text-align: right;
    color: var(--gold);
    font-weight: 700;
}

.calc-result {
    margin-top: 30px;
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.calc-result p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.calc-result h2 {
    color: var(--gold);
    font-size: 2rem;
}

input[type=range] {
    width: 100%;
    margin: 10px 0;
    accent-color: var(--gold);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .menu-toggle {
        display: flex;
        /* Show hamburger on mobile */
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        /* Use theme background */
        top: -100vh;
        /* Hide by default */
        left: 0;
        transition: 0.5s ease;
        z-index: 1000;
        gap: 30px;
        opacity: 0;
    }

    .nav-links.active {
        top: 0;
        /* Slide down */
        opacity: 1;
    }

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

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

    .social-links,
    .footer-col {
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .stats-grid {
        gap: 40px;
    }
}

/* Broker Profile Image */
.broker-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.broker-img-container {
    padding: 5px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    margin-bottom: 10px;
}

.broker-photo {
    width: 180px;
    /* Increased from 150px */
    height: 180px;
    /* Increased from 150px */
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    /* Fixes "head cutten" issue */
    display: block;
    border: 4px solid var(--card-bg);
    /* Creates a gap effect */
    transition: 0.3s;
}

.broker-photo:hover {
    transform: scale(1.05);
}