:root {
  /* Colors extracted from images */
  --primary-color: #001f5b; /* Deep Blue from Logo background */
  --accent-color: #e67e22; /* Orange from 'Company Overview' text */
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #f9f9f9;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Mulish', sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn:hover {
  background-color: #d35400;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.5);
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  /* Removed constraint on 'a' tag as requested */
}

.logo img {
      width: 180px; /* Slightly smaller to match reduced navbar */
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  /* Centering Logic: Use absolute positioning to ensure true center */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links li a {
  font-weight: 500;
  color: var(--primary-color);
  font-size: 1rem;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Nav Button specific style */
.nav-btn {
  padding: 10px 24px;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: var(--white) !important;
  /* Ensure button stays on the right */
  margin-left: auto; 
}

.nav-btn:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px; 
  overflow: hidden;
  color: var(--white);
}

/* Slider Background */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Blue Gradient Overlay - Middle to Left */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 31, 91, 0.7) 0%, rgba(0, 31, 91, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center; /* Centered for desktop */
  margin: 0 auto; /* Center container */
  padding-left: 0; 
}

.hero-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white);
  background: var(--accent-color);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
  line-height: 1.1;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.98);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center; /* Center buttons for desktop */
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  color: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* Dynamic Alignment Classes (Desktop) */
.hero-content.align-left {
  text-align: left;
  margin-left: 5%; /* Added margin as requested */
  margin-right: auto;
}
.hero-content.align-left .hero-subtitle { text-align: left; }
.hero-content.align-left .hero p { margin-left: 0; margin-right: auto; }
.hero-content.align-left .hero-btns { justify-content: flex-start; }

.hero-content.align-center {
  text-align: center;
  margin: 0 auto;
}
.hero-content.align-center .hero-subtitle { text-align: center; }
.hero-content.align-center .hero p { margin-left: auto; margin-right: auto; }
.hero-content.align-center .hero-btns { justify-content: center; }

.hero-content.align-right {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}
.hero-content.align-right .hero-subtitle { text-align: right; }
.hero-content.align-right .hero p { margin-left: auto; margin-right: 0; }
.hero-content.align-right .hero-btns { justify-content: flex-end; }

.reveal-text {
  opacity: 0;
  transform: translateY(30px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

.mobile-only {
  display: none !important;
}

/* ===================================
   ABOUT SECTION STYLES
   =================================== */

.about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.about-label {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.about-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.about-features li {
  padding: 1rem 0;
  padding-left: 3.5rem;
  position: relative;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-features li:hover {
  transform: translateX(5px);
  color: var(--primary-color);
}

.feature-icon {
  position: absolute;
  left: 0;
  font-size: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.about-features li:hover .feature-icon {
  transform: translateY(-50%) scale(1.2);
}

/* Vision & Mission Grid */
.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.vm-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vm-box:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.15);
}

.vm-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.vm-box:hover .vm-icon {
  transform: scale(1.2) rotate(5deg);
}

.vm-box h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.vm-box p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 31, 91, 0.15);
}

.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 31, 91, 0.2);
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Hover Experience Badge */
.about-badge-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(0, 31, 91, 0.95) 0%, rgba(0, 31, 91, 0.85) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.about-image:hover .about-badge-hover {
  height: 200px;
}

.badge-content {
  text-align: center;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
}

.about-image:hover .badge-content {
  transform: translateY(0);
  opacity: 1;
}

.about-badge-hover .badge-number {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-heading);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(230, 126, 34, 0.6);
  margin-bottom: 0.5rem;
}

.about-badge-hover .badge-text {
  display: block;
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 900px) {


  .nav-container {
    padding: 0 1rem; /* Keeping minimal padding so content doesn't touch screen edge, but removed extra margins */
    max-width: 100%;
  }

  .nav-btn {
  margin-left: 0px; 
}


  .menu-toggle {
    display: block;
    z-index: 1001; /* Ensure above overlay */
  }

  /* Hamburger Animation */
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%; /* Hidden by default */
    top: 100px; /* Below navbar */
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
    align-items: center; /* Center items horizontally */
    padding-top: 2rem;
    background-color: var(--white);
    width: 100%;
    height: calc(100vh - 100px);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    transform: none; /* Reset desktop centering */
    gap: 2rem;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0;
  }
  
  .desktop-only {
      display: none; /* Hide standard button on mobile, show link inside menu instead */
  }
  
  .mobile-only {
      display: block;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
  }

  /* Mobile Hero Buttons */
  .hero-btns {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 25px;
    font-size: 0.85rem;
    text-align: center;
  }
  
  .hero-content {
      margin-left: auto !important;
      margin-right: auto !important;
      padding: 0 1rem; /* Add padding back to content so it doesn't touch edges */
      text-align: center !important; /* Mobile Center Align */
  }

  .hero-subtitle {
      text-align: center !important;
  }
  
  .hero-btns {
      justify-content: center !important;
  }
  
  .hero p {
      margin-left: auto !important;
      margin-right: auto !important;
  }
  
  /* Logo adjustment for mobile */
  .logo img {
      height: auto; 
      width: 164px;/* Smaller logo on mobile */
  }
  
  .nav-container {
      height: 80px; /* Smaller navbar on mobile */
  }
  .nav-links {
      top: 80px;
      height: calc(100vh - 80px);
  }
  .hero {
      padding-top: 80px;
  }

  /* About Section Mobile Styles */
  .about-section {
    padding: 60px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-features li {
    font-size: 0.95rem;
    padding-left: 3rem;
  }

  .feature-icon {
    font-size: 1.5rem;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .vm-box {
    padding: 2rem 1.5rem;
  }

  .vm-icon {
    font-size: 2.5rem;
  }

  .vm-box h3 {
    font-size: 1.3rem;
  }

  .vm-box p {
    font-size: 0.95rem;
  }

  .about-image img {
    height: 400px;
  }
}

/* Preloader Settings */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color); /* Updated to match Testimonial Blue as requested */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
}

.preloader-hidden {
  transform: translateY(-100%);
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 480px; /* Enlarged logo */
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  animation: logoPulse 2s infinite ease-in-out;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); /* Gentle pulse */
  }
  100% {
    transform: scale(1);
  }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: flex-start; /* Prevents other cards from stretching */
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent-color);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--accent-color);
    z-index: 2;
}

.service-content {
    padding: 35px 25px 25px;
    text-align: left;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
}


.service-content p.service-summary {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.3s ease;
    text-align: left;
    margin-top: 0;
}

.service-card.active .service-details {
    max-height: 500px; /* Large enough to fit content */
    opacity: 1;
    margin-top: 15px;
    margin-bottom: 20px;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.service-details ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-details ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-color);
}


/* Fun Facts / Spotlight Section */
.fun-facts-section {
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.fit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.fun-facts-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 20px 0;
}

.fun-facts-desc {
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 450px;
    line-height: 1.7;
}

.stats-box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.stat-card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0 5px;
    color: #333; /* Default text color */
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Stat Card Colors */
.stat-cyan {
    background-color: #e0f7fa;
    color: #006064;
}
.stat-cyan .stat-num { color: #00bcd4; }

.stat-orange {
    background-color: #fff3e0;
    color: #e65100;
}
.stat-orange .stat-num { color: #ef6c00; }

.stat-yellow {
    background-color: #fffde7;
    color: #f57f17;
}
.stat-yellow .stat-num { color: #fbc02d; }

.stat-purple {
    background-color: #f3e5f5;
    color: #4a148c;
}
.stat-purple .stat-num { color: #8e24aa; }


/* Image Column */
.fun-facts-image-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.spotlight-image {
    width: 70%; /* Slightly wider for better presence */
    height: auto;
    border-radius: 12px; /* Standard rounded corners */
    box-shadow: 20px 20px 0 rgba(243, 156, 18, 0.2); /* Offset shadow effect */
    z-index: 2;
    position: relative;
    object-fit: contain; /* Ensures full image is visible */
    background: #fff; /* Fallback */
}

.image-decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.image-name-tag {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    z-index: 3;
    width: 80%;
    border: 1px solid rgba(0,0,0,0.05);
}

.image-name-tag h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.image-name-tag .designation {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .fun-facts-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .fun-facts-desc {
        margin: 0 auto 40px;
    }

    .spotlight-image {
        width: 80%;
        margin-top: 40px;
    }
}


/* Projects Section */
.projects-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.projects-wrapper {
    position: relative;
    /* background: #fff; Removed background to let cards stand out */
    /* border-radius: 12px; Removed container border */
    /* box-shadow: ... Removed shadow */
    margin-top: 40px;
    padding: 20px 0; /* Add space for shadows */
    /* overflow: hidden; Removed to allow scroll buttons (ears) to be visible */
}

/* Horizontal Scroll Container (Outer) */
.projects-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth;
    position: relative;
    padding-bottom: 20px;
    /* Scroll Snap Logic */
    scroll-snap-type: x mandatory; 
    scroll-padding: 20px;
    contain: content;
}

.projects-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Inner List of Cards */
.project-gallery-list {
    display: inline-flex; /* content grows horizontally */
    gap: 10px; /* Spacing between cards */
    padding: 10px 5px; /* Visual padding */
}

/* Project Card */
.project-card {
    display: inline-block;
    width: 320px; /* Fixed width for cards */
    height: 450px; /* Tall portrait aspect */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000; /* Fallback */
    cursor: pointer;
    scroll-snap-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Reduced shadow spread */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Hover Overlay */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 128, 0.95), rgba(0, 0, 128, 0.4)); /* Deep Blue Gradient */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
    white-space: normal; /* Allow text wrapping in card */
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-date {
    font-size: 0.85rem;
    color: #ffd700; /* Gold/Yellow for date */
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-status-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(29, 192, 72, 0.95);
    color:#fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Added subtle shadow for pop */
    border: none;
}

.status-ongoing-card {
    background: #e67e22;
    color: #fff; /* Keep white text for orange background */
    border-color: #e67e22;
}


/* Scroll Buttons (Adjusted) */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* Larger buttons */
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.left-btn { left: -25px; }
.right-btn { right: -25px; }

@media (max-width: 768px) {
    .left-btn { left: 10px; }
    .right-btn { right: 10px; }
    
    .project-card {
        width: 280px;
        height: 400px;
        scroll-snap-align: center; /* Snap to center */
    }

    /* Overlay hidden by default on mobile, shown when '.mobile-active' */
    .project-overlay {
        opacity: 0; 
        transition: opacity 0.3s ease;
    }

    .project-card.mobile-active {
        border: 2px solid var(--accent-color);
        box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
                margin-left: 32px;
    }

    .project-card.mobile-active .project-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 128, 0.95), rgba(0, 0, 128, 0.2));
    }
}

/* View More Proect Button */
.btn-view-project {
    display: inline-block;
    margin-top: 15px;
    color: #ffd700; /* Gold for visibility */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-project:hover {
    color: #fff;
    transform: translateX(5px); /* Arrow slide effect */
}



/* ===================================
   TRUSTED BY SECTION (Marquee)
   =================================== */
.trusted-by-section {
    padding: 80px 0;
    background-color: #f8f9fa; 
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.marquee-wrapper {
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Gradient Masks for fade effect at edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 80px; /* Generous spacing */
    width: max-content;
    padding-right: 80px; /* Match gap for seamless loop */
    animation: scrollMarquee 25s linear infinite;
}

/* Pause animation on hover for accessibility/interest */
.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content img {
    height: 100px; /* Standardize logo height */
    width: auto;
    object-fit: contain;
   /* Uniform look */
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
}

.marquee-content img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* -50% because we duplicated the content */
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .marquee-content {
        gap: 40px;
        animation-duration: 15s; /* Faster on mobile */
    }
    
    .marquee-content img {
        height: 80px;
    }
}
/* ===================================
   BLOG SECTION
   =================================== */

.blog-section {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.blog-grid {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    padding-bottom: 30px;
}

.blog-card {
    flex: 0 0 400px; /* Slightly wider */
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-height: 540px; /* Changed from fixed height to min-height */
    white-space: normal;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.blog-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-tag-inline {
    display: inline-block;
    background: #f0f0f0; /* Subtle background */
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    align-self: flex-start;
    letter-spacing: 1px;
    border: 1px solid #eee;
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.45rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.35;
    font-weight: 800;
    transition: color 0.3s;
    /* Removed line-clamp to reveal all text */
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.8;
    /* Removed line-clamp and height to reveal all text */
}

.blog-link-wrapper {
    margin-top: auto;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-link-icon {
    width: 32px;
    height: 32px;
    background: #ffcc00; /* Vibrant Yellow from guide */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.blog-card:hover .blog-link-icon {
    transform: rotate(45deg);
    background: #e6b800;
}

.blog-card:hover .blog-link {
    color: var(--accent-color);
}

/* Outline Dark Button */
.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
/* ===================================
   FOOTER SECTION
   =================================== */

.footer-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Brand Column */
.footer-logo {
    width: 150px;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.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%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Links Column */
.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    display: inline-block;
}

.links-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Contact Column */
.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    align-items: flex-start;
}

.contact-list i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Newsletter Column */
.newsletter-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1); /* Transparent/Dark input */
    color: #fff;
    outline: none;
    font-family: inherit;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--accent-color);
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #d35400;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
        display: block;
    }
    
    .brand-col {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
