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

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

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

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Header Adjustments */
body {
    padding-top: 0;
}

/* Hero Slider */
#hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 1s ease-in-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

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

/* Loading State */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Responsive Utilities */
@media (max-width: 1024px) {
    body {
        padding-top: 0;
    }
}

/* Form Validation */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

input:valid,
textarea:valid {
    border-color: #22c55e;
}

/* Gallery Hover Effects */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Management Carousel */
.management-carousel {
    overflow: hidden;
}

/* News Section */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Button Hover Effects */
button:not(:disabled):hover,
a.btn:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Service Cards */
.service-card {
    transition: all 0.5s ease;
}

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

/* Footer Links */
footer a:hover {
    color: #fbbf24;
    transition: color 0.3s ease;
}

/* Contact Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Dropdown Menu Animations */
.dropdown-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Hero Slider Indicators */
.slider-indicator {
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background-color: #22c55e;
    transform: scale(1.25);
}

/* Management Tab Transitions */
.tab-content {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Gallery Category Filters */
.category-filter {
    transition: all 0.3s ease;
}

.category-filter.active {
    background-color: #f97316;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Tab Switching Animations */
.tab-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button.active {
    transform: scale(1.05);
}

/* Carousel Transitions */
#gallery-carousel,
#management-carousel {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Slide In Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

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

/* Scale Up Animation */
@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scale-up {
    animation: scaleUp 0.3s ease-out;
}

/* Hover Glow Effect */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
    background-size: 1000px 100%;
}

/* Dropdown Fade In */
.dropdown-fade-in {
    animation: fadeIn 0.2s ease-in;
}

/* Card Flip Animation */
@keyframes cardFlip {
    from {
        transform: rotateY(90deg);
    }
    to {
        transform: rotateY(0deg);
    }
}

.card-flip {
    animation: cardFlip 0.6s ease-out;
}

/* Progress Bar Animation */
@keyframes progress {
    from {
        width: 0%;
    }
}

.progress-bar {
    animation: progress 1s ease-out;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Print Styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
}

/* Accessibility */
.focus-visible:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

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