/* style.css */

/* Global Font */
body { 
    font-family: 'Poppins', sans-serif; 
}

/* Fade In Animation */
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

.fade-in { 
    animation: fadeIn 0.5s ease-in-out; 
}

/* Hero Section Background */
/* Note: You can replace the URL below with 'home-bg.jpg' if you have your own image */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- New Slide Up Animation --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px); /* Start 50px lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End at normal position */
    }
}

/* Apply this class to any element you want to animate */
.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Add hover animation to buttons */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- ATTRACTIVE FORM ANIMATIONS --- */

/* 1. Floating Label Container */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* 2. The Input Field */
.floating-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    background: transparent;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Change border color when clicked */
.floating-input:focus {
    border-color: #166534; /* Brand Green */
    box-shadow: 0 0 0 4px rgba(22, 101, 52, 0.1);
}

/* 3. The Label Text (Starts inside the box) */
.floating-label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: white; /* Hides the line behind text */
    padding: 0 5px;
}

/* 4. The Magic: Move label UP when focused or has text */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0;
    font-size: 12px;
    color: #166534;
    font-weight: bold;
}

/* 5. Shining Button Animation */
.btn-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

/* Lift button up slightly on hover */
.btn-shine:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(22, 101, 52, 0.3);
}

/* The light reflection effect */
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-shine:hover::after {
    left: 100%; /* Slide light across button */
}

/* --- NAVBAR IMPROVEMENTS --- */

/* 1. Link Hover Animation (Underline slide) */
.nav-link {
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #166534; /* Brand Green */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* 2. Dropdown Menu Styling */
.dropdown-group:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 100;
    border: 1px solid #f0f0f0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #4b5563;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f0fdf4; /* Light Green */
    color: #166534;
    padding-left: 25px; /* Slide text right slightly */
}