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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #841f35;
    color: #fff;
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(250, 247, 245, 0.9);
    border-bottom: 1px solid rgba(44, 44, 44, 0.05);
}

#navbar.scrolled {
    background: rgba(250, 247, 245, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* ===== Hero Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image-grid {
    animation: fadeInRight 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator .animate-scroll {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ===== Property Cards ===== */
.property-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.property-card:hover {
    transform: translateY(-8px);
}

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

/* ===== About Section ===== */
.about-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.about-image-container {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.about-content {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease 0.2s;
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* ===== Contact Form ===== */
.contact-form-container {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* ===== Section Headers ===== */
.property-header,
.service-header,
.testimonial-header {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-image-grid {
        margin-top: 3rem;
    }
    
    .secondary-image {
        display: none;
    }
    
    .accent-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .about-image-container {
        margin-bottom: 2rem;
    }
    
    .about-content {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* ===== Utility Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
    transition-delay: 0.5s;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 31, 53, 0.1);
}

/* ===== Button Hover Effects ===== */
button:hover,
a:hover {
    cursor: pointer;
}

/* ===== Image Loading ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #841f35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6e1c2f;
}
