/* ==========================================================================
   Galfar MANPOWER AGENCY — PREMIUM STYLING ECOSYSTEM (newdesign.css)
   ========================================================================== */

:root {
   --primary: #0284c7;
   --primary-dark: #0369a1;
   --primary-glow: rgba(2, 132, 199, 0.15);
   --dark-neutral: #0f172a;
   --light-bg: #f8fafc;
   --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
   --hover-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
   --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
   font-family: 'Inter', sans-serif;
   color: #334155;
   overflow-x: hidden;
   background-color: #ffffff;
}

h1, h2, h3, h4, .home-section__title {
   font-family: 'Plus Jakarta Sans', sans-serif;
   font-weight: 700;
   color: var(--dark-neutral);
}

/* Animations */
.reveal-on-scroll {
   animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
   from { opacity: 0; transform: translateY(30px); }
   to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
   0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
   70% { box-shadow: 0 0 0 12px rgba(2, 132, 199, 0); }
   100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* Premium Navigation & Increased Logo Configurations */
.home-nav {
   background: rgba(255, 255, 255, 0.9) !important;
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border-bottom: 1px solid rgba(226, 232, 240, 0.8);
   padding: 14px 0;
   transition: var(--transition);
}

/* 1. Base Styles (Default/Desktop) */
.navbar-brand-premium img {
    height: 110px !important; /* Increased for desktop */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.iso-logo-mobile {
    height: 110px !important; /* Increased for desktop */
    width: auto;
    object-fit: contain;
}

.navbar-brand-premium {
    display: flex;
    align-items: center;
    padding: 0 !important;
}

/* 2. Mobile specific override (max-width: 991px) */
@media (max-width: 991px) {
    .navbar-brand-premium img {
        height: auto !important; /* Let the height be determined by width */
        max-height: 65px;       /* Set a reasonable maximum */
        width: auto;
    }
    
    .iso-logo-mobile {
        height: auto !important;
        max-height: 65px;
        width: auto;
    }
    
    .home-nav {
        min-height: auto !important; /* Allow the nav to wrap content naturally */
        padding: 10px 0;
    }
}

.home-nav .nav-link {
   font-weight: 600;
   color: #334155 !important;
   padding: 10px 20px !important;
   transition: var(--transition);
   border-radius: 8px;
}

.home-nav .nav-item.active .nav-link, 
.home-nav .nav-link:hover {
   color: var(--primary) !important;
   background: var(--primary-glow);
}

.navbar-toggler {
   border: none;
   padding: 6px;
}

.navbar-toggler:focus {
   box-shadow: none;
}

/* Premium Banner Section layered beautifully over banner1.avif */
.home-hero-premium {
  position: relative;
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
              url('../images/banner1.avif');
  background-size: cover;
  background-position: center;
  min-height: 40vh; /* Responsive: 40% of screen height instead of 500px */
  padding: 40px 0;
}

/* Ensure the container stays above the background */
.hero-content-relative {
  position: relative;
  z-index: 1;
}

.hero-tag {
   background: #e0f2fe;
   color: var(--primary-dark);
   padding: 6px 16px;
   border-radius: 30px;
   font-weight: 600;
   font-size: 0.85rem;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin-bottom: 24px;
}

.hero-title-premium {
   font-size: 2.6rem;
   line-height: 1.25;
   background: linear-gradient(135deg, #0f172a 20%, #0284c7 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   margin-bottom: 22px;
}

.hero-text-premium {
   color: #475569;
   font-size: 1.1rem;
   line-height: 1.65;
   margin-bottom: 35px;
   max-width: 600px;
}

.btn-premium-primary {
   background: var(--primary);
   color: #ffffff !important;
   font-weight: 600;
   padding: 14px 32px;
   border-radius: 8px;
   border: none;
   display: inline-block;
   transition: var(--transition);
   animation: pulseGlow 2s infinite;
   text-decoration: none;
}

.btn-premium-primary:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
   text-decoration: none;
}

.btn-premium-outline {
   border: 2px solid #cbd5e1;
   color: #475569 !important;
   font-weight: 600;
   padding: 12px 30px;
   border-radius: 8px;
   display: inline-block;
   margin-left: 12px;
   transition: var(--transition);
   text-decoration: none;
}

.btn-premium-outline:hover {
   background: #f1f5f9;
   border-color: #94a3b8;
   text-decoration: none;
}

.hero-visual-container {
   position: relative;
   border-radius: 20px;
   overflow: hidden;
   box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
   background: #fff;
   padding: 8px;
}

.hero-visual-container img {
   border-radius: 14px;
   width: 100%;
   object-fit: cover;
   height: 390px;
}

/* Trust Metrics Panel styling */
.home-stats__inner {
   box-shadow: var(--card-shadow);
   border-radius: 18px;
   background: #ffffff;
   padding: 35px;
   border: 1px solid #f1f5f9;
}

.home-stat__number {
   color: var(--primary);
   font-size: 2.2rem;
   font-family: 'Plus Jakarta Sans';
   font-weight: 800;
}

.home-stat__label {
   color: #64748b;
   font-size: 0.95rem;
   font-weight: 500;
   margin-top: 4px;
}

/* Eyebrows & Section Typography Headings */
.home-section__eyebrow {
   color: var(--primary);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1.5px;
   font-size: 0.85rem;
   display: block;
}

.home-section__eyebrow-blue {
   color: var(--primary-dark);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1.5px;
   font-size: 0.85rem;
   display: block;
}

.home-section__title {
   font-size: 2.3rem;
   margin-top: 6px;
   letter-spacing: -0.5px;
}

/* Capabilities 15-Card Responsive Image System */
.services-grid-premium {
   display: grid;
   grid-template-columns: repeat(1, minmax(0, 1fr));
   gap: 28px;
   padding: 20px 0;
}

.galfar-service-card {
   background: #ffffff;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: var(--card-shadow);
   border: 1px solid #f1f5f9;
   transition: var(--transition);
   display: flex;
   flex-direction: column;
   height: 100%;
}

.galfar-service-card:hover {
   transform: translateY(-8px);
   box-shadow: var(--hover-shadow);
   border-color: rgba(2, 132, 199, 0.25);
}

.galfar-img-wrapper {
   position: relative;
   width: 100%;
   aspect-ratio: 4 / 3;
   overflow: hidden;
   background: #f8fafc;
}

.galfar-img-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: var(--transition);
}

.galfar-service-card:hover .galfar-img-wrapper img {
   transform: scale(1.06);
}

.galfar-card-content {
   padding: 24px;
   flex-grow: 1;
   display: flex;
   flex-direction: column;
}

.galfar-card-title {
   font-size: 1.2rem;
   margin-bottom: 12px;
   font-weight: 700;
   color: var(--dark-neutral);
}

.galfar-card-text {
   font-size: 0.95rem;
   color: #64748b;
   line-height: 1.6;
   margin: 0;
}

/* Presence Section Global Grid Elements */
.global-presence-premium {
   background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
   padding: 90px 0;
}

.presence-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 20px;
   margin-top: 45px;
}

.presence-card {
   background: #ffffff;
   border: 1px solid #e2e8f0;
   border-radius: 14px;
   padding: 24px 16px;
   text-align: center;
   box-shadow: var(--card-shadow);
   transition: var(--transition);
}

.presence-card:hover {
   transform: scale(1.04);
   border-color: var(--primary);
   box-shadow: var(--hover-shadow);
}

.presence-card img {
   height: 46px;
   width: auto;
   border-radius: 6px;
   box-shadow: 0 4px 12px rgba(0,0,0,0.06);
   margin-bottom: 14px;
}

.presence-card span {
   display: block;
   font-weight: 700;
   color: var(--dark-neutral);
   font-size: 0.95rem;
}

.status-indicator {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 0.75rem;
   color: #059669;
   background: #ecfdf5;
   padding: 4px 12px;
   border-radius: 20px;
   margin-top: 10px;
   font-weight: 600;
}

.status-dot {
   width: 6px;
   height: 6px;
   background: #10b981;
   border-radius: 50%;
   display: inline-block;
}

/* Clickable Gallery Architecture (1.jpeg to 10.jpeg) */
.client-gallery-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 16px;
   padding: 20px 0;
}

.client-gallery-item {
   position: relative;
   display: block;
   border-radius: 14px;
   overflow: hidden;
   aspect-ratio: 1 / 1;
   box-shadow: var(--card-shadow);
   border: 1px solid #e2e8f0;
}

.client-gallery-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: var(--transition);
}

.gallery-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(2, 132, 199, 0.75);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: var(--transition);
}

.gallery-overlay i {
   color: #ffffff;
   font-size: 24px;
   transform: scale(0.8);
   transition: var(--transition);
}

.client-gallery-item:hover .gallery-overlay {
   opacity: 1;
}

.client-gallery-item:hover .gallery-overlay i {
   transform: scale(1);
}

.client-gallery-item:hover img {
   transform: scale(1.05);
}

/* Form Panel Details */
.home-form-card {
   background: #ffffff;
   border-radius: 16px;
   padding: 40px;
   box-shadow: var(--card-shadow);
   border: 1px solid #e2e8f0;
   height: 100%;
}

.premium-input {
   border-radius: 8px;
   border: 1px solid #cbd5e1;
   padding: 10px 14px;
}

.premium-input:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 4px var(--primary-glow);
}

.style-submit-btn {
   height: 52px; 
   font-size: 1rem;
}

/* Contact Info Subcomponents */
.home-contact-info {
   background: #ffffff;
   border-radius: 16px;
   box-shadow: var(--card-shadow);
   border: 1px solid #e2e8f0;
}

.icon-pill-wrapper {
   background: var(--primary-glow);
   width: 44px;
   height: 44px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
}

.align-icon-phone { font-size: 22px; color: var(--primary); }
.align-icon-mail { font-size: 16px; color: var(--primary); }
.align-icon-map { font-size: 18px; color: var(--primary); }

.secure-line-label {
   font-weight: 700;
   color: var(--dark-neutral);
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.secure-line-anchor {
   font-size: 1.1rem;
   font-weight: 600;
   color: var(--dark-neutral);
   text-decoration: none;
}

.hq-text-paragraph {
   color: #64748b;
   font-weight: 500;
   margin: 0;
}

/* Map Containers */
.map-container-premium {
   border-radius: 16px;
   overflow: hidden;
   box-shadow: var(--card-shadow);
   border: 4px solid #ffffff;
   margin-top: 30px;
   height: 340px;
   width: 100%;
}

.map-container-premium iframe {
   width: 100%;
   height: 100%;
   border: 0;
}

/* Floating Elements */
.whatsapp-float {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 9999;
   transition: var(--transition);
}

.whatsapp-float:hover {
   transform: scale(1.08) translateY(-2px);
}

.whatsapp-float img {
   width: 60px;
   height: 60px;
   filter: drop-shadow(0 8px 20px rgba(16,185,129,0.35));
}

/* ==========================================================================
   FOOTER — Ultra-Dark Base with High-Contrast Light Headers Fix
   ========================================================================== */
.footer-premium {
   background: #090d16;
   color: #94a3b8;
   padding: 80px 0 35px;
   border-top: 1px solid #1e293b;
}

/* Fixed Dark/Invisible text from previous iteration */
.footer-heading-light {
   color: #f8fafc !important; /* Perfect high-contrast visibility against dark backgrounds */
   font-size: 1.3rem;
   margin-bottom: 26px;
   font-weight: 700;
   position: relative;
   padding-bottom: 12px;
   font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-heading-light::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 45px;
   height: 3px;
   background: var(--primary);
   border-radius: 2px;
}

.footer-logo-increased {
   height: 60px; /* Increased footer logo scaling */
   object-fit: contain;
   background: #ffffff;
   padding: 8px;
   border-radius: 8px;
}

.footer-desc-text {
   font-size: 0.95rem;
   line-height: 1.65;
   color: #94a3b8;
}

.footer-links-list {
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-links-list li {
   margin-bottom: 14px;
}

.footer-links-list a {
   color: #94a3b8;
   transition: var(--transition);
   text-decoration: none;
   display: inline-block;
   font-size: 0.95rem;
}

.footer-links-list a:hover {
   color: #ffffff;
   transform: translateX(5px);
}

.footer-contact-item-dark {
   display: flex;
   gap: 14px;
   align-items: flex-start;
   margin-bottom: 18px;
}

.footer-contact-item-dark i {
   color: var(--primary);
   font-size: 1.1rem;
   margin-top: 4px;
}

.footer-contact-item-dark a, 
.footer-contact-item-dark p {
   color: #94a3b8;
   margin: 0;
   text-decoration: none;
   font-size: 0.95rem;
   line-height: 1.5;
}

.footer-contact-item-dark a:hover {
   color: #ffffff;
}

.footer-divider {
   border-color: #1e293b; 
   margin: 45px 0 25px;
}

.bottom-copyright-text {
   font-size: 0.9rem; 
   color: #475569;
}

.bottom-cert-text {
   font-size: 0.88rem; 
   color: #475569;
}

/* ==========================================================================
   ADAPTIVE RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */
@media (min-width: 576px) {
   .services-grid-premium { grid-template-columns: repeat(2, 1fr); }
   .presence-grid { grid-template-columns: repeat(3, 1fr); }
   .client-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
   .client-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
   .hero-title-premium { font-size: 3.8rem; }
   .services-grid-premium { grid-template-columns: repeat(3, 1fr); }
   .presence-grid { grid-template-columns: repeat(5, 1fr); }
   .client-gallery-grid { grid-template-columns: repeat(5, 1fr); }
   .home-hero-premium { padding: 180px 0 130px; }
}



/* Premium Section Styling */
/* Add breathing space for fixed navbar */
.about-premium-section {
    padding-top: 120px; /* Adjust this value based on your navbar height */
    padding-bottom: 80px;
}

/* Ensure the container doesn't touch the top if you have a page title area */
.navbar + .about-premium-section {
    margin-top: 20px;
}
.about-premium-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.hero-tag {
    color: #fda417;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.hero-title-premium {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
    color: #0f172a;
}

.about-text-premium {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
}

.about-visual-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Responsive Scaling */
@media (max-width: 991px) {
    .about-premium-section { padding: 40px 0; }
    .hero-title-premium { font-size: 2rem; }
    .about-visual-container img { height: 300px; margin-top: 30px; }
}

/* Slider */

/* Ensure the text container is readable */
/* Ensure the slider container has a fixed height for consistency */
.full-page-slider {
    position: relative;
    width: 100%;
}

.carousel-item img {
    width: 100%;
    /* Fixed height for desktop */
    height: 600px; 
    /* This is the key: it centers and covers the area without cutting/stretching */
    object-fit: cover; 
    object-position: center;
}

/* Make captions flexible and readable */
.carousel-caption {
    top: 60%;
    transform: translateY(-50%);
    bottom: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        /* Shorter height for mobile screens */
        height: 400px; 
    }
    
    .carousel-caption {
        top: 60%;            /* Aligns the top of the box to the center */
        transform: translateY(-50%); /* Pulls the box up by half its own height to perfectly center it */
        bottom: auto;        /* Removes bottom constraints that might be pushing it up */
        padding: 10px;       /* Reduces padding to save space on mobile */
        width: 90%;          /* Ensures the box doesn't hit the screen edges */
        left: 5%;            /* Centers the box horizontally */
    }

    /* Adjusting font sizes to prevent overflow */
    .hero-title {
        font-size: 1.1rem !important; 
        line-height: 1.3;
    }

    .btn-premium-primary {
        padding: 8px 20px; /* Smaller button for mobile */
        font-size: 0.85rem;
    }
}

/* Remove the unwanted background container */


/* Ensure the layout is responsive */
.presence-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.presence-card {
    background: #ffffff !important; /* Forces a clean background */
    border: 1px solid #e2e8f0 !important; /* Consistent border */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%; /* Ensures all cards in a row match height */
    transition: transform 0.3s ease;
}

/* Remove any unwanted absolute positioning causing the "bleed" effect */
.presence-card img {
    max-width: 50px;
    margin-bottom: 10px;
}

/* Mobile styling */
.iso-logo-mobile {
    height: 40px; /* Reduced from 100px for better fit */
    width: auto;
}

/* Desktop styling */
@media (min-width: 992px) {
    .iso-logo-mobile {
        height: 50px;
        margin-left: 20px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 991px) {
    /* Stack hero content for better mobile readability */
    .home-hero-premium .row {
        flex-direction: column-reverse;
    }

    /* Reduce hero title size on mobile */
    .hero-title-premium {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    /* Stack CTA buttons vertically on mobile */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Ensure WhatsApp button doesn't obscure content */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px; /* Control size */
}

.whatsapp-float img {
    width: 100%;
    height: auto;
}



/* visa section services */

/* Visa Gallery Styling */
/* Visa Gallery Styling */
.visa-img-wrapper {
   width: 100%;
   height: 250px; /* Box ki fixed height */
   overflow: hidden;
   border-radius: 12px;
   box-shadow: 0 4px 10px rgba(0,0,0,0.15);
   transition: transform 0.3s ease;
   background: #f8f9fa;
}

.visa-img-wrapper:hover {
   transform: scale(1.03);
}

.visa-img-wrapper img {
   width: 100%;
   height: 100% !important; /* img-fluid ko override karne ke liye */
   object-fit: cover !important; /* Image ko box mein perfectly crop karke fit karega */
   object-position: top center; /* Chehre upar se na katein isliye focus top par rakhega */
   display: block;
}

.visa-card-link {
   display: block;
   cursor: pointer;
}

/* Mobile Optimization */
@media (max-width: 576px) {
   .visa-img-wrapper {
      height: 160px; /* Mobile screen ke liye choti height */
   }
}

/* office section */
/* Office Gallery Styling */
.office-card {
   background: #fff;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
   transition: transform 0.3s ease;
}

.office-card:hover {
   transform: translateY(-5px);
}

.office-img-wrapper {
   height: 200px;
   overflow: hidden;
}

.office-img-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.office-caption {
   padding: 15px;
   text-align: center;
}

.office-caption p {
   margin: 0;
   font-weight: 600;
   color: #0f172a;
   font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
   .office-img-wrapper {
      height: 140px;
   }
}

/* Process Section Styling */
.process-card {
   background: #fff;
   border-radius: 12px;
   padding: 15px;
   box-shadow: 0 4px 10px rgba(0,0,0,0.08);
   height: 100%;
   transition: transform 0.3s ease;
}

.process-card:hover {
   transform: translateY(-5px);
}

.process-img-wrapper {
   height: 180px;
   overflow: hidden;
   border-radius: 8px;
   margin-bottom: 15px;
}

.process-img-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.process-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: #0f172a;
   margin-bottom: 10px;
}

.process-desc {
   font-size: 0.85rem;
   color: #64748b;
   line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 576px) {
   .process-img-wrapper {
      height: 140px;
   }
}

/* Interview Section Styling */
.interview-card {
   background: #fff;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
   transition: transform 0.3s ease;
}

.interview-card:hover {
   transform: translateY(-5px);
}

.interview-img-wrapper {
   height: 220px;
   overflow: hidden;
}

.interview-img-wrapper img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.interview-caption {
   padding: 12px;
   text-align: center;
   background: #fff;
}

.interview-caption p {
   margin: 0;
   font-weight: 600;
   color: #0f172a;
   font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
   .interview-img-wrapper {
      height: 150px;
   }
}