/* Animações e Transições - Constelar */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-image {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Service Cards Hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Loading State */
body.loaded .hero-content,
body.loaded .hero-image {
    opacity: 1;
    transform: translateY(0);
}

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

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Link Hover */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-gold, #0DA7D9);
    transition: width 0.3s ease;
}

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

/* Image Lazy Load */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Constellation Rotation */
.constellation {
    animation: rotate 60s linear infinite;
}

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

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 167, 217, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 167, 217, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 167, 217, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Stagger Animation for Service Cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Menu Animation */
.nav-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu.active {
    transform: translateX(0);
    opacity: 1;
}

/* Hamburger Animation */
.hamburger .bar {
    transition: all 0.3s ease;
}

/* Form Input Focus */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--light-gold, #0DA7D9);
    box-shadow: 0 0 0 3px rgba(13, 167, 217, 0.1);
    transition: all 0.3s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #0DA7D9, #E5D70F);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Parallax Effect for Hero Background */
.hero-background {
    transition: transform 0.5s ease-out;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

