/* Modern Luxury Real Estate CSS System */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #d97706;
    --accent-hover: #b45309;
    --accent-light: #fef3c7;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

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

.nav-links a:not(.btn) {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(217, 119, 6, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #fef3c7;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-features-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Sections Base */
.section {
    padding: 90px 0;
}

.section-header {
    margin-bottom: 50px;
}

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

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-tag.light {
    color: #fef3c7;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Floor Plan Section */
.floorplan-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.floorplan-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.floorplan-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.floorplan-img-wrapper img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: #ffffff;
    transition: transform 0.4s ease;
}

.floorplan-img-wrapper:hover img {
    transform: scale(1.03);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.zoom-icon {
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floorplan-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.floorplan-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-img-container img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .icon {
    font-size: 1.8rem;
    color: #ffffff;
}

/* Features Section */
.features-section {
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(10px);
}

.contact-info h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
}

/* Contact Form */
.contact-form-container {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 32px;
    color: var(--text-main);
    box-shadow: var(--shadow-xl);
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

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

.form-success-msg {
    display: none;
    margin-top: 16px;
    padding: 12px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2010;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

.lightbox-caption {
    color: #e2e8f0;
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 500;

}

/* Footer */
.footer {
    background: #090d16;
    color: #64748b;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
}

.footer-subtext {
    margin-top: 8px;
    font-size: 0.8rem;
}

.footer-subtext a {
    color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .floorplan-card { grid-template-columns: 1fr; }
    .contact-box { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
}
