/* Custom styles for Servicios Latinos */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Hero geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 184, 199, 0.3);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 40%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    top: 25%;
    left: 10%;
    transform: rotate(45deg);
    animation: rotate 20s linear infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(255, 132, 161, 0.2);
    bottom: 30%;
    right: 10%;
    transform: rotate(30deg);
    animation: rotate 15s linear infinite reverse;
}

.geo-diamond-1 {
    width: 80px;
    height: 80px;
    background: rgba(253, 242, 244, 0.15);
    top: 60%;
    left: 20%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite;
}

.geo-diamond-2 {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    bottom: 25%;
    right: 25%;
    transform: rotate(60deg);
    animation: rotate 12s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 255, 255, 0.08);
    top: 35%;
    right: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

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

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

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Service cards */
.service-card {
    transform: translateY(0);
}

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

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

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

/* 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;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-circle-3 {
        display: none;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-square-2 {
        display: none;
    }
    
    .geo-diamond-1 {
        width: 40px;
        height: 40px;
    }
    
    .geo-diamond-2 {
        display: none;
    }
    
    .geo-triangle-1 {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 45px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .geo-circle-1 {
        width: 180px;
        height: 180px;
    }
    
    .geo-circle-2 {
        width: 80px;
        height: 80px;
    }
    
    .geo-square-1 {
        display: none;
    }
    
    .geo-diamond-1 {
        display: none;
    }
    
    .geo-triangle-1 {
        display: none;
    }
}

/* Navigation logo text color transition */
.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-logo-text {
    color: #6c1a2a;
}
