/* 
  El-Shadai Logistics - Custom CSS 
  Premium Design System
*/

:root {
  /* Colors */
  --primary-color: #ed2d59; /* Vibrant highlight from logo */
  --primary-hover: #d11e47;
  --dark-color: #44403f; /* Dark theme from logo */
  --darker-color: #2b2827;
  --light-color: #ffffff;
  --gray-light: #f4f5f7;
  --gray-text: #6b7280;
  --bg-color: #ffffff;
  --text-color: #333333;
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease-in-out;
  
  /* Layout */
  --container-width: 1200px;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--gray-light);
}

.bg-dark {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* Language Switcher Logic */
body.lang-pt-active .lang-en { display: none !important; }
body.lang-en-active .lang-pt { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  box-shadow: 0 4px 14px rgba(237, 45, 89, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 45, 89, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
}

.btn-secondary:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
  transform: translateY(-2px);
}

/* Typography elements */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.bg-dark .section-header h2 {
  color: var(--light-color);
}

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

/* --- Navbar --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  height: 45px;
  transition: var(--transition);
}

header.scrolled .logo {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--light-color);
  position: relative;
}

header.scrolled .nav-links a {
  color: var(--dark-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--light-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

header.scrolled .lang-btn {
  background: var(--gray-light);
  border-color: #ddd;
  color: var(--dark-color);
}

.lang-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--light-color);
  cursor: pointer;
}

header.scrolled .mobile-menu-btn {
  color: var(--dark-color);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('photo_5882256916929953176_y.jpg'); /* Truck image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  z-index: -2;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(68, 64, 63, 0.9) 0%, rgba(43, 40, 39, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 2rem;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-content h1 .highlight {
  color: var(--primary-color);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- About Us Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray-text);
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--dark-color);
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  transform: translateX(20px);
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--primary-color);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(237, 45, 89, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.value-card:hover .icon-wrapper {
  background-color: var(--primary-color);
  color: white;
}

.value-card h3 {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.4s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card h4 {
  font-size: 1.2rem;
  color: var(--dark-color);
  font-weight: 600;
  transition: var(--transition);
}

.service-card:hover .service-icon,
.service-card:hover h4 {
  color: white;
}

/* --- Locations Section --- */
.locations-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.locations-info h3 {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 2rem;
}

.border-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.border-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: 12px;
  transition: var(--transition);
}

.border-list li:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateX(10px);
  border-left: 4px solid var(--primary-color);
}

.border-list i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.border-list strong {
  display: block;
  color: var(--dark-color);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.border-list span {
  color: var(--gray-text);
  font-size: 0.95rem;
}

.rounded-image {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

/* --- News Section --- */
.news-content {
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.news-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.news-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.news-card p {
  color: #ccc;
  margin-bottom: 1rem;
}

.news-card strong {
  color: white;
}

.mt-4 {
  margin-top: 2rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--darker-color);
  color: var(--light-color);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Makes logo white if it's not */
}

.footer-col p {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #aaa;
}

.contact-list i {
  color: var(--primary-color);
}

.contact-list strong {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear {
  opacity: 1;
  transform: translate(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .about-grid, .locations-wrapper {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-links a {
    color: var(--dark-color) !important;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-light);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  header {
    background-color: rgba(68, 64, 63, 0.9);
    padding: 1rem 0;
  }
  
  header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}
