/* style.css */
/* Import Google Font defined in HTML head */
body {
    font-family: 'Poppins', sans-serif;
}

/* Style for active navigation link */
.nav-link.active {
    color: #2dd4bf; /* text-teal-400 */
    font-weight: 600; /* font-semibold */
}

/* Initial state for elements to be revealed by GSAP */
.reveal {
    opacity: 1; /* Changed from 0 to ensure content is visible even if JS fails */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Fallback if JS/GSAP fails */
}

/* Only hide elements if JavaScript is enabled */
.js-enabled .reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Custom Hero Fade-in Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Ensure scroll-mt applies padding correctly below fixed header */
section[id] {
  scroll-margin-top: 6rem; /* Adjust based on header height + buffer */
}

/* Form status messages */
#form-status.success {
    color: #2dd4bf; /* text-teal-400 */
}

#form-status.error {
    color: #f87171; /* text-red-400 */
}

/* Header shrink effect */
#header {
    transition: padding 0.3s ease;
}

#header.header-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(17, 24, 39, 0.95); /* bg-gray-900 with slightly higher opacity */
}


/* Success animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Add this to make the success message pulse gently */
.bg-teal-500\/20.border.border-teal-500 {
    animation: successPulse 2s ease-in-out 1;
}

/* Make the checkmark animate */
@keyframes checkmarkDraw {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.bg-teal-500\/20.border.border-teal-500 svg path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmarkDraw 1s ease forwards;
}