/* Custom styles for P G Package */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
}

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

.animate-fade-up-delay {
    animation: fade-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-up-delay-2 {
    animation: fade-up 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.mobile-link:hover {
    border-bottom-color: rgba(45, 90, 61, 0.2);
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: rgba(45, 90, 61, 0.6);
}

.menu-tab.active {
    background: white;
    color: #2D5A3D;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.15);
}

.menu-tab:hover:not(.active) {
    color: #2D5A3D;
    background: rgba(255, 255, 255, 0.5);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: #9bb99a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #719d6c;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #2D5A3D;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
