/* Custom styles for Realty One Group West */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #040d1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffcc00 0%, #e6a800 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd924 0%, #ffcc00 100%);
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Geometric shapes */
.geometric-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Hero pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(230, 168, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 61, 117, 0.3) 0%, transparent 50%);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #ffcc00 0%, #e6a800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #ffcc00 0%, #e6a800 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffd924 0%, #ffcc00 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 204, 0, 0.5);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

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

/* Stat card glass effect */
.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section divider */
.section-divider {
    background: linear-gradient(90deg, transparent 0%, #ffcc00 50%, transparent 100%);
    height: 2px;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    max-height: 400px;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 204, 0, 0.6);
    }
}

/* Animation classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Reduced motion preference */
@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 adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .btn-primary {
        background: #0a1628;
        color: white;
    }
}
