/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== FADE-IN-UP ANIMATION ===== */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* ===== FADE-IN-RIGHT ANIMATION ===== */
.fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
    opacity: 0;
}

/* ===== FADE-IN-LEFT ANIMATION ===== */
.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== STAGGERED ANIMATIONS ===== */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ===== HOVER ANIMATIONS ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-color {
    transition: color 0.3s ease;
}

.hover-color:hover {
    color: #39FF14;
}

.hover-bg {
    transition: background-color 0.3s ease;
}

.hover-bg:hover {
    background-color: #f0f0f0;
}

/* ===== BUTTON ANIMATIONS ===== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:active::before,
.btn-secondary:active::before {
    width: 300px;
    height: 300px;
}

/* ===== LINK ANIMATIONS ===== */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #39FF14;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* ===== CARD ANIMATIONS ===== */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    animation: none;
}

/* ===== SECTION ANIMATIONS ===== */
.section {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== NAVBAR ANIMATIONS ===== */
.navbar {
    animation: slideInDown 0.4s ease-out;
}

/* ===== HERO ANIMATIONS ===== */
.hero {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-buttons {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ===== ICON ANIMATIONS ===== */
.service-icon,
.benefit-icon,
.hero-icon {
    animation: float 3s ease-in-out infinite;
}

/* ===== FORM ANIMATIONS ===== */
input,
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #39FF14;
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.spinner {
    animation: rotate 1s linear infinite;
}

/* ===== TRANSITION UTILITIES ===== */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

/* ===== SMOOTH SCROLL ===== */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .section-alt {
        background-color: #2a2a2a;
    }

    .service-card {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }

    .service-card:hover {
        background-color: #333;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .cookie-banner,
    .scroll-to-top,
    .cta-section {
        display: none;
    }

    body {
        background-color: white;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
