/* Custom styles for Oficinas Del Pueblo */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Hero background shapes */
.shape-circle-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -150px;
    animation: floatSlow 8s ease-in-out infinite;
}

.shape-rect-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(251, 235, 193, 0.5);
    border-radius: 30px;
    bottom: 15%;
    left: 5%;
    transform: rotate(15deg);
    animation: floatSlow 10s ease-in-out infinite reverse;
}

.shape-circle-2 {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(110, 231, 183, 0.15);
    border-radius: 50%;
    top: 25%;
    right: 5%;
    animation: floatSlow 6s ease-in-out infinite;
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(16, 185, 129, 0.06);
    top: 20%;
    right: 15%;
    transform: rotate(-15deg);
    animation: floatSlow 12s ease-in-out infinite;
}

.shape-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(4, 120, 87, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
    bottom: 25%;
    right: 25%;
    animation: floatSlow 7s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.shape-triangle {
    --rotation: -15deg;
}

/* Floating stat cards */
.float-card-1 {
    animation: floatCard1 5s ease-in-out infinite;
}

.float-card-2 {
    animation: floatCard2 6s ease-in-out infinite;
}

.float-card-3 {
    animation: floatCard3 4.5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(calc(-50% + 10px)) translateX(5px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, background-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(4, 120, 87, 0.2);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile menu */
#mobile-menu {
    max-height: 0;
}

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

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}
