/* Custom CSS - LCD adapted from theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Video Hero Styles */
.video-hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.video-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.video-hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.video-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

/* Elegant text shadows for hero */
.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animated scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
    pointer-events: none;
}

.scroll-indicator a {
    pointer-events: auto;
}

/* Property card hover effects */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C9A961;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A67B5B;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

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

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #C9A961;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* Hero fade-in animation */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    opacity: 0;
    animation: heroFadeIn 1s ease-out forwards;
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Elegant dividers */
.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, transparent, #C9A961, transparent);
    margin: 1rem auto;
}

/* Navigation states */
.hero-nav {
    background: transparent !important;
}
.scrolled-nav {
    background-color: transparent !important;
    box-shadow: none;
}

/* Ensure hero content appears above overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-content-z {
    position: relative;
    z-index: 20;
}

/* Wireframe photo placeholder */
.placeholder-wireframe {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    position: relative;
    color: #94a3b8;
    display: block;
}
.placeholder-wireframe::before,
.placeholder-wireframe::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
}
.placeholder-wireframe::before {
    border-top: 1px solid rgba(0,0,0,0.02);
}
.placeholder-wireframe::after {
    background: linear-gradient(135deg, transparent 49%, #cbd5e1 49%, #cbd5e1 51%, transparent 51%), linear-gradient(225deg, transparent 49%, #cbd5e1 49%, #cbd5e1 51%, transparent 51%);
    background-repeat: no-repeat;
    background-position: center;
}
