@layer utilities {
    .grayscale-hover {
        filter: grayscale(100%);
        transition: filter 0.4s ease-in-out, transform 0.3s ease;
    }

    .grayscale-hover:hover {
        filter: grayscale(0%);
        transform: scale(1.02);
    }
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.image-wrapper img {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
    transition: transform 0.3s ease, filter 0.4s ease-in-out;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 10px;
    gap: 8px;
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    transform: translateY(0);
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

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

#animated-word {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

#animated-word.fade-out {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

#animated-word.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-section {
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: 65% center;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: 65% center;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-gradient {
    z-index: 1;
}

#image-modal {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

#image-modal.show {
    display: flex !important;
    opacity: 1;
}

#modal-image {
    animation: modalImageScale 0.3s ease-out;
}

@keyframes modalImageScale {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#close-modal {
    cursor: pointer;
}

#close-modal:hover {
    transform: rotate(90deg);
}

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

.animate-shimmer {
    animation: shimmer 2s infinite linear;
}

.social-icon {
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-facebook:hover {
    border-color: rgba(59, 89, 152, 0.6);
    background: rgba(59, 89, 152, 0.1);
    box-shadow: 0 0 20px rgba(59, 89, 152, 0.4);
}

.social-instagram:hover {
    border-color: rgba(225, 48, 108, 0.6);
    background: rgba(225, 48, 108, 0.1);
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.4);
}

.social-email:hover {
    border-color: rgba(234, 179, 8, 0.6);
    background: rgba(234, 179, 8, 0.1);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

.social-phone:hover {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.stat-badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: badge-shimmer 3s ease-in-out infinite;
}

@keyframes badge-shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-intro,
.hero-title,
.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-intro {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation-delay: 0.6s;
}

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


.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards, bounce 2s infinite;
    animation-delay: 1s, 1s;
}
