/* --- GLOBAL VARIABLES & RESET --- */
:root {
  --primary: #0288d1;
  --primary-dark: #01579b;
  --bg-light: #e1f5fe;
  --text-grey: #546e7a;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #e1f5fe 0%, #ffffff 100%);
  --shadow: 0 10px 30px rgba(2, 136, 209, 0.1);

  /* UPS Specific */
  --dark-industrial: #1e272e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-grey);
  background-color: #f9fcff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto; /* Ensure aspect ratio is maintained */
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

.text-center {
  text-align: center;
}

/* Margins */
.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-4 {
  margin-top: 40px;
}
.mt-5 {
  margin-top: 50px;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mb-4 {
  margin-bottom: 40px;
}
.mb-5 {
  margin-bottom: 50px;
}
.ml-2 {
  margin-left: 15px;
}

/* Colors */
.text-primary {
  color: var(--primary);
}
.text-white {
  color: var(--white);
}

/* Typography */
.fs-sm {
  font-size: 0.8rem !important;
}
.fs-md {
  font-size: 0.9rem !important;
}
.fs-lg {
  font-size: 1.1rem !important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: center;
}

@media (min-width: 768px) {
  .btn {
    padding: 12px 35px;
    font-size: 1rem;
  }
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(2, 136, 209, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(2, 136, 209, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: white;
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .btn-white {
    padding: 15px 40px;
  }
}

.btn-white:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- NAVBAR --- */
nav {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 60px; /* Smaller logic for mobile default */
}

@media (min-width: 768px) {
  .logo img {
    width: 80px;
  }
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-grey);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-cta {
  display: block;
}

.nav-cta img {
  width: 80px;
}

@media (min-width: 768px) {
  .nav-cta img {
    width: 100px;
  }
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

@media (max-width: 900px) {
  /* Breakpoint for Tablet/Mobile Menu */
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px; /* Adjust based on nav height */
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0; /* Fade effect */
  }

  .nav-links.active {
    max-height: 400px; /* Enough for links */
    opacity: 1;
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-cta {
    display: none; /* Hide e-catalogue button on mobile inside nav, maybe move to menu? */
  }

  /* Optionally show CTA in menu */
  .nav-links .mobile-cta-item {
    display: block;
  }
}

/* --- COMMON COMPONENTS --- */
.tag-pill {
  background: var(--bg-light);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-img {
  height: 200px;
  background: #ddd;
  overflow: hidden;
  position: relative;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.portfolio-text {
  padding: 25px;
}

/* CTA Box */
.cta-box {
  background: var(--primary);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  color: white;
  margin: 60px auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(2, 136, 209, 0.3);
}

@media (min-width: 768px) {
  .cta-box {
    padding: 60px;
    margin: 80px auto;
  }
}

/* Client Section & Slider */
.clients-section {
  background: #f9f9f9;
  padding: 50px 0;
  overflow: hidden;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Swiper Styles */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo-img {
  max-width: 120px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
  cursor: pointer;
}

@media (min-width: 768px) {
  .client-logo-img {
    max-width: 150px;
    max-height: 80px;
  }
}

.client-logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.clientSwiper .swiper-wrapper {
  transition-timing-function: linear;
}

/* --- FOOTER --- */
footer {
  background: #f0f4f8;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-col h5 {
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-size: 14px;
  color: #888;
}
