:root {
    /* Color Palette */
    --primary: #0a192f;
    --secondary: #c9a35d;
    /* Gold/Bronze accent */
    --accent: #64ffda;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --light-bg: #f5f6fa;
    --glass: rgba(255, 255, 255, 0.7);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 163, 93, 0.3);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
    font-weight: 400;
    font-size: 0.8rem;
    display: block;
    margin-top: -5px;
    letter-spacing: 4px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav ul a {
    font-size: 0.95rem;
    font-weight: 500;
}

nav ul a:hover,
nav ul a.active {
    color: var(--secondary);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?q=80&w=2071&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

#hero h1 span {
    color: var(--secondary);
    font-style: italic;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Search Box (Modern Glassmorphism) */
.search-box {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 1000px;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    opacity: 0.6;
}

.tab-btn.active {
    opacity: 1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
}

#hero-search {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 2rem;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-field input,
.search-field select {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-size: 1rem;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.btn-search {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--secondary);
}

/* Featured Section */
#featured {
    padding: 8rem 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.property-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.property-img {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-img img {
    transform: scale(1.1);
}

.tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag.rental {
    background: var(--secondary);
}

.property-info {
    padding: 2rem;
}

.property-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Services Section */
#services {
    padding: 8rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.services-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.services-text h2 span {
    color: var(--secondary);
}

.service-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--secondary);
}

.service-content h3 {
    margin-bottom: 0.5rem;
}

.services-image img {
    border-radius: 30px;
    box-shadow: 20px 20px 0 var(--light-bg);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 3rem;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #hero-search {
        grid-template-columns: 1fr;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .services-image {
        order: -1;
    }

    nav {
        display: none;
    }
}