/* Base Styles */
:root {
    --burgundy-500: #8B1A4D;
    --burgundy-700: #69143C;
    --burgundy-800: #581133;
    --burgundy-900: #470E2A;
    --blush-200: #FBE4EC;
    --sand-50: #FDFCFA;
    --sand-100: #FDF8F0;
    --sand-200: #F9EDD5;
}

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

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--sand-100);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-500);
}

/* Selection */
::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-900);
}

/* Header */
#header {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(139, 26, 77, 0.1);
}

/* Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu Button Animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--burgundy-500);
    color: #FDFCFA;
    padding: 0.875rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--burgundy-500);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    border-color: var(--burgundy-700);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FDFCFA;
    padding: 0.875rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(253, 252, 250, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: rgba(253, 252, 250, 0.1);
    border-color: rgba(253, 252, 250, 0.8);
}

/* Property Cards */
.property-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.property-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.property-card:nth-child(2) {
    transition-delay: 0.15s;
}

.property-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Feature Items */
.feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Line Animation */
@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 48px;
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
}
