/* ==========================================================================
   APC ENGINEERING SERVICES - CUSTOM STYLESHEET
   ========================================================================== */

/* Fix horizontal overflow caused by slide-in animations */
html, body {
    overflow-x: hidden;
}

/* --- CSS VARIABLES (Colors) --- */
:root {
    --primary-brand: #0c2c68;   /* Navy Blue */
    --secondary-brand: #dd9000; /* Orange / Gold */
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #eff4ff;        /* Light blue */
    --bg-footer: #1b224b;       /* Footer Color */
}

/* --- GLOBAL TYPOGRAPHY --- */
body {
    font-family: 'Inter Tight', sans-serif;
    font-size: 18px; 
    color: var(--text-dark);
    line-height: 1.6;
}

/* Section Headings */
.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-brand);
}

/* Sub-headings (e.g., 'Hybrid Engineering Model') */
.sub-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-brand);
    margin-bottom: 0.5rem;
}

/* Counter text */
.counter-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-brand);
}

/* Industries (e.g., 'Utilities') */
.industry-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-brand);
    transition: color 0.3s ease;
}
a:hover .industry-title {
    color: var(--secondary-brand) !important;
}

.navbar .nav-item .fw-bold{font-weight: 600 !important;}

/* --- BUTTONS --- */
.btn-custom {
    font-size: 17px;
    padding: 12px 28px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}
/* Capsule Shape */
.btn-capsule {
    border-radius: 50rem !important;
}

/* Primary Filled Button (Default: Orange, Hover: Blue) */
.btn-primary-custom {
    background-color: var(--secondary-brand);
    color: #fff;
    border: 2px solid var(--secondary-brand);
}
.btn-primary-custom:hover {
    background-color: var(--primary-brand);
    color: #fff;
    border-color: var(--primary-brand);
}

.btn-secondary-custom{
    background-color: var(--primary-brand);
    color: #fff;  border: 2px solid var(--primary-brand);
    border-color: var(--primary-brand);
}
.btn-secondary-custom:hover {
    background-color: var(--secondary-brand);
    color: #fff;  border: 2px solid var(--secondary-brand);
   
}







/* Outline Button (Default: Orange Outline, Hover: Blue Filled) */
.btn-outline-custom {
    background-color: transparent;
    color: var(--secondary-brand);
    border: 2px solid var(--secondary-brand);
}
.btn-outline-custom:hover {
    background-color: var(--primary-brand);
    color: #fff;
    border-color: var(--primary-brand);
}

/* --- UTILITY CLASSES --- */
.text-primary-brand { color: var(--primary-brand) !important; }
.text-secondary-brand { color: var(--secondary-brand) !important; }
.bg-light-brand { background-color: var(--bg-light) !important; }
.bg-footer { background-color: var(--bg-footer) !important; }

/* --- NAVIGATION --- */
.navbar-nav .nav-link {
    color: var(--primary-brand);
    font-size: 17px;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--secondary-brand) !important;
}

/* --- HERO SLIDER --- */
.hero-section {
    position: relative;
    background-color: var(--primary-brand);
    margin-top: 5.5rem; /* Exactly offsets the navbar so the slider starts immediately below it */
}
.hero-img {
    height: 85vh; /* Massive, beautiful height */
    object-fit: cover;
}
.slider-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 44, 104, 0.4); 
    z-index: 1;
}

/* Flexbox wrapper to guarantee perfect vertical centering */
.slider-content-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
}
.hero-caption {
    text-align: left;
    max-width: 650px;
}
.hero-caption h2 { text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-caption p {
    font-size: 20px; 
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
.custom-slider-btn {
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    margin: 0 20px; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white; opacity: 0.7; transition: 0.3s;
}
.custom-slider-btn:hover { opacity: 1; background: var(--primary-brand); border-color: var(--primary-brand); }
.custom-slider-btn i { font-size: 24px; color: white; }

/* --- CARDS & LAYOUTS --- */
/* How We Work Cards */
.work-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary-brand) !important;
}

/* Forms */
.form-control-lg {
    font-size: 18px;
    padding: 15px 20px;
}
.form-control:focus {
    box-shadow: none;
    border: 1px solid var(--secondary-brand) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .section-heading { font-size: 2rem; }
    .industry-title { font-size: 24px; }
    .hero-img { height: 70vh; }
    .hero-section { margin-top: 5rem; }
    .custom-slider-btn { display: none; }
}

/* --- INTERNAL PAGE HEADERS --- */
/* --- INTERNAL PAGE HEADERS --- */
/* --- INTERNAL PAGE HEADERS --- */
.page-header-section {
    margin-top: 5.5rem; 
    background-color: var(--primary-brand);
    
    /* Combines the gradient with a dynamic CSS variable for the image */
    background-image: 
        linear-gradient(to right, rgba(12, 44, 104, 0.9), rgba(12, 44, 104, 0.6)), 
        var(--header-img);
        
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-header-section .py-5 {
    padding-top: 2.9rem !important;
    padding-bottom: 2.9rem !important;
}
/* --- CUSTOM TABS (For Services Page) --- */
.custom-tabs .nav-link {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-brand);
    border: 2px solid transparent;
    border-radius: 50rem; /* Pill shape */
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.custom-tabs .nav-link:hover {
    color: var(--secondary-brand);
    background-color: transparent;
}
.custom-tabs .nav-link.active {
    background-color: var(--secondary-brand) !important;
    color: #fff !important;
    border-color: var(--secondary-brand);
}


@media (min-width: 1200px) {
   .page-header-section .display-3 {
        font-size: 54px;
    }
}


 .page-header-section .fs-5 {
    font-size: 1.15rem !important; margin-bottom:0;
}


/* --- HOVER UTILITIES --- */
/* Transitions text color to the secondary brand color (Orange) */
.hover-secondary {
    transition: color 0.3s ease;
}
.hover-secondary:hover {
    color: var(--secondary-brand) !important;
}

/* Subtle image zoom effect for linked cards */
.hover-zoom {
    transition: transform 0.4s ease;
}
.work-card:hover .hover-zoom {
    transform: scale(1.03);
}

.bg-primary-brand {background:#1b224b}

/* --- HEADER & NAVBAR SMOOTH SCROLL TRANSITIONS --- */
.navbar {
    transition: all 0.4s ease-in-out !important;
	background:white;
}

.navbar .navbar-brand img {
    transition: all 0.4s ease-in-out !important;
}

/* Premium Shrink Effect on Scroll */
.navbar.scrolled {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.navbar.scrolled .navbar-brand img {
    height: 55px !important; /* Smoothly shrinks logo down from 65px */
}


/* --- INDEX PAGE: INDUSTRIES OVERLAY CARDS --- */
.industry-card-wrapper {
    display: block;
    background-color: #ffffff;
}

.industry-title-overlay {
   background: rgba(221, 144, 0, 0.50);
    backdrop-filter: blur(3px); /* Modern glass effect */
    transition: background 0.3s ease;
}

.industry-card-wrapper:hover .industry-title-overlay {
     /* Shifts to Orange on hover */
	background: rgba(12, 44, 104, 0.65);
}

/* Ensure image zooms slightly without breaking the rounded corners */
.industry-card-wrapper .hover-zoom {
    transition: transform 0.5s ease;
}

.industry-card-wrapper:hover .hover-zoom {
    transform: scale(1.05);
}


/* --- FOOTER ENHANCEMENTS --- */
.footer-link {
    display: inline-block;
    transition: all 0.3s ease; 
}
#footer-placeholder .text-white-50{font-size: 16px;}
#footer-placeholder h5{font-size: 18px;}
.footer-link:hover {
    color: var(--secondary-brand) !important; /* Turns Orange */
    transform: translateX(5px); /* Smooth glide to the right */
}

.transition-all {
    transition: all 0.3s ease;
}

/* Ensure the divider line uses the brand orange softly */
footer hr.border-secondary {
    border-color: var(--secondary-brand) !important;
}


.col-lg-6 .ratio-4x3 {
    --bs-aspect-ratio: 74%;
}


/* --- CASE STUDY NAVIGATION BUTTONS --- */
.nav-btn {
    background-color: #ffffff;
    color: var(--primary-brand);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--secondary-brand);
    color: #ffffff;
    border-color: var(--secondary-brand);
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    background-color: #f8f9fa;
}


/* --- CUSTOM GOOGLE TRANSLATE STYLES --- */

/* 1. Forcefully hide the Google Translate banner iframe */
iframe.skiptranslate, 
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
    display: none !important;
    visibility: hidden !important;
}

/* 2. Prevent Google from pushing the body down */
body {
    top: 0px !important;
    position: static !important;
}

/* 3. Hide hover tooltips */
#goog-gt-tt, 
.goog-text-highlight {
    display: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}



body.lang-es .navbar-nav .nav-link{
    font-size: 15px !important;
}



body.lang-ml .navbar-nav .nav-link {
    font-size: 13px !important;
}



.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q{background:none !important; box-shadow:none !important}

.lgnu .btn-primary-custom{background: #ffffff !important;
    border: 1px solid #7e7e7e !important;
    font-size: 14px;}

.dropdown-item.active, .dropdown-item:active{background-color: #192f7c !important;}

.lgnu .nav-link {color:#7e7e7e}


.lgnu  .dropdown-item{font-size:14px; padding:4px 10px;}





@media (max-width: 768px) {
 .lgnu .dropdown-menu.show{
        overflow-y: scroll;
    height: 200px;
   
  }
}
