body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.js-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate-pop {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-animate-pop-visible {
    opacity: 1;
    transform: scale(1);
}

.btn-primary-alt {
    @apply bg-[#D4A536] text-[#0A2940] px-8 py-3 rounded-full font-semibold transition-all duration-300 shadow-lg flex items-center justify-center;
}

.btn-primary-alt:hover {
    @apply bg-[#0A2940] text-[#D4A536] scale-105;
}

.btn-secondary-light {
    @apply bg-white text-[#0A2940] px-8 py-3 rounded-full font-semibold border border-[#0A2940] transition-all duration-300 shadow-lg flex items-center justify-center;
}

.btn-secondary-light:hover {
    @apply bg-[#0A2940] text-white scale-105;
}

.btn-white-outline {
    @apply bg-transparent text-white px-8 py-3 rounded-full font-semibold border-2 border-white transition-all duration-300 flex items-center justify-center;
}

.btn-white-outline:hover {
    @apply bg-white text-[#D4A536] scale-105;
}

/* Custom button styles */
.btn-primary-alt {
    background: #D4A536;
    color: #0A2940;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 24px 0 rgba(212, 165, 54, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-alt:hover {
    background: #0A2940;
    color: #D4A536;
    transform: scale(1.05);
}

/* Hero wave animation (from portfolio.html original) */
@keyframes waveSlow {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(-5%) translateY(5%);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

.animate-wave-slow {
    animation: waveSlow 15s ease-in-out infinite;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

@keyframes floatAlt {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(5px) rotate(-5deg);
    }
}

.animate-float-alt {
    animation: floatAlt 10s ease-in-out infinite;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

/* Animation classes for JavaScript (initial hidden state) */
.js-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate-pop {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-animate-pop-visible {
    opacity: 1;
    transform: scale(1);
}

/* Navbar specific styles and animations (from provided services/index HTML) */
.navbar-link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    overflow: hidden;
}

.navbar-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #D4A536;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    transform: translateX(0);
}

/* Mobile menu link hover animation */
#mobile-menu a {
    position: relative;
    transition: color 0.2s ease;
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #D4A536;
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

#mobile-menu a:hover::after {
    width: 70%;
}

/* Custom styles for portfolio hover effect (from original portfolio.html) */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-xl */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* shadow-2xl */
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 41, 64, 0.8) 0%, rgba(10, 41, 64, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 20;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    object-fit: cover;
    /* Ensures image covers the area */
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Footer specific styles */
.footer-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #D4A536;
    transform: translateX(5px);
}