:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1e2c61;
    --bg-card: #1a1a1a;

    --accent-red: #e50012;
    --accent-blue: #1e2c61;

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    --border-color: rgba(229, 0, 18, 0.2);

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --section-padding: clamp(4rem, 10vw, 8rem);
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

html.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #1e2c61;
    --bg-card: #ffffff;

    --text-primary: #000000;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;

    --border-color: rgba(30, 44, 97, 0.2);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.2rem 0;
    animation: slideDown 0.6s ease-out;
}

html.light-mode header {
    background: rgba(255, 255, 255, 0.95);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 1;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-blue {
    color: var(--accent-blue);
}

.logo-red {
    color: var(--accent-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    color: var(--accent-red);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 2rem;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.mobile-menu a:hover {
    color: var(--accent-red);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.72)
    );
    z-index: 2;
}


.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 2rem;
}

.hero-text {
    text-align: center;
    max-width: 900px;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFF;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: #FFF;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #cc0010 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(229, 0, 18, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 0, 18, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.btn-secondary:hover {
    background: var(--accent-red);
    color: #ffffff;
}

section {
    padding: var(--section-padding) 2rem;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.about,
.properties {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.about-content,
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2,
.contact-info h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-mode .about-text h2,
html.light-mode .contact-info h3,
html.light-mode .quote-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(229, 0, 18, 0.15);
    border-color: var(--accent-red);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.features {
    background: var(--bg-primary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(30, 44, 97, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card > * {
    position: relative;
    z-index: 2;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-blue) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(30, 44, 97, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(229, 0, 18, 0.2);
    border-color: var(--accent-red);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(229, 0, 18, 0.2) 0%, rgba(30, 44, 97, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-red);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.property360-btn {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: auto;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.property-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(229, 0, 18, 0.2);
}

.property-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.property-content {
    padding: 3rem;
}

.property-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-red);
}

.property-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.property-features li {
    display: flex;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.property-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-red);
    flex-shrink: 0;
}

.property-location {
    display: flex;
    gap: 0.75rem;
    color: var(--accent-red);
    font-weight: 600;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.quote-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-author {
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: 600;
}

.contact {
    background: var(--bg-primary);
}

.contact-wrapper {
    margin-top: 4rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-red);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(229, 0, 18, 0.2) 0%, rgba(30, 44, 97, 0.2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--accent-red);
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
}

html.light-mode .form-group input,
html.light-mode .form-group textarea {
    background: #f0f0f0;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 0, 18, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.footer-brand p,
.footer-links a {
    color: var(--text-secondary);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.whatsapp-float,
.back-to-top {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.whatsapp-float {
    left: 25px;
    background: #25D366;
    color: #ffffff;
}

.back-to-top {
    right: 25px;
    background: var(--accent-red);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float:hover {
    background: var(--accent-blue);
    transform: scale(1.08);
}

.back-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-4px);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    nav {
        padding: 0 1rem;
    }

    header {
        padding: 0.9rem 0;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero {
        padding: 7rem 1rem 4rem;
    }

    .hero-content {
        padding: 0;
    }

    .hero-text h1 {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .features-grid,
    .about-stats,
    .property-features {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .property-content,
    .contact-form {
        padding: 1.5rem;
    }

    .property-image {
        height: 240px;
    }

    .contact-item {
        align-items: flex-start;
        padding: 1.2rem;
    }

    .contact-item:hover {
        transform: none;
    }

    .logo {
        font-size: 1.15rem;
        gap: 0.35rem;
    }

    .logo img {
        width: 42px;
        height: 34px;
    }

    .theme-toggle {
        font-size: 1.2rem;
    }

    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 18px;
        font-size: 26px;
    }

    .whatsapp-float {
        left: 16px;
    }

    .back-to-top {
        right: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .logo img {
        width: 38px;
        height: 32px;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .theme-toggle {
        padding: 0.3rem;
    }

    .hamburger {
        padding: 0.3rem;
    }

    .mobile-menu {
        width: 85vw;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .property-title {
        font-size: 1.7rem;
    }

    .whatsapp-float,
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: 15px;
        font-size: 24px;
    }

    .whatsapp-float {
        left: 12px;
    }

    .back-to-top {
        right: 12px;
    }
}
.form-message {
    display: none;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.4);
}

.form-message.error {
    display: block;
    background: rgba(229, 0, 18, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(229, 0, 18, 0.4);
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}