/* General Styles */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f3f4f6;
  color: #111827;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.main-content {
  flex: 1 0 auto;
}

/* Header and Navigation */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-nav {
  position: relative;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*
.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #d97706;
  text-decoration: none;
}*/

.logo {
  display: flex;
  align-items: center;
  padding: 0 !important;
  background: none;
  font-size: 0; /* Hide any text fallback */
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  margin: 0;
  transition: height 0.2s;
}

@media (max-width: 600px) {
  .logo-img {
    height: 40px; /* Smaller logo on mobile */
  }
}

.nav-links {
  display: none; /* Hidden by default, shown on larger screens */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links li a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #d97706; /* yellow-600 */
}

/* Hamburger Menu */
.menu-toggle {
  display: block; /* Shown by default, hidden on larger screens */
  background: none;
  border: none;
  color: #d97706;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-toggle .hidden {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; /* Position relative to the viewport */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  height: auto; /* Height adjusts to content */
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 50;
  
  /* Initially off-screen, slides down when active */
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

/*.mobile-menu.hidden {
    display: none;
}*/

.mobile-menu p {
    padding: 1rem;
    text-align: center;
    font-size: 1.25rem;
    color: #d97706; 
    margin: 0;
}

/* Add new styles for the mobile social links */
.social-links-mobile {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.social-links-mobile a {
    color: #1f2937; /* A dark color for the icons */
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links-mobile a:hover {
    color: #d97706; /* The highlight color */
}

.mobile-menu.active {
    transform: translateY(0); /* Slides the menu down into view */
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 1rem; /* Add padding to the bottom for spacing */
}

.mobile-menu li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s;
}

.mobile-menu li a:hover {
  background-color: #fef3c7; /* yellow-100 */
}

/*.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40; /* Below the menu, but above the content */
/*}

.mobile-menu-overlay.hidden {
    display: none;
}*/

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    
    /* Initially hidden with smooth transition */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1; /* Makes the overlay visible */
    pointer-events: auto;
}

/*.mobile-menu-overlay.hidden {
    /* This class is no longer needed with the opacity approach */
/*}*/

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: #ffffff;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.whatsapp-float img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

/* Footer */
.site-footer {
  background-color: #1f2937; /* gray-800 */
  color: #ffffff;
  padding: 2.5rem 0;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-column h5 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-column p, .footer-column a {
  margin: 0.5rem 0;
  color: #d1d5db; /* gray-300 */
  text-decoration: none;
}

.footer-column .fas, .footer-column .fab {
  margin-right: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.25rem;
}

.social-links a, .map-link {
  color: #ffffff;
  transition: color 0.3s;
}

.social-links a:hover, .map-link:hover {
  color: #fbbf24; /* yellow-400 */
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #d1d5db;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
  
  .social-links, .map-link {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .materials-section, .machines-section {
    padding-left: 0;
    padding-right: 0;
  }
  .materials-grid, .machines-grid {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 40px;
  }
}

/* --- Homepage Styles --- */

/* Hero Video Section */
.hero-video-section {
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.video-container {
  position: relative;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, #f3d83d, #f59e0b);
  color: #1e3a5f;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(90deg, #f59e0b, #f3d83d);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-video-section {
    height: 60vh;
  }
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 1rem;
  background-color: #f9fafb; /* gray-50 */
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.horizontal-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem 1rem;
  width: 100%;
  justify-content: flex-start;
}

/* Hide scrollbar for a cleaner look */
.horizontal-scroll-row::-webkit-scrollbar {
  display: none;
}
.horizontal-scroll-row {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.gallery-item {
  position: relative;
  min-width: 250px;
  height: 180px;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transform: perspective(1px); /* Fixes flickering */
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.gallery-item:hover {
  transform: scale(1.05) translateY(-5px);
  filter: brightness(1.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: white;
  font-size: 0.875rem;
  text-align: center;
}

/* Portfolio Tabs and Gallery */
.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.portfolio-tabs li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: #e5e7eb; /* gray-200 */
  transition: all 0.3s ease;
  font-weight: 500;
  border: 2px solid transparent;
}

.portfolio-tabs li:hover, .portfolio-tabs li.active {
  background: #f3d83d;
  color: #1e3a5f;
  font-weight: bold;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 216, 61, 0.3);
}

.portfolio-gallery-container {
  padding: 0 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.portfolio-item {
  transition: all 0.3s ease-in-out;
  opacity: 1;
  transform: scale(1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image-container img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image-container img {
  transform: scale(1.1);
}

.portfolio-item[hidden] {
  display: none !important;
}

/* Featured Projects Section */
.featured-projects-section {
  padding: 4rem 1.5rem;
  max-width: 1152px; /* 6xl */
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 12rem; /* h-48 */
  object-fit: cover;
}

.project-card-content {
  padding: 1rem;
}

.project-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card-content p {
  font-size: 0.875rem;
  color: #4b5563; /* gray-600 */
}

.read-more-link {
  color: #f59e0b; /* yellow-500 */
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
  text-decoration: none;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 1.5rem;
  max-width: 896px; /* 4xl */
  margin: 0 auto;
  text-align: center;
}

.testimonials-container {
  display: grid;
  gap: 2.5rem;
}

.testimonial {
  background-color: white;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0.25rem;
}

.testimonial p {
  font-style: italic;
  font-size: 1.125rem;
}

.testimonial footer {
  margin-top: 1rem;
  font-weight: 600;
}

/* Counters Section */
.counters-section {
  background-color: #6b7280; /* gray-500 */
  color: white;
  padding: 4rem 0;
}

.counters-grid {
  max-width: 1152px; /* 6xl */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-item h3 {
  font-size: 2.25rem;
  font-weight: bold;
}

.counter-item p {
  font-size: 1.125rem;
}


/* Responsive Adjustments for Homepage */
@media (min-width: 768px) {
    .slide-content h2 {
        font-size: 3.75rem; /* md:text-6xl */
    }
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .counters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- About Us Page Styles --- */

/* Page Hero */
.page-hero {
  position: relative;
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-section.bg-light {
  background-color: #f9fafb; /* gray-100 */
}

.container {
  max-width: 1152px; /* 6xl */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.text-center {
    text-align: center;
}

.container-split {
  max-width: 1152px; /* 6xl */
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.split-content, .split-image {
  width: 100%;
  box-sizing: border-box;
}

.split-content p {
    font-size: 1.125rem;
    color: #374151; /* gray-700 */
}

.split-image img {
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Headings */
.section-heading {
    font-size: 1.875rem; /* 3xl */
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Cards */
.card-grid-tri {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

.card-grid-bi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-card {
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0.25rem;
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-list {
  list-style-position: inside;
  list-style-type: disc;
}

/* Team Section */
.team-member-container {
    display: flex;
    justify-content: center;
}

.team-card {
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0.25rem;
}

.team-card img {
    border-radius: 9999px; /* full */
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    margin: 0 auto 1rem auto;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Responsive for About Page */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  .container-split {
    flex-direction: row;
    width: 100%;
    max-width: 1152px;
  }
  .split-content, .split-image {
    width: 50%;
    box-sizing: border-box;
  }
  .container-split .split-content {
      padding-right: 2rem;
  }
  .container-split .split-image + .split-content {
      padding-right: 0;
      padding-left: 2rem;
  }
  .card-grid-tri {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid-bi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .container-split {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }
  .split-content, .split-image {
    width: 100%;
    max-width: 100%;
  }
  .split-image img {
    max-width: 100%;
    height: auto;
  }
}

/* --- Services Page Styles --- */

.services-hero {
    background: linear-gradient(to right, rgb(19, 51, 230), rgb(243, 216, 61));
    color: #fff;
    padding: 1rem 0.5rem;
    text-align: center;
}

.services-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.services-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #e0e0e0;
}

.services-hero-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.service-block {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.service-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 100%;
    margin: 0;
    padding: 0 0.5rem;
}

.service-content-wrapper.service-row-reverse {
    flex-direction: row-reverse;
}

.service-image, .service-description {
    flex: 1 1 45%;
}

.service-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

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

.service-description {
    padding: 10px 20px;
    color: #333;
    text-align: center;
}

.service-description h3 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1e3a5f;
}

.service-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.materials-section, .machines-section {
    padding: 60px 1rem;
}

.materials-grid, .machines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns always */
    gap: 40px;
    margin-top: 20px;
    max-width: 1200px;
    margin: 20px auto 0 auto;
}

@media (min-width: 600px) {
  .materials-grid, .machines-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet and up */
  }
}

.material-card, .machine-card {
    text-align: center;
    background: #fff;
    padding: 24px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 180px;
}

.material-card img, .machine-card img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4/3;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
  .material-card, .machine-card {
    min-width: 120px;
    padding: 12px 4px;
  }
  .material-card img, .machine-card img {
    max-height: 120px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    padding: 12px;
    background: #fff;
    box-sizing: border-box;
  }
}

/* Responsive for Services Page */
@media (max-width: 768px) {
    .services-hero-title {
        font-size: 2rem;
    }
    .services-hero-subtitle {
        font-size: 1rem;
    }
    .service-content-wrapper, .service-content-wrapper.service-row-reverse {
        flex-direction: column;
    }
    .service-description h3 {
        font-size: 28px;
    }
    .service-description p {
        font-size: 16px;
    }
    .materials-grid, .machines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Projects Page Styles --- */

.projects-section {
    padding: 4rem 1.5rem;
    max-width: 1152px; /* 6xl */
    margin: 0 auto;
    margin-top: -50px;
    text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.project-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1e3a5f;
}

.project-card-content p {
  font-size: 0.875rem;
    color: #4b5563; /* gray-600 */
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more-link {
  color: #f59e0b; /* yellow-500 */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto;
  display: inline-block;
}

.read-more-link:hover {
  color: #d97706; /* yellow-600 */
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card-content {
    padding: 1rem;
  }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    display: inline-flex;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid #d1d5db; /* gray-300 */
}

.pagination-link {
    padding: 0.5rem 0.75rem;
    border-right: 1px solid #d1d5db;
    text-decoration: none;
    color: #374151; /* gray-700 */
    background-color: #ffffff;
    transition: background-color 0.3s;
}

.pagination-link:last-child {
    border-right: none;
}

.pagination-link:hover {
    background-color: #e5e7eb; /* gray-200 */
}

.pagination-link.active {
    background-color: #f59e0b; /* yellow-500 */
    color: #ffffff;
    cursor: default;
}

.pagination-link.disabled {
    color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
    background-color: #f9fafb; /* gray-50 */
}

/* --- View Project Page Styles --- */

.project-detail-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.project-hero-image {
    width: 100%;
    max-height: 500px;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header {
    text-align: center;
    margin-bottom: 2rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 800; /* extrabold */
    color: #111827; /* gray-900 */
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.125rem; /* lg */
    color: #4b5563; /* gray-600 */
    margin-bottom: 1.5rem;
}

.project-content {
    /* Basic prose styling */
    color: #1f2937; /* gray-800 */
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.project-content h1, .project-content h2, .project-content h3 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.project-content p {
    margin-bottom: 1em;
}

.project-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.gallery-title {
    font-size: 1.75rem;
    font-weight: bold;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.project-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.project-image-item {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* lg shadow */
    transition: transform 0.3s ease;
}

.project-image-item:hover {
    transform: scale(1.05);
}

.project-image-item img {
    width: 100%;
    height: 15rem; /* h-60 */
    object-fit: cover;
}

.back-link-container {
    text-align: center;
    margin-top: 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563; /* gray-600 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #1d4ed8; /* blue-700 */
}

@media (min-width: 640px) { /* sm */
    .project-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) { /* lg */
    .project-title {
        font-size: 3rem; /* md:text-5xl */
    }
    .project-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Contact Page Styles --- */

.contact-section {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: #1e3a8a;
}

.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    color: #166534; /* green-800 */
    background-color: #dcfce7; /* green-100 */
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-radius: 1rem;
}

.contact-form .form-input,
.contact-form .form-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    outline: none;
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button-container {
    text-align: center;
}

.contact-form .form-submit-button {
    background: linear-gradient(90deg, #1e3a8a, #f3d83d);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .form-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}

@media (min-width: 768px) { /* md */
    .contact-form {
        padding: 3rem;
    }
}

/* --- Careers Page Styles --- */

.careers-section {
    max-width: 896px; /* 4xl */
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.careers-heading {
    font-size: 2.25rem; /* 4xl */
    font-weight: bold;
    margin-bottom: 1rem;
}

.careers-subheading {
    font-size: 1.125rem; /* lg */
    color: #374151; /* gray-700 */
    margin-bottom: 2.5rem;
}

.job-posting {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06); /* shadow */
    margin-bottom: 1.5rem;
    text-align: left;
}

.job-title {
    font-size: 1.5rem; /* 2xl */
    font-weight: 600;
}

.job-meta {
    font-size: 0.875rem; /* sm */
    color: #4b5563; /* gray-600 */
    margin-bottom: 0.5rem;
}

.job-description,
.job-content,
.job-contact {
    margin-bottom: 1rem;
}

.job-contact, .job-content {
    font-size: 0.875rem; /* sm */
    color: #4b5563; /* gray-600 */
}

.job-email-link,
.cv-link {
    text-decoration: underline;
    color: #f59e0b; /* yellow-500 */
}

.careers-footer-note {
    color: #4b5563; /* gray-600 */
    margin-top: 2.5rem;
}

/* --- Auth Page Styles (Login & Register) --- */

html, body {
    height: 100%;
}

body.auth-page {
    display: flex;
    flex-direction: column;
}

body.auth-page .main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    flex-grow: 1; /* This makes it fill the available space */
}

.auth-card {
    max-width: 450px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(90deg, #1e3a8a, #f3d83d);
    color: #ffffff;
    text-align: center;
    padding: 2rem 1rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.auth-header h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-header p {
    font-size: 1rem;
    color: #f3d83d;
    margin: 0;
}

.auth-body {
    padding: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
}

.auth-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form .form-input:focus {
    border-color: #f3d83d;
    box-shadow: 0 0 0 3px rgba(243, 216, 61, 0.25);
    outline: none;
}

.auth-submit-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: linear-gradient(90deg, #1e3a8a, #f3d83d);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-button:hover {
    filter: brightness(1.1);
}

.auth-redirect-link {
    margin-top: 1.5rem;
    text-align: center;
    color: #4b5563; /* gray-600 */
}

.auth-redirect-link a {
    color: #1e3a8a;
    font-weight: 500;
    text-decoration: none;
}

.auth-redirect-link a:hover {
    text-decoration: underline;
    color: #f3d83d;
}

/* Flash message danger color for auth errors */
.flash-message.flash-danger {
    color: #991b1b; /* red-800 */
    background-color: #fee2e2; /* red-100 */
}

.portfolio-heading {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: center;
}

.portfolio-heading::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
}

.swiper-slide,
.swiper-slide picture,
.swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.swiper-slide img {
  object-fit: cover;
  min-height: 100%;
  min-width: 100%;
  background: #222; /* fallback background */
  display: block;
}

/* Ensure the carousel and slides fill the viewport height */
.hero-carousel-container,
.hero-carousel-container .swiper,
.hero-carousel-container .swiper-wrapper,
.hero-carousel-container .swiper-slide {
  height: 80vh !important;
  min-height: 80vh !important;
  max-height: 80vh !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}


.hero-carousel-container .swiper-slide picture,
.hero-carousel-container .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  margin: 0;
  padding: 0;
  /*box-sizing: border-box;*/
}

/* On mobile, you can use a smaller height if you prefer */
@media (max-width: 768px) {
  .hero-carousel-container,
  .hero-carousel-container .swiper,
  .hero-carousel-container .swiper-wrapper,
  .hero-carousel-container .swiper-slide {
    height: 60vh !important;
    min-height: 60vh !important;
    max-height: 60vh !important;
  }

  .hero-carousel-container .swiper-slide picture,
  .hero-carousel-container .swiper-slide img {
    height: 60vh !important;
    min-height: 60vh !important;
    max-height: 60vh !important;
  }
}

/* --- Individual Project Page Styles --- */

.project-hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.project-hero-image {
  width: 100%;
  height: 100%;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.project-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.project-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.project-details-section {
  padding: 4rem 0;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-overview h2,
.services-provided h2,
.project-gallery h2,
.project-challenges h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #1e3a5f;
}

.project-overview p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #f3d83d;
}

.stat-item h3 {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-item p {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e3a5f;
  margin: 0;
}

.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #374151;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li i {
  color: #f3d83d;
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.challenge-item,
.solution-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
}

.challenge-item {
  border-left-color: #ef4444;
}

.solution-item {
  border-left-color: #10b981;
}

.challenge-item h3,
.solution-item h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.challenge-item h3 i {
  color: #ef4444;
  margin-right: 0.5rem;
}

.solution-item h3 i {
  color: #10b981;
  margin-right: 0.5rem;
}

.challenge-item p,
.solution-item p {
  color: #4b5563;
  line-height: 1.6;
}

.back-to-projects {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #d97706;
}

@media (max-width: 768px) {
  .project-title {
    font-size: 2rem;
  }
  
  .project-subtitle {
    font-size: 1rem;
  }
  
  .project-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .project-stats {
    grid-template-columns: 1fr;
  }
  
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}