:root {
    --bg-darkest: #0a0a0a;
    --bg-dark: #111111;
    --bg-medium: #1a1a1a;
    --bg-light: #222222;
    --accent-gold: #c9a962;
    --accent-gold-light: #e8d4a2;
    --accent-glow: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --gradient-gold: linear-gradient(135deg, #c9a962 0%, #ffd700 50%, #c9a962 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    --shadow-gold: 0 0 30px rgba(201, 169, 98, 0.3);
    --shadow-intense: 0 20px 60px rgba(0, 0, 0, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 3rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

p {
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER - Always visible with background (no JS scroll detection) */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    transition: all 0.5s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.logo span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu checkbox hack (CSS only, no JS needed) */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.4s ease;
}

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

nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-darkest);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.2);
    transform: scale(1.1);
    transition: transform 10s ease;
}

.hero:hover .hero-bg img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-darkest) 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 1;
    animation: fadeInUp 1.2s ease forwards 0.5s;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    opacity: 1;
    animation: fadeInUp 1.2s ease forwards 0.8s;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-darkest);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-darkest);
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-gold);
}

section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-dark);
}

.section-medium {
    background: var(--bg-medium);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 30px auto 0;
}

.grid {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--bg-light);
    border: 1px solid rgba(201, 169, 98, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: rgba(201, 169, 98, 0.4);
    box-shadow: var(--shadow-intense), var(--shadow-gold);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.4s ease;
    filter: brightness(0.8);
}

.card:hover .card-image img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1);
}

.card-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 200;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.agent-card {
    text-align: center;
    padding: 50px 30px;
    perspective: 1000px;
}

.agent-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-gold);
    transition: all 0.6s ease;
}

.agent-card:hover .agent-image {
    transform: rotateY(15deg) scale(1.1);
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.4s ease;
}

.agent-card:hover .agent-image img {
    filter: grayscale(0%);
}

.agent-role {
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.agent-specialty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-card {
    padding: 50px;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    color: rgba(201, 169, 98, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.3rem;
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 25px;
}

.testimonial-author {
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-location {
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-top: 5px;
}

.service-card {
    padding: 60px 40px;
    text-align: center;
    transition: all 0.5s ease;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    display: inline-block;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.2);
    filter: drop-shadow(0 0 20px rgba(201, 169, 98, 0.5));
}

.service-card h3 {
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* JS Interaction Styles */

/* Mobile Menu Active State */
@media (max-width: 768px) {
    nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease forwards;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Building Reveal Animation */
.building-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.building-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for building cards */
.building-reveal[data-delay="200"] {
    transition-delay: 0.2s;
}

.building-reveal[data-delay="400"] {
    transition-delay: 0.4s;
}



/* Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 30px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 15px 30px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .section-title h2::after {
        width: 60px;
    }

    /* Adjust header for mobile */
    .logo {
        font-size: 1.8rem;
    }

    /* Ensure menu toggle is visible (if you had one in HTML/CSS earlier, 
       but based on previous steps, we rely on the JS toggle logic) */
    .menu-toggle {
        display: block;
        /* Ensure this is defined if not already */
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
    }

    /* Hide nav by default on mobile, shown via JS .active class */
    nav ul {
        display: none;
    }

    /* When active, it's already handled by the JS interaction styles above */
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .property-features {
        flex-wrap: wrap;
        gap: 10px;
    }

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