/* ========================
   1. BRAND VARIABLES & RESET
======================== */
:root {
    --primary-blue: #23B0DE;    /* Bright Blue */
    --secondary-blue: #3C8EC8;  /* Corporate Blue */
    --corporate-gray: #767678;  /* Slate Gray */
    --dark-bg: #111111;         /* Deep Black */
    --light-bg: #f4f7fb;        /* Soft Off-White */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s ease; }
ul { list-style: none; }

/* ========================
   2. HEADER & NAVIGATION
======================== */
/* ========================
   2. HEADER & NAVIGATION
======================== */
header {
    background: var(--dark-bg);
    color: var(--white);
    padding: 10px 0; /* Reduced padding slightly to balance the bigger logo */
    border-bottom: 4px solid var(--secondary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px; /* Added a minimum height to accommodate the larger logo */
}

/* Logo and Text Alignment */
.logo-container {
    display: flex;
    align-items: center; /* Vertical centering */
    gap: 12px;           /* Space between logo and text */
    text-decoration: none;
}

/* The Logo Image */
.my-logo {
    height: 70px;        /* Matches the professional look in your screenshot */
    width: auto;
    display: block;
}

/* The Text Grouping */
.logo-text-group {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;      /* White for 'MPC' */
    letter-spacing: 1px;
    line-height: 1;
    font-family: 'Arial Black', sans-serif; /* Bold corporate font */
}

.brand-highlight {
    color: var(--primary-blue); /* Your #23B0DE blue for 'SOLUTIONS' */
}

/* Responsive fix for mobile */
@media (max-width: 480px) {
    .brand-name {
        font-size: 1.4rem;
    }
    .my-logo {
        height: 50px;
    }
}
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary-blue); 
}

.btn-call {
    background: var(--secondary-blue);
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--white) !important;
    font-weight: bold;
}

.btn-call:hover { 
    background: var(--primary-blue); 
}

/* ========================
   3. SLIDER (HOME PAGE)
======================== */
.slider-container {
    position: relative;
    height: 550px;
    overflow: hidden;
    background-color: #000;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    /* These three lines are the most important for manual images */
    background-size: cover;      /* Fits the image to the screen */
    background-position: center; /* Keeps the center of the image visible */
    background-repeat: no-repeat;
    
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.slide-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 15px;
    color: white;
    font-size: 24px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    margin: 0 10px;
    transform: translateY(-50%);
}

.next { right: 0; }
.prev:hover, .next:hover { background: var(--primary-blue); }

.fade { animation: fadeEffect 1s; }
@keyframes fadeEffect { from {opacity: 0.5} to {opacity: 1} }

/* ========================
   4. PAGE HEADERS (ABOUT/SERVICES)
======================== */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--secondary-blue));
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ========================
   5. CARDS & GRIDS
======================== */
.mid-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eef0f2;
    transition: 0.3s ease;
}

.service-card i {
    font-size: 45px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-bg);
    margin-bottom: 12px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--primary-blue);
}

/* ========================
   6. BUTTONS & UI
======================== */
.btn-primary {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ========================
   7. FOOTER
======================== */
footer {
    background: var(--dark-bg);
    color: #999;
    text-align: center;
    padding: 40px 0;
    border-top: 5px solid var(--corporate-gray);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ========================
   8. RESPONSIVE DESIGN
======================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .slider-container { height: 400px; }
    .slide-content h2 { font-size: 1.8rem; }
}
/* ========================
   9. SERVICES PAGE STYLING
======================== */

/* Background toggle for clear separation */
.services-section.light-bg {
    background-color: var(--light-bg); /* Soft gray/blue */
}

.services-section {
    background-color: var(--white); /* White background for Hardware section */
}

/* Section Titles with Blue Accent */
.services-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 50px;
    position: relative;
}

.services-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Service Card Enhancements */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Call to Action Area at bottom */
.services-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    border-top: 1px solid #eee;
}

.services-cta h3 {
    font-size: 1.8rem;
    color: var(--corporate-gray);
    margin-bottom: 15px;
}

/* Responsive Grid alignment */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }
}
/* ========================
   10. ENHANCED FOOTER
======================== */
footer {
    background: var(--dark-bg);
    color: #d1d1d1;
    padding: 60px 0 20px;
    border-top: 5px solid var(--primary-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Makes the brand col wider */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #d1d1d1;
    font-size: 0.95rem;
}

.footer-col ul li a i {
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--primary-blue);
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
}
/* ========================
   11. CONTACT SECTION REFINEMENT
======================== */
.contact-bg {
    background-color: var(--white);
    padding-bottom: 100px;
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(35, 176, 222, 0.1); /* Very light version of your blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.contact-card:hover .contact-icon-box {
    background: var(--primary-blue);
}

.contact-card:hover .contact-icon-box i {
    color: var(--white);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.contact-link {
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Enhanced Map Container */
.map-wrapper {
    margin-top: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 5px solid var(--white);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    display: block;
    border: 0;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .contact-grid {
        gap: 20px;
    }
    .map-wrapper iframe {
        height: 300px;
    }
}
/* ========================
   12. SERVICE MODAL STYLES
======================== */
.modal {
    display: none; /* Hidden by default - JS turns this to 'block' */
    position: fixed;
    z-index: 2000; /* Higher than the sticky header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Dark semi-transparent overlay */
    backdrop-filter: blur(5px); /* Modern blur effect on the background */
}

.modal-content {
    background-color: var(--white);
    margin: 8% auto; /* Centers the box vertically */
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px; /* Slim professional width */
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
    from { transform: translateY(-80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--corporate-gray);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover { 
    color: var(--primary-blue); 
}

#modalIcon {
    font-size: 60px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

#modalTitle {
    color: var(--dark-bg);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

#modalDescription {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#modalDetails {
    text-align: left; /* Easier to read long descriptions */
    padding: 10px 0;
}

/* Make sure the clickable card shows the pointer hand */
.service-card {
    cursor: pointer;
}

/* Responsive Modal Adjustments */
@media (max-width: 480px) {
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
    #modalTitle {
        font-size: 1.5rem;
    }
}
/* ========================
   13. CLIENTS PAGE STYLES
======================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.client-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.client-logo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
/* Styling for official client logos */
.client-img {
    width: 100%;       /* Fills the circle width */
    height: 100%;      /* Fills the circle height */
    object-fit: contain; /* Ensures the logo isn't stretched or cut off */
    padding: 10px;     /* Gives the logo some breathing room inside the circle */
}

/* Optional: If the logo is too bright, you can add a hover effect */
.client-card:hover .client-img {
    transform: scale(1.1);
    transition: 0.3s ease;
}

.client-logo-placeholder i {
    font-size: 2rem;
    color: var(--secondary-blue);
}

.client-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--primary-blue);
}

/* Testimonial Styling */
.testimonial-container {
    max-width: 700px;
    margin: auto;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.testimonial-card h4 {
    margin-top: 15px;
    color: var(--secondary-blue);
}