/* General Styles */
body {
    /* Apply Roboto as the default font for English text */
    font-family: 'Roboto', sans-serif;
    /* Add padding to the top to prevent content from being hidden behind the fixed navbar */
    padding-top: 70px; /* Adjust this value based on your navbar height */
    /* Enable smooth scrolling for anchor links */
    scroll-behavior: smooth;
}

/* Apply Vazir font to Persian text using the :lang pseudo-class */
:lang(fa) {
    font-family: 'Vazir', 'Roboto', sans-serif;
}

/* You can also use HTML attribute selector for elements with lang="fa" */
[lang="fa"] {
    font-family: 'Vazir', 'Roboto', sans-serif;
}

/* Navbar Styles */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar-brand {
    color: #198754; /* Bootstrap primary color */
}

.navbar-nav .nav-link {
    color: #6c757d; /* Bootstrap secondary color */
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #198754; /* Bootstrap primary color */
}

/* Hero Carousel Styles */
#heroCarousel {
    margin-top: -70px; /* Pulls the carousel up to remove the space from the body's padding-top */
}

#heroCarousel .carousel-item {
    height: 100vh;
    min-height: 500px;
    background-color: #ffffff; /* Fallback color set to white */
    position: relative;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This fits the image within the container without cropping */
    object-position: center;
}

/* Remove the dark overlay if captions are removed */
#heroCarousel .carousel-item::after {
    content: none;
}

/* Hide the carousel caption area */
#heroCarousel .carousel-caption {
    display: none !important;
}

/* Styles for visible carousel controls */
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(25, 135, 84, 0.5); /* Semi-transparent green background */
    border-radius: 50%; /* Circular shape */
    padding: 1.5rem; /* Increase padding for a larger background area */
    background-size: 50% 50%; /* Control the size of the default white SVG icon */
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(25, 135, 84, 0.8); /* Darker green on hover */
}

/* Hide arrows by default and show on hover */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}


/* Section Styles */
section {
    padding: 4rem 0; /* Consistent vertical padding */
}

/* Ensure sections have enough padding, especially the first one after the fixed navbar */
#about {
    margin_top: -4rem;
    padding-top: 2rem; /* Reduced top padding to decrease space after carousel */
}
/* About Us Section Column Hover Effect */
#about .col-md-4 .p-4 {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    border-radius: .25rem; /* Match Bootstrap's default rounding */
}

#about .col-md-4:hover .p-4 {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    background-color: #198754; /* Light green background on hover */
    
}
#about .col-md-4:hover .p-4 h4 {
    transition: color 0.3s ease-in-out;
    color: white;
}
#about .col-md-4:hover .p-4 p {
    transition: color 0.3s ease-in-out;
    color: white;
}
/* Portfolio Gallery Styles */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Slightly zoom image on hover */
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 135, 84, 0.7); /* Success color overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1; /* Show overlay on hover */
}

.portfolio-item-overlay h5 {
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.portfolio-item-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* Contact Form Styles */
#contactForm .form-control {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#contactForm .form-control:focus {
    border-color: #198754; /* Bootstrap focus color */
    box-shadow: 0 0 0 0.20rem rgba(25, 135, 84, 0.25);
}

::placeholder {
  color: Grey;
  font-style: italic;
}
/* Footer Styles */
footer {
    background-color: #006e1e; /* Dark background */
}

/* Utility Classes */
.rounded-pill {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    body {
        padding-top: 56px; /* Adjust padding for smaller navbar height */
    }
    #heroCarousel {
        margin-top: -56px; /* Match the smaller navbar height */
    }
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    section {
        padding: 3rem 0;
    }
     #about {
        padding-top: 2rem; /* Keep consistent reduced padding */
    }
}

@media (max-width: 767.98px) {
    #heroCarousel .carousel-item {
        height: 50vh; /* Adjust height for mobile */
    }
}

.btn-instagram {
        color: bg-dark;
}
.btn-whatsapp {
        color: bg-dark;
}
.btn-telegram {
        color: bg-dark;
}
