/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Transitions */
.transition {
    transition: all 0.3s ease;
}

/* Header Styles */
header {
    transition: transform 0.3s ease;
}

header.transform.-translate-y-full {
    transform: translateY(-100%);
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #1e3d6b 0%, #3498db 100%);
}

/* Card Hover Effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Hover Effects */
.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.5s ease;
}

.image-hover:hover img {
    transform: scale(1.05);
}

/* Button Styles */
.btn-primary {
    @apply bg-arsenal-blue text-white px-6 py-2 rounded-full hover:bg-arsenal-light transition;
}

.btn-outline {
    @apply border-2 border-arsenal-blue text-arsenal-blue px-6 py-2 rounded-full hover:bg-arsenal-blue hover:text-white transition;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3d6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

/* Cookie Popup Animation */
.cookie-popup {
    transition: transform 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

/* Before/After Image Comparison */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-slider .before {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.comparison-slider .slider {
    position: absolute;
    width: 2px;
    height: 100%;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.comparison-slider .slider::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        @apply text-3xl;
    }
    h2 {
        @apply text-2xl;
    }
    h3 {
        @apply text-xl;
    }
}

/* Loading Animation */
.loading {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3d6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Focus Styles */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
} 