@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@700;800&family=Poppins:wght@600;700&display=swap');

:root {
  /* Color System */
  --clr-purple: #621d5c;
  --clr-red: #cc7350;
  --clr-blue: #005A9C;
  --clr-dark: #1A1A1A;
  --clr-light: #FAFBFC;
  --clr-white: #FFFFFF;
  
  --clr-purple-light: rgba(98, 29, 92, 0.1);
  --clr-red-light: rgba(204, 115, 80, 0.1);
  --clr-blue-light: rgba(0, 90, 156, 0.1);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-stats: 'Manrope', sans-serif;

  /* Layout */
  --container-width: 1280px;
  --section-padding: 5rem 1rem;
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --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);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --glass-blur: blur(12px);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--clr-red);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(204, 115, 80, 0.3);
}

.btn-primary:hover {
  background-color: #b36344;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 115, 80, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-purple);
  border: 2px solid var(--clr-purple);
}

.btn-outline:hover {
  background-color: var(--clr-purple);
  color: var(--clr-white);
}

/* Sections */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title span {
  display: block;
  color: var(--clr-red);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Services Grid */
.service-card {
  padding: 2rem;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--clr-purple);
  transform: translateY(-5px);
}

/* Products */
.product-category {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.product-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
}
.product-category img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-category:hover img {
  transform: scale(1.1);
}
.product-category h3 {
  color: var(--clr-white);
  z-index: 2;
  position: relative;
  margin: 0;
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 2rem 0;
  overflow-x: auto;
}
.flow-diagram::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--clr-purple-light);
  z-index: 0;
}
.flow-step {
  background: var(--clr-white);
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
  border: 4px solid var(--clr-purple);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--clr-purple);
}
.flow-step:hover {
  transform: scale(1.1);
  background: var(--clr-purple);
  color: var(--clr-white);
}

/* Why Choose Us Features */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--clr-red-light);
  color: var(--clr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-content h4 {
  margin-bottom: 0.25rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--clr-purple) 0%, var(--clr-dark) 100%);
  color: var(--clr-white);
  text-align: center;
  padding: 4rem 0;
}
/* Global Network Map */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--clr-blue-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
}
.map-node {
  position: absolute;
  width: 15px; height: 15px;
  background: var(--clr-red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(204, 115, 80, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(204, 115, 80, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(204, 115, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 115, 80, 0); }
}

/* Testimonials Slider */
.testimonial-card {
  background: var(--clr-white);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin: 1rem;
}
.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #555;
}

/* News Cards */
.news-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.news-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.news-content {
  padding: 1.5rem;
}
.news-date {
  font-size: 0.8rem;
  color: var(--clr-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-form {
  background: var(--clr-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-purple);
  box-shadow: 0 0 0 3px var(--clr-purple-light);
}

/* Footer */
.footer {
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.footer h4 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: var(--clr-red);
}
.footer ul li {
  margin-bottom: 0.75rem;
}
.footer ul li a {
  color: #bbb;
}
.footer ul li a:hover {
  color: var(--clr-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;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo img { margin: 0 auto 1rem; }
  
  /* Fix Supply Chain Flow Diagram */
  .flow-diagram {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 0;
  }
  .flow-diagram::before {
    top: 0; bottom: 0; left: 50%; right: auto;
    width: 2px; height: 100%;
    transform: translateX(-50%);
  }
  .flow-step {
    flex-shrink: 0;
  }
}
