/* Best Property Team - Dark Theme Professional Styles */

/* CSS Variables for Dark Theme */
:root {
    --primary-navy: #0f172a;
    --primary-blue: #1e40af;
    --accent-gold: #fbbf24;
    --accent-light: #3b82f6;
    --dark-bg: #020617;
    --dark-surface: #0f172a;
    --dark-surface-light: #1e293b;
    --dark-surface-lighter: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-dark: #334155;
    --gradient-primary: linear-gradient(135deg, #020617 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-surface: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Import Distinctive Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    /* Parallax city background for entire site with heavy opacity */
    background-image: 
        linear-gradient(135deg, rgba(2, 6, 23, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%), 
        url('https://imagedelivery.net/Vao_m7ISeT7aNnreYMwd6A/36639f79-04b5-446d-a8b4-300d8c54fc00/public'),
        url('https://imagedelivery.net/Vao_m7ISeT7aNnreYMwd6A/36639f79-04b5-446d-a8b4-300d8c54fc00/w=1920,h=1080'),
        url('../images/generated-image-3__1_.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

/* Header Navigation */
header {
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    animation: slideDown 0.6s ease-out;
    border-bottom: 1px solid var(--border-dark);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--accent-gold);
}

/* Hero Section - Now transparent to show body background */
.hero {
    /* Remove background since body has it now */
    background: transparent;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.9s both;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--dark-bg);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Section Layouts - Semi-transparent to show parallax background */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(2px);
    margin-bottom: 2rem;
    border-radius: 12px;
}

section:nth-child(even) {
    background: rgba(15, 23, 42, 0.8);
}

section:nth-child(odd) {
    background: rgba(2, 6, 23, 0.8);
}

/* About Section */
#about {
    background: var(--dark-surface);
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border-dark);
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

#about h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

#about p {
    color: var(--text-secondary);
}

/* Services Section */
#services {
    background: var(--dark-bg);
    position: relative;
}

#services h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-surface-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-dark);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent-gold);
    background: var(--dark-surface-lighter);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* Properties Section */
#properties {
    background: var(--dark-surface);
}

#properties h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.property-card {
    background: var(--dark-surface-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-dark);
}

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

.property-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: var(--dark-surface-lighter);
    background-image: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
}

/* Fallback for broken images */
.property-card img[src=""]:before,
.property-card img:not([src]):before,
.property-card img[src=""]:after,
.property-card img:not([src]):after {
    content: "Image Loading...";
    display: block;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-surface-lighter);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 4px;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-info {
    padding: 2rem;
}

.property-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.property-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Section */
#contact {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

#contact > * {
    position: relative;
    z-index: 2;
}

#contact h2 {
    color: white;
    margin-bottom: 2rem;
}

form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--dark-surface-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 2px solid var(--border-dark);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input:focus, textarea:focus {
    outline: none;
    background: var(--dark-surface-lighter);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

button[type="submit"] {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    position: relative;
    border-top: 1px solid var(--border-dark);
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Fix parallax on mobile */
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    section {
        padding: 3rem 1rem;
        margin-bottom: 1rem;
    }
    
    .services-grid,
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-card img {
        height: 200px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .service-card,
    .property-info {
        padding: 1.5rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    nav,
    .btn,
    form {
        display: none !important;
    }
}