/* FILE: assets/css/mywebsite-style.css */

/* 1. Color Palette & Fonts */
:root {
    --primary-color: #0d6efd;  /* Professional Bootstrap Blue */
    --secondary-color: #f8f9fa; /* Light Gray Background */
    --text-color: #212529;      /* Dark Charcoal for Text */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Arial', sans-serif;
}

/* 2. General Body Styles */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: #ffffff; /* Clean white background */
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700; /* Bold headings */
}

/* 3. Header Styling */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6; /* Subtle bottom border */
}

.main-header .logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-header .nav-link {
    color: #495057;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-header .nav-link:hover {
    color: var(--primary-color);
}

/* 4. Main Content & Card Styling */
main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-bg {
    background-color: var(--secondary-color);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Lift card on hover */
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; /* Deeper shadow on hover */
}

/* 5. Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background-color: #0b5ed7; /* Darker blue on hover */
    border-color: #0a58ca;
}

/* 6. Footer Styling */
.main-footer {
    background-color: #343a40; /* Dark background for footer */
    color: #f8f9fa; /* Light text on dark background */
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 2rem;
}

.main-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #ffffff;
}
/*
=================================
Widescreen Carousel Style
=================================
*/

#adCarousel .carousel-item {
    /* This sets the container height. Adjust this value to make it taller or shorter. */
    height: 260px; 
    overflow: hidden; /* Hides any part of the image that might spill out. */
}

#adCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    
    /* This is the magic part: it tells the image to cover the entire space
       without stretching or squashing, just like a widescreen TV. */
    object-fit: cover; 
    
    /* This ensures the image is centered within the frame. */
    object-position: center; 
}
/* 7. Carousel Image Sizing */

.carousel-inner .carousel-item {
  /* This sets a fixed height for every slide */
  height: 450px; /* <-- You can change this value (e.g., 400px, 500px) */
  background-color: #555; /* A dark background for any loading delay */
}

.carousel-inner .carousel-item img {
  /* This makes the image fill the container */
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is the magic property */
  /* 'cover' scales the image to fill the space, cropping it if necessary */
}
/* 8. Floating WhatsApp Button */

.whatsapp-fl {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000; /* Ensures it's on top of other content */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-fl:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    color: #FFF;
}
/* 9. Social Media Icons in Footer */

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #495057; /* Dark gray background */
    color: #fff; /* White icon */
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color); /* Your site's primary blue on hover */
    transform: translateY(-3px); /* Lift icon on hover */
    color: #fff;
}
/* 10. About Page - Team Member Image Sizing */

.team-section .team-member img {
    width: 120px;  /* <-- Change to smaller size */
    height: 120px; /* <-- Change to smaller size */
    object-fit: cover;
}
/* 11. About Page - Mission Section Image Sizing */

.about-mission-img {
    max-height: 400px; /* Adjust this value as needed */
    width: 100%;
    object-fit: cover; /* Prevents the image from stretching */
}
/* 12. Portfolio Page Styling */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    text-align: left;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.portfolio-item .btn {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info h5 {
    font-weight: 700;
}
/* 13. Single Blog Post Image Styling */

.blog-post-image {
    max-height: 400px !important; /* <-- Added !important */
    width: 100% !important;       /* <-- Added !important */
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* 15. Header Logo and Text Styling */

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #212529; /* Dark text color */
}

.logo a:hover {
    text-decoration: none;
}

.navbar-logo {
    height: 45px; /* Adjust this value as needed */
    width: auto;
}