/* 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;
}
/* 16. Responsive Header & Hamburger Menu */

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color); /* <-- ADD THIS LINE */
    z-index: 1001; /* Ensure it's on top */
}

/* --- Mobile View (< 992px) --- */
@media (max-width: 991.98px) {
    .main-header .logo a {
        font-size: 1.2rem; /* Slightly smaller logo text on mobile */
    }

    .nav-toggle {
        display: block; /* Show hamburger button */
    }

    .main-nav {
        /* CRITICAL: Hide the navigation menu by default on mobile */
        display: none;
        
        /* Style the dropdown menu */
        position: absolute;
        top: 65px; /* Position it just below the header (adjust if needed) */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav.is-active {
        display: block; /* This class is toggled by JavaScript to show the menu */
    }

    .main-nav .nav {
        flex-direction: column; /* Stack nav links vertically */
        padding: 0.5rem 0;
    }

    .main-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-link {
        padding: 0.8rem 1rem;
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}
/* 17. Project Carousel Styling */
#projectCarousel .carousel-item {
    /* This sets the height of the carousel images */
    height: 250px; /* You can adjust this value */
}

#projectCarousel .carousel-item img {
    /* This ensures images fill the space without distortion */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#projectCarousel .carousel-caption {
    /* Adds a semi-transparent background for better text readability */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
}
/* 18. New ISP Pricing Card Styles */

.pricing-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    position: relative; /* Needed for the "Best Value" tag */
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card .card-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.pricing-card .card-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.pricing-card .card-header h3 small {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-card .feature-list li {
    margin-bottom: 15px;
    color: #495057;
    display: flex;
    align-items: center;
}

.pricing-card .feature-list .fa-check {
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
}

.pricing-card .btn-get-started {
    background-color: #2c3e50; /* Dark button background */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: auto; /* Pushes button to the bottom */
}

.pricing-card .btn-get-started:hover {
    background-color: #34495e; /* Slightly lighter on hover */
    color: #ffffff;
}

/* Featured Card Styling */
.pricing-card.featured {
    border-color: var(--primary-color);
}

.pricing-card .best-value-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card.featured .btn-get-started {
    background-color: var(--primary-color);
}

.pricing-card.featured .btn-get-started:hover {
    background-color: #0b5ed7;
}
