/****************************************
  COLOR & FONT VARIABLES
****************************************/
:root {
    --brand-primary: #1f3f81; /* Deep Blue */
    --brand-secondary: #f39c12; /* Orange accent */
    --text-dark: #333;
    --text-gray: #777;
    --text-light: #fff;
    --bg-color: #f8f9fa;
    --transition: 0.3s ease;
  
    --navbar-text-default: #000;
    --mobile-menu-bg: rgba(255, 255, 255, 0.95);
  
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
  }
  
  /****************************************
    RESET & GLOBAL
  ****************************************/
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-color);
    line-height: 1.5;
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    display: block;
  }
  a, a:visited, a:focus, a:hover, a:active {
    text-decoration: none;
    outline: none;
  }
  /* Optional scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f0f0f0;
  }
  ::-webkit-scrollbar-thumb {
    background-color: var(--brand-primary);
    border-radius: 4px;
  }
  
  /****************************************
    NAVBAR
  ****************************************/
  /****************************************
  NAVBAR
****************************************/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }
  
  .nav-links {
    display: flex;
    gap: 30px;
    font-weight: 500;
    margin-right: 90px;
  }
  .navbar .logo img {
    max-width: 150px !important;
  height: 30px !important;
    margin-left: 85px;
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth effects */
}

/* On hover, scale the logo */
.navbar .logo img:hover {
    transform: scale(1.1); /* Slightly increase size */
    filter: brightness(1.2); /* Make it a bit brighter */
}
  /* Modern Hover Effect */
  .nav-links a {
    color: var(--navbar-text-default);
    position: relative;          /* needed for ::after animation */
    padding: 8px 0;
    transition: color var(--transition); 
  }
  
  /* On hover: text color changes AND underline expands from center */
  .nav-links a:hover {
    color: var(--brand-primary);
  }
  
  /* Create an animated underline "bar" from right-to-left */
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
  }
  
  /* On hover: expand underline from left-to-right */
  .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
  
  /* Hamburger menu icon */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  .bar {
    width: 25px;
    height: 3px;
    background-color: var(--navbar-text-default);
    margin: 4px 0;
    transition: 0.3s;
  }
  .hamburger.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.open .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }
  
  /****************************************
    RESPONSIVE NAV
  ****************************************/
  @media (max-width: 768px) {
    .navbar {
      padding: 15px 20px;
    }
    .navbar .logo img {
      max-width: 120px;
      height: auto;
      margin-left: 60px;
      transition: transform 0.3s ease, filter 0.3s ease; /* Smooth effects */
  }
    .nav-links {
      display: none;
      position: absolute;
      top: 63px; /* below navbar */
      left: 0;
      width: 100%;
      flex-direction: column;
      background: var(--mobile-menu-bg);
      backdrop-filter: blur(10px);
    }
    .nav-links.active {
      display: flex;
    }
    .nav-links a {
      padding: 15px 20px;
      border-bottom: 1px solid #ddd;
      color: #000;
    }
    .nav-links a::after {
      /* Hide the underline animation in mobile if you prefer, 
         or keep it for consistency. */
      bottom: 2px; /* or remove entirely if it conflicts with layout */
    }
    .hamburger {
      display: flex;
    }
  }
  
  
  /****************************************
    HERO CAROUSEL
    (Multi-Card Desktop, Single-Slide Mobile)
  ****************************************/
  
  .carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px; /* offset for fixed navbar */
  }
  .slide {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .item {
    position: absolute;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 0.5s ease;
  }
  
  /* Desktop:
     - first 2 slides fill the BG
     - next slides fan out as "cards"
  */
  
  .slide .item:nth-child(1),
  .slide .item:nth-child(2) {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .slide .item:nth-child(3) {
    width: 220px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(0, -50%);
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
  }
  .slide .item:nth-child(4) {
    width: 220px;
    height: 340px;
    top: 50%;
    left: calc(50% + 240px);
    transform: translate(0, -50%);
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
  }
  .slide .item:nth-child(5) {
    width: 220px;
    height: 340px;
    top: 50%;
    left: calc(50% + 480px);
    transform: translate(0, -50%);
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
  }
  
  /* Text for the first 2 slides (full BG) */
  .slide .item:nth-child(1) .content,
  .slide .item:nth-child(2) .content {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translate(0, -50%);
    max-width: 300px;
    color: #fff;
  }
  /* Text for slides 3+ in a bottom overlay */
  .slide .item:nth-child(n+3) .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.4);
    border-radius: 0 0 10px 10px;
    color: #fff;
  }
  .content .name {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 6px;
    
  }
  .slide .item:nth-child(1) .content .name,
  .slide .item:nth-child(2) .content .name {
    font-size: 2rem;
  }
  .content .des {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  .slide .item:nth-child(1) .content .des,
  .slide .item:nth-child(2) .content .des {
    font-size: 1rem;
  }
  /* Hide hero buttons for now */
  .content button {
    display: none;
  }
  
  /* Desktop Arrow Buttons */
  .carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
  }
  .carousel-buttons button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: rgba(255,255,255,0.8);
    font-size: 18px;
    color: #444;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .carousel-buttons button:hover {
    background-color: var(--brand-primary);
    color: #fff;
    transform: scale(1.1);
  }
  
  /* MOBILE: single slide approach with flex (each item 100vw wide) */
  @media (max-width: 768px) {
    .carousel-container {
      height: 85vh;
    }
    .slide {
      display: flex;
      width: 100vw;
      height: 85vh;
      overflow: hidden;
      position: relative;
    }
    .item {
      position: relative !important;
      flex: 0 0 100vw;
      height: 85vh;
      top: 0 !important;
      left: 0 !important;
      transform: none !important;
      border-radius: 0;
      box-shadow: none;
      opacity: 1;
    }
    .slide .item:nth-child(n+3) {
      opacity: 1; 
    }
    /* Center text in the middle on mobile */
    .slide .item .content {
      display: flex !important;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  
      position: absolute !important;
      top: 50% !important;
      left: 50% !important;
      transform: translate(-50%, -50%) !important;
  
      width: 80%;
      text-align: center;
      color: #fff;
      background: none; 
    }
    .content .name {
      font-size: 1.6rem;
    }
    .content .des {
      font-size: 1rem;
      margin-bottom: 20px;
    }
    /* Arrows at bottom center on mobile */
    .carousel-buttons {
      top: auto;
      bottom: 20px;
      transform: translateY(0);
      justify-content: center;
    }
    .carousel-buttons button {
      margin: 0 10px;
      width: 40px;
      height: 40px;
    }
    
  }
  /****************************************
    ABOUT SECTION
  ****************************************/
  .about-section {
    background-color: #ffffff;
    padding: 60px 20px;
  }
  .container-about {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  .about-text {
    flex: 1 1 500px;
  }
  .section-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600; 
    color: var(--brand-secondary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
  }
  .section-label::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px; 
    background: var(--brand-secondary);
    margin-top: 4px;
  }
  .about-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--brand-primary);
  }
  .about-text h2 span {
    color: var(--brand-secondary);
  }
  .about-text p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.7;
  }
  .about-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-image img {
    max-width: 100%;
    border-radius: 8px;
  }
  
  /****************************************
    SERVICES SECTION
  ****************************************/
  .services-blur {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
  }
  .services-blur h2 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    color: var(--brand-primary);
  }
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .card {
    width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  .card-content {
    padding: 20px;
    text-align: left;
  }
  .card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--brand-primary);
  }
  .card__snippet {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .card__button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
  }
  .card__button:hover {
    background: var(--brand-secondary);
  }
  
  /****************************************
    PARTNERS SECTION
  ****************************************/
  .partners {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
  }
  .partners-title {
    font-size: 2rem;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    margin-bottom: 3rem;
  }
  .partners-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    overflow: hidden;
  }
  .partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
  }
  .partner-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
  }
  .partner-logo img {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
  }
  
  /****************************************
    CONTACT SECTION
  ****************************************/
  .contact-section {
    display: flex;
    min-height: 600px;
    flex-wrap: wrap;
  }
  .contact-left {
    flex: 1;
    background: url("../assets/Staffingservice.jpg")
      center center / cover no-repeat;
    position: relative;
    min-height: 400px;
  }
  .contact-left::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(34, 41, 57, 0.7);
    z-index: 0;
  }
  .left-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 60px 40px;
    max-width: 500px;
  }
  .left-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
  }
  .left-content p {
    line-height: 1.6;
    margin-bottom: 40px;
  }
  .info-line {
    margin-bottom: 20px;
  }
  .info-line span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffd;
  }
  .info-line strong {
    font-size: 1rem;
  }
  .contact-right {
    flex: 1;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
  }
  .contact-right h2 {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .contact-right p {
    margin-bottom: 30px;
    color: var(--text-dark);
    max-width: 400px;
    line-height: 1.6;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-group label {
    display: block;
    color: var(--brand-primary);
    margin-bottom: 6px;
    font-weight: 500;
  }
  .form-group input,
  .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--brand-secondary);
    color: var(--text-dark);
    padding: 8px 2px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
  }
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: #999;
  }
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--brand-primary);
  }
  .contact-right button {
    padding: 12px 24px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    transition: background var(--transition), color var(--transition);
  }
  .contact-right button:hover {
    background: var(--brand-secondary);
    color: #fff;
  }
  .contact-social {
    margin-top: 20px;
    display: flex;
    gap: 10px;
  }
  .contact-social a {
    color: var(--brand-primary);
    font-size: 1.2rem;
    transition: color var(--transition);
  }
  .contact-social a:hover {
    color: var(--brand-secondary);
  }
  
  /****************************************
    FOOTER
  ****************************************/
  footer {
    background: #1f1f1f;
    color: #ccc;
    padding: 40px 20px;
  }
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
  .footer-col {
    flex: 1 1 200px; 
    min-width: 200px;
  }
  .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
  }
  .footer-col p {
    line-height: 1.6;
  }
  .footer-col ul {
    list-style: none;
  }
  .footer-col ul li {
    margin-bottom: 0.5rem;
  }
  .footer-col ul li a {
    color: #ccc;
    transition: color var(--transition);
  }
  .footer-col ul li a:hover {
    color: var(--brand-secondary);
  }
  .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
  }
  .footer-social a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color var(--transition);
  }
  .footer-social a:hover {
    color: var(--brand-secondary);
  }
  .footer-contact-title {
    margin-top: 1rem;
    color: #fff;
    font-family: var(--font-heading);
  }
  .footer-contact-info {
    margin-top: 0.5rem;
    color: #ccc;
  }
  .footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
  }
  
  /****************************************
    MEDIA QUERIES / Responsive
  ****************************************/
  @media (max-width: 768px) {
    .about-section .container-about {
      flex-direction: column;
      text-align: center;
    }
    .about-image {
      margin-top: 20px;
    }
    .contact-section {
      flex-direction: column;
    }
    .contact-left, .contact-right {
      width: 100%;
      min-height: auto;
    }
  }
  