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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.animate-fade-in-up.delay-400 {
    animation-delay: 0.4s;
}

.animate-fade-in-up.delay-600 {
    animation-delay: 0.6s;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tab Content */
.tab-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.hidden {
    opacity: 0;
    transform: translateY(20px);
    display: none;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Product Image Zoom */
#main-product-image {
    transition: transform 0.3s ease;
}

/* Service Card Hover */
.group .h-48 svg {
    transition: opacity 0.3s ease;
}

/* Team Member Social Links */
.group .absolute.inset-0 {
    transition: opacity 0.3s ease;
}

.group .absolute.inset-0 .flex {
    transition: transform 0.3s ease;
}

.group:hover .absolute.inset-0 .flex {
    transform: translateY(0);
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Form Input Focus */
input:focus, textarea:focus {
    transition: all 0.3s ease;
}

/* Card Shadow Transition */
.shadow-md {
    transition: shadow 0.3s ease;
}

/* Hero Section Overlay */
.bg-gradient-to-br.from-gray-900.to-blue-900 .absolute.inset-0 {
    transition: opacity 0.3s ease;
}

/* Navigation Link Hover */
nav a {
    transition: all 0.3s ease;
}

/* Dropdown Menu Animation */
.absolute.left-0.mt-2.w-48 {
    transition: all 0.3s ease;
    transform-origin: top;
}

/* Breadcrumb Link Hover */
nav.flex a {
    transition: all 0.3s ease;
}

/* Testimonial Card Hover */
.bg-gray-50.rounded-xl.p-8.shadow-md {
    transition: all 0.3s ease;
}

/* CTA Button Hover */
.bg-blue-600.hover\:bg-blue-700 {
    transition: all 0.3s ease;
}

/* Footer Link Hover */
footer a {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: all 0.3s ease;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Slide-in Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

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

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Rotate Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

/* Flip Animation */
@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

.animate-flip-in-y {
    animation: flipInY 0.8s ease-out forwards;
    perspective: 400px;
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Sticky Header Animation */
header.sticky {
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle Animation */
#mobile-menu-btn svg {
    transition: all 0.3s ease;
}

/* Product Thumbnail Hover */
.relative.overflow-hidden.rounded-lg.cursor-pointer img {
    transition: all 0.3s ease;
}

/* Related Products Hover */
.relative.overflow-hidden.aspect-video .absolute.inset-0 {
    transition: all 0.3s ease;
}

/* Related Products Button */
.relative.overflow-hidden.aspect-video .absolute.inset-0 a {
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.relative.overflow-hidden.aspect-video:hover .absolute.inset-0 a {
    transform: translateY(0);
    opacity: 1;
}

/* Testimonial Rating */
.text-yellow-400 svg {
    transition: all 0.3s ease;
}

/* CTA Section Background */
.bg-blue-600 {
    transition: all 0.3s ease;
}

/* Footer Social Icons */
footer .flex.space-x-4 a {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    header, footer, .no-print {
        display: none;
    }
    main {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}