/* Custom CSS for Zahret Al Bustan Landing Page */

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

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

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

::-webkit-scrollbar-thumb {
    background: #dc2626;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #dc2626;
    font-weight: 600;
}

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

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
}

/* Form Input Focus Styles */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Button Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animation for elements */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Border Accent Animation */
.border-accent-grow {
    position: relative;
}

.border-accent-grow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #dc2626;
    transition: width 0.5s ease;
}

.border-accent-grow:hover::before {
    width: 100%;
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Text Selection */
::selection {
    background-color: rgba(220, 38, 38, 0.3);
    color: #000;
}

/* Footer Links Hover Effect */
footer a:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Navbar Transparency */
#mainNav {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

#mainNav.bg-white {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth transitions for navbar elements */
.logo-icon, .nav-link, #mobileMenuBtn {
    transition: all 0.3s ease-in-out;
}

/* Print Styles */
@media print {
    button, .no-print, nav, #scrollToTop {
        display: none !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        scroll-margin-top: 100px;
    }
    
    footer .grid {
        gap: 30px;
    }
    
    /* Mobile navbar adjustments */
    #mainNav.bg-transparent {
        background-color: rgba(0, 0, 0, 0.5) !important;
    }
}
