:root {
    --primary-color: #0f172a;
    /* Deep Midnight Blue */
    --secondary-color: #cda45e;
    /* Muted Gold */
    --text-color: #334155;
    /* Slate 700 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --bg-dark: #0f172a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --primary-color: #ffffff;
    /* Pure White for headings */
    --secondary-color: #ffd700;
    /* Bright Gold */
    --text-color: #f1f5f9;
    /* Slate 100 for body text */
    --bg-light: #0f172a;
    /* Darker Slate 900 */
    --bg-dark: #020617;
    /* Almost Black */
    --white: #1e293b;
    /* Card background */
    --glass-bg: rgba(15, 23, 42, 0.9);
    /* More opaque */
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-strong: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 0;
    /* Sharp edges for luxury feel */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color) !important;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #fff;
    color: #0f172a;
}

body.dark-mode .btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

body.dark-mode .btn-secondary:hover {
    background: var(--secondary-color);
    color: #0f172a;
}

.btn-icon {
    background: none;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #25D366;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    margin-top: 1.5rem;
    text-align: center;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), url('images/hero_bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: var(--bg-dark);
    color: #fff;
}

/* Ensure text inside .bg-dark is always light */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark li,
.bg-dark span,
.bg-dark strong {
    color: #fff !important;
}

.bg-dark .contact-info h3 {
    color: var(--secondary-color) !important;
}

.bg-dark .section-title {
    color: #fff !important;
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.detail-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--secondary-color);
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.specs {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 4rem;
}

.spec-item {
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.spec-item strong {
    font-size: 2.5rem;
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    overflow: hidden;
    height: 300px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Map */
.map-container {
    height: 500px;
    background: #eee;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    filter: grayscale(20%) contrast(1.1);
    /* Stylized map */
    transition: var(--transition);
}

.map-container:hover {
    filter: none;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.text-white {
    color: #fff;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.contact-list li strong {
    color: var(--secondary-color);
    min-width: 80px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
    border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #64748b;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background: var(--bg-light);
        flex-direction: column;
        padding: 6rem 2rem;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: none;
    }

    body.dark-mode .nav-links {
        background: var(--bg-dark);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .specs {
        gap: 2rem;
    }
}

body.dark-mode {
    --primary-color: #ecf0f1;
    --secondary-color: #fab1a0;
    --text-color: #f0f0f0;
    --bg-light: #2c3e50;
    --bg-dark: #34495e;
    --white: #2c3e50;
}

body.dark-mode .navbar {
    background: #1a252f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .detail-card,
body.dark-mode .gallery-item {
    background: #34495e;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .section-subtitle {
    color: #bdc3c7;
}

body.dark-mode .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #34495e;
    color: #ecf0f1;
    border: 1px solid #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d35400;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero_bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    color: #666;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: var(--bg-dark);
    color: var(--white);
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.specs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

.spec-item {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.spec-item strong {
    font-size: 2rem;
    display: block;
    color: var(--secondary-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Location */
.map-container {
    height: 450px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-white {
    color: var(--white);
}

.contact-info h3 {
    color: var(--secondary-color);
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background: #1a252f;
    color: #7f8c8d;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}