/* Custom styles for Vista Del Rosa */

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

/* 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;
        scroll-behavior: auto !important;
    }
}

/* Geometric animations for hero */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.geo-1 {
    width: 400px;
    height: 400px;
    background: #F5C518;
    top: -100px;
    right: -80px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-2 {
    width: 200px;
    height: 200px;
    background: #D6B3DC;
    bottom: 15%;
    left: 5%;
    animation: float-medium 15s ease-in-out infinite reverse;
}

.geo-3 {
    width: 120px;
    height: 120px;
    background: #F5C518;
    top: 30%;
    left: 10%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(212, 179, 220, 0.12);
    top: 20%;
    right: 10%;
    animation: spin-slow 30s linear infinite;
}

.geo-5 {
    width: 80px;
    height: 80px;
    background: #F5C518;
    bottom: 25%;
    right: 20%;
    animation: float-medium 12s ease-in-out infinite reverse;
}

.geo-square {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(245, 197, 24, 0.1);
    bottom: 10%;
    left: 25%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite reverse;
}

.geo-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 3px solid rgba(245, 197, 24, 0.15);
    border-radius: 50%;
    top: 40%;
    right: 5%;
    animation: float-slow 22s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(15px) rotate(-3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state for reveal elements — visible by default for accessibility */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
.nav-link {
    position: relative;
}

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

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

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

.mobile-link:hover {
    color: #7B2D8E;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

.navbar-scrolled .nav-link {
    color: #571d63;
}

.navbar-scrolled .menu-bar {
    background: #571d63;
}

/* Button hover glow */
button:hover, a:hover {
    cursor: pointer;
}

/* Custom selection color */
::selection {
    background: #F5C518;
    color: #2a0e30;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #F5C518;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5eef7 0%, #ebd8ed 100%);
}

/* Form focus states */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

/* Card hover elevation */
.reveal-group:hover .reveal-card {
    transform: translateY(-4px);
}

/* Smooth image transitions */
img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Decorative pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(123, 45, 142, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
