/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 90px; /* Perfectly matches header height to eliminate any gaps */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header Styles */
header {
    background-color: #283238; /* Exact background color matching footer */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Subtle shadow rather than a harsh border */
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Takes full height of the header */
}

/* Logo Image Style */
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.tagline {
    border-left: 2px solid #ffffff;
    padding-left: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.logo-img {
    max-height: 60px; /* Adjust this value if your logo looks too big or small */
    width: auto;
    display: block;
}

nav ul.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav {
}

nav ul.nav-links > li {
    position: relative;
    padding: 33px 0; /* Expanded to ensure dropdowns attach seamlessly to the bottom of the header */
}

nav a {
    text-decoration: none;
    color: #d1d1d1;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2a2a2a;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-radius: 4px;
    z-index: 200;
    list-style: none;
    padding: 10px 0;
    border-top: 3px solid #0056b3;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #d1d1d1;
    font-size: 15px;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Slideshow Container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    background: #222;
}

.mySlides {
    display: none;
}

/* Ensuring slider images are uniformly sized */
.mySlides img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.4s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #ffffff;
    font-size: 36px;
    padding: 8px 12px;
    position: absolute;
    bottom: 20%;
    width: 100%;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Section Styling */
.about-section, .brands-section, .video-section, .testimonials-section {
    padding: 80px 0;
    text-align: center;
}

.about-section, .video-section, .testimonials-section {
    background: #f8f9fa;
}

.about-section h2, .brands-section h2, .video-section h2, .testimonials-section h2 {
    color: #0056b3;
    font-size: 32px;
    margin-bottom: 20px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
}

/* About Section Subsections */
.about-subsection {
    margin-bottom: 60px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-subsection h3 {
    color: #0056b3;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

.about-subsection p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.about-image-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Feature Sections (We Build, Innovation, Quality) */
.feature-section {
    padding: 80px 0;
}

/* Career page specific styles */
.career-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(180deg, rgba(10,27,39,0.95) 0%, rgba(18,44,62,0.96) 100%);
    color: #ffffff;
    text-align: center;
}

.career-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.career-hero .container {
    position: relative;
    z-index: 1;
}

.career-hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 20px;
}

.career-hero p {
    max-width: 820px;
    margin: auto;
    font-size: 1.1rem;
    color: #d8e4f1;
}

.breadcrumb {
    margin-top: 18px;
    font-size: 0.95rem;
    color: #cbd7e4;
}

.breadcrumb a {
    color: #9fc8ff;
    text-decoration: none;
}

.breadcrumb span {
    color: #d8e4f1;
}

.career-overview {
    padding: 80px 0;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.career-card {
    background: #f8fafc;
    border: 1px solid #e3eaef;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(9, 30, 45, 0.08);
}

.career-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    color: #1a3b5d;
}

.career-card p {
    line-height: 1.75;
    color: #4b5d72;
}

.cta-button {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 30px;
    border-radius: 999px;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.25s ease;
}

.cta-button:hover {
    background-color: #003f7b;
}

.site-footer {
    background: #283238;
    color: #d6dfe9;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-column p,
.footer-column li,
.footer-column a {
    color: #d6dfe9;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95rem;
}

.feature-section:nth-child(even) {
    background-color: #f8f9fa; /* Alternates background color */
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.feature-text h2 {
    color: #0056b3;
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-image {
    flex: 1;
    min-width: 300px;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Reverse layout for alternating sections */
.reverse-layout .feature-text {
    order: 2;
}
.reverse-layout .feature-image {
    order: 1;
}

/* Grid layout for Brands */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    color: #666;
}

/* Testimonial Section Styles */
.testimonial-card {
    background: #ffffff;
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.customer-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #0056b3;
}

.comment {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the footer to the bottom evenly */
}

.customer-footer h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

.customer-footer span {
    color: #777;
    font-size: 14px;
}

/* Video Section Styles */
.video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #004494;
}

/* Background Images for Sections */
#we-build {
    background-image: url('BackGround/black_shadow_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#we-build h2,
#we-build p {
    color: white;
}

#brands {
    background-image: url('BackGround/brand_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#brands h2,
#brands p {
    color: white;
}

#innovation {
    background-image: url('BackGround/inno_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#innovation h2,
#innovation p {
    color: white;
}

#quality-assurance {
    background-image: url('BackGround/black_shadow_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#quality-assurance h2,
#quality-assurance p {
    color: white;
}

#customer-feedback {
    background-image: url('BackGround/customer_feedback_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#customer-feedback h2 {
    color: white;
}

#gain-experience {
    background-color: #1f2426;
}

#gain-experience h2 {
    color: white;
}

/* Footer Styling */
.site-footer {
    background-color: #1a1a1a;
    color: #d1d1d1;
    padding: 60px 0 0 0;
    margin-top: auto;
    text-align: left;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
    background: #ffffff; /* Gives logo a white backdrop if it is a transparent PNG */
    padding: 5px;
    border-radius: 4px;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.6;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #0056b3;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-links ul li a:hover {
    color: #0056b3;
}

.footer-contact-info p {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-contact-info strong {
    color: #ffffff;
}

.footer-bottom {
    background-color: #111111;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    font-size: 14px;
    color: #aaaaaa;
    margin: 0;
}

/* Mobile responsiveness for alternating layout */
@media (max-width: 768px) {
    .reverse-layout .feature-text {
        order: 1;
    }
    .reverse-layout .feature-image {
        order: 2;
    }
}
.brands-header {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    min-height: 300px; /* Adjust this to your preferred banner height */
    background-color: #111; /* Fallback color so you can see it's there */
    overflow: hidden;
}

.brands-header .banner-content {
    position: absolute;
    z-index: 1;
    width: 100%;
}

.brands-header img.banner-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 0; /* Keeps image behind the absolute content */
}


/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #000000;
    padding-top: 90px;
}

/* Container for image and buttons */
.modal-slideshow-container {
    position: relative;
    width: 100%;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

#modalImg {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

/* Pinned Buttons */
.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 20px 15px;
    color: #F89522; /* Quazi Orange */
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    text-decoration: none;
    z-index: 10;
}

/* Position Left and Right */
.modal-prev { left: 5px; }
.modal-next { right: 5px; }

.modal-prev:hover, .modal-next:hover {
    color: #ffffff;
    background-color: rgba(248, 149, 34, 0.4);
    border-radius: 5px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* --- Header & Navigation --- */
header {
    background-color: #283238;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-section { display: flex; align-items: center; gap: 20px; }
.logo-img { max-height: 60px; width: auto; display: block; }

.tagline {
    border-left: 2px solid #ffffff;
    padding-left: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

nav ul.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul.nav-links > li { position: relative; padding: 33px 0; }
nav a { text-decoration: none; color: #d1d1d1; font-weight: 600; transition: color 0.3s; }
nav a:hover, nav a.active { color: #ffffff; }

/* --- Dropdown --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2a2a2a;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-radius: 4px;
    z-index: 200;
    padding: 10px 0;
    border-top: 3px solid #0056b3;
}

.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; color: #d1d1d1; text-decoration: none; }
.dropdown-menu li a:hover { background-color: #3a3a3a; color: #ffffff; }

/* --- Brand Header Banner --- */
.brands-header {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #111;
    overflow: hidden;
}

.banner-img { width: 100%; height: auto; display: block; position: relative; z-index: 0; opacity: 0.7; }
.banner-content { position: absolute; z-index: 1; width: 100%; }

/* --- Filters --- */
.brand-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 45px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.filter-btn.active { color: #F89522; }
.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #F89522;
}

/* --- Brand Grid --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 80px;
}

.brand-card {
    background: #000000;
    border: 1px solid #2f383e;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.brand-card:hover { transform: translateY(-5px); background: #111; border-color: #F89522; }
.brand-placeholder img { max-width: 65%; height: auto; }

/* --- Modal Overlay --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #F89522;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    color: white;
    text-align: center;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    color: #F89522;
    font-size: 35px;
    cursor: pointer;
}

/* Modal Overlay Background */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px); /* Modern blur effect */
}

/* Modal Content Box */
.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #F89522;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    color: white;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    color: #F89522;
    font-size: 35px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-modal:hover { transform: scale(1.1); }

#modalImg {
    max-width: 100%;
    max-height: 350px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}



#modalImg { max-width: 100%; max-height: 350px; margin-bottom: 20px; border-radius: 8px; }
#modalTitle { color: #F89522; margin-bottom: 15px; }

/* --- Footer --- */
.site-footer { background-color: #1a1a1a; color: #d1d1d1; padding: 60px 0 0; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-logo { max-height: 50px; margin-bottom: 20px; background: #fff; padding: 5px; border-radius: 4px; }
.footer-bottom { background-color: #111; text-align: center; padding: 20px 0; border-top: 1px solid #333; }

/* --- Responsiveness --- */
@media (max-width: 991px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .brands-grid { grid-template-columns: 1fr; } .filter-btn { padding: 10px 20px; } }