/* style.css */

/* Custom Font Imports */
body {
    font-family: 'Roboto', sans-serif;
}

.font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* --- Header & Navigation --- */
#header {
    /* Start with a semi-transparent background for a modern effect */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.nav-link:not(.bg-teal-600)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d9488; /* teal-600 */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #0d9488 !important; /* teal-600 */
    font-weight: 700;
}

#header.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- Hero Slider (Home Page) --- */
#home-slider {
    position: relative;
}
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.slider-item.active {
    opacity: 1;
}
.slider-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.caption {
    position: relative;
    z-index: 10;
    padding: 1rem;
    animation: fadeInDown 1s ease-out;
}
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 1rem;
}

/* --- Page Title Section --- */
.page-title-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(rgba(13, 148, 136, 0.8), rgba(15, 118, 110, 0.9)), url('images/slider/slide2.jpg') no-repeat center center;
    background-size: cover;
}

/* --- Cards --- */
.service-card, .feature-card, .category-card {
    background-color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover, .feature-card:hover, .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.feature-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #14b8a6; /* teal-500 */
}
.category-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.category-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* --- Gallery Page --- */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* --- Contact Form --- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #0d9488; /* teal-600 */
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.3);
}

/* --- Testimonial Card Style --- */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* --- Keyframe Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
