/* Custom CSS for Optihub Website */

/* General Body Styling (optional, as Tailwind handles most) */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Animations (used in Hero section of index.html) */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInFromBottom 0.8s ease-out forwards;
    opacity: 0; /* Ensure it starts hidden */
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Ensure images are responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes extra space below images */
}

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

/* Adjust header padding for content below it */
main {
    padding-top: 80px; /* Adjust this value based on your header's height */
}

@media (min-width: 768px) {
    main {
        padding-top: 96px; /* Adjust for larger screens if header height changes */
    }
}

/* Basic styling for form elements to ensure consistent appearance */
input[type="text"],
input[type="email"],
textarea {
    transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.4); /* optihubRed with transparency */
}

/* Specific styling for the mobile menu transition */
#mobile-menu.translate-x-full {
    transform: translateX(100%);
}

#mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
}

/* Ensure the overlay covers the full screen when active */
#mobile-menu-overlay.hidden {
    display: none;
}
