/* ============================================
   TERMINALS PAGE STYLES
   Consistent with sustainability.html design
   ============================================ */

/* ===== HERO SECTION ===== */
.terminals-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 1000px;
  overflow: hidden;
   clip-path: ellipse(100% 100% at 50% 0%);
}

.hero-static {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  
}

.hero-text {
  max-width: 800px;
  margin-top: 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 0.9rem;
 color: black;
}

.breadcrumb a {
 color: black;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #00a8ff;
}

.breadcrumb .current {
  color: #00a8ff;
  font-weight: 600;
}

.breadcrumb i {
  font-size: 0.8rem;
  margin: 0 5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: black;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 40px;
color: black;
  max-width: 700px;
}

.hero-stats-terminals {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background:white;
  border-radius: 10px;

  min-width: 150px;
  transition: transform 0.3s, background 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00a8ff;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
color: black;
font-weight: 400;
}

/* ===== MAIN CONTENT SECTIONS ===== */
.terminals-content {
  padding-top: 0;
}

.section {
  padding: 80px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00a8ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a3b5d;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== INTRODUCTION SECTION ===== */
.terminals-intro {
  background: #fff;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1a3b5d;
  margin-bottom: 40px;
  font-weight: 500;
  text-align: center;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.intro-card {
  text-align: center;
  padding: 40px 25px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

.intro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 168, 255, 0.15);
  border-color: #00a8ff;
}

.intro-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.intro-card h3 {
  font-size: 1.5rem;
  color: #1a3b5d;
  margin-bottom: 15px;
}

.intro-card p {
  color: #666;
  line-height: 1.6;
}

/* ===== MAP SECTION ===== */
.terminals-map {
  background: #f8f9fa;
}

.map-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  min-height: 500px;
}

#terminals-map {
  width: 100%;
  height: 500px;
  z-index: 1;
}

.map-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
  max-width: 250px;
}

.map-legend h4 {
  font-size: 1.1rem;
  color: #1a3b5d;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-legend h4 i {
  color: #00a8ff;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-item span:last-child {
  font-size: 0.95rem;
  color: #666;
}

/* ===== TERMINAL LISTING SECTION ===== */
/* ===== TERMINAL LISTING SECTION ===== */
.terminals-listing {
  background: #fff;
  position: relative;
}

.terminals-listing .section-header {
  margin-bottom: 40px;
}

.terminals-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn {
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #e0e6ef;
  border-radius: 8px;
  color: #495057;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #1a3b5d;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.filter-btn:hover {
  color: white;
  border-color: #1a3b5d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 59, 93, 0.2);
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn.active {
  background: #1a3b5d;
  border-color: #1a3b5d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 59, 93, 0.2);
}

.terminals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.terminal-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(224, 230, 239, 0.8);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.terminal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 168, 255, 0.15);
  border-color: rgba(0, 168, 255, 0.3);
}

.terminal-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a8ff, #0097e6);
  opacity: 0;
  transition: opacity 0.3s;
}

.terminal-card:hover::after {
  opacity: 1;
}

.terminal-header {
  padding: 25px 25px 15px;
  position: relative;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0f4f8, #e3e9f2);
  color: #1a3b5d;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 168, 255, 0.2);
  transition: all 0.3s;
}

.terminal-card:hover .terminal-badge {
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
  border-color: transparent;
}

.terminal-badge i {
  color: #00a8ff;
  transition: color 0.3s;
}

.terminal-card:hover .terminal-badge i {
  color: white;
}

.terminal-header h3 {
  font-size: 1.75rem;
  color: #1a3b5d;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s;
}

.terminal-card:hover .terminal-header h3 {
  color: #00a8ff;
}

.terminal-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.terminal-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26, 59, 93, 0.1));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.terminal-card:hover .terminal-image::before {
  opacity: 1;
}

.terminal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-card:hover .terminal-image img {
  transform: scale(1.08);
}

.terminal-details {
  padding: 25px;
  flex-grow: 1;
}

.terminal-info {
  margin-bottom: 25px;
  border-bottom: 1px solid #f0f4f8;
  padding-bottom: 25px;
}

.terminal-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  position: relative;
  padding-left: 5px;
}

.terminal-info p:last-child {
  margin-bottom: 0;
}

.terminal-info i {
  color: #00a8ff;
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  background: rgba(0, 168, 255, 0.1);
  padding: 6px;
  border-radius: 8px;
}

.terminal-info strong {
  color: #1a3b5d;
  font-weight: 600;
  margin-left: 3px;
}

.terminal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.terminal-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.08), rgba(0, 168, 255, 0.04));
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
  border: 1px solid rgba(0, 168, 255, 0.1);
  transition: all 0.3s;
  line-height: 1.4;
}

.terminal-card:hover .terminal-features span {
  background: rgba(0, 168, 255, 0.1);
  border-color: rgba(0, 168, 255, 0.2);
  transform: translateY(-2px);
}

.terminal-features i {
  color: #00a8ff;
  font-size: 0.9rem;
}

.terminal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 25px;
  background: #f8f9fa;
  color: #1a3b5d;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #e9ecef;
  transition: all 0.3s;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.terminal-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg);
  transition: height 0.3s;
  z-index: 1;
}

.terminal-link:hover::before {
  height: 100%;
}

.terminal-link span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-link i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.terminal-link:hover {
  color: black;
  border-color: #00a8ff;
}

.terminal-link:hover i {
  transform: translateX(3px);
}

/* ===== ENHANCED FILTERING ANIMATIONS ===== */
.terminal-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.terminal-card.filtered-out {
  opacity: 0.3;
  transform: scale(0.95);
  pointer-events: none;
  filter: grayscale(0.7);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .terminals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .terminals-filter {
    padding: 15px;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .terminals-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .terminal-card {
    margin: 0 10px;
  }
  
  .terminals-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 15px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .terminals-filter::-webkit-scrollbar {
    height: 4px;
  }
  
  .terminals-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }
  
  .terminals-filter::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .terminals-filter {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  
  .terminal-header h3 {
    font-size: 1.5rem;
  }
  
  .terminal-details {
    padding: 20px;
  }
  
  .terminal-info p {
    font-size: 0.9rem;
  }
  
  .terminal-features span {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* ===== ANIMATION FOR FILTER TRANSITIONS ===== */
@keyframes fadeInUpCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-card {
  animation: fadeInUpCard 0.6s ease forwards;
}

/* ===== ADD THESE TO EXISTING ANIMATIONS ===== */
.terminal-card:nth-child(1) { animation-delay: 0.1s; }
.terminal-card:nth-child(2) { animation-delay: 0.2s; }
.terminal-card:nth-child(3) { animation-delay: 0.3s; }
.terminal-card:nth-child(4) { animation-delay: 0.4s; }
.terminal-card:nth-child(5) { animation-delay: 0.5s; }
.terminal-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== ADD TO TERMINALS.CSS FILE ===== */
/* Add this after the existing CSS for better visual hierarchy */

.terminals-listing .section-subtitle {
  background: rgba(0, 168, 255, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}

.terminals-listing .section-title {
  background: linear-gradient(135deg, #1a3b5d, #2d5280);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.terminals-listing .section-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
}

/* ===== CAPABILITIES SECTION ===== */
.terminal-capabilities {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: white;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 59, 93, 0.9) 0%, rgba(10, 35, 64, 0.8) 100%);
}

.terminal-capabilities .container {
  position: relative;
  z-index: 2;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.capability-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s;
}

.capability-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.capability-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  color: #00a8ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  border: 2px solid #00a8ff;
}

.capability-card h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

.capability-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: center;
}

.capability-card ul {
  list-style: none;
  padding: 0;
}

.capability-card li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.capability-card li i {
  color: #00a8ff;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ===== PRODUCTS HANDLED SECTION ===== */
.products-handled {
  background: #f8f9fa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.product-category {
  text-align: center;
  padding: 40px 25px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  border: 1px solid #e9ecef;
}

.product-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 168, 255, 0.1);
}

.product-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.product-icon.energy {
  background: linear-gradient(135deg, #ff9f43, #ff8c00);
  color: white;
}

.product-icon.chemical {
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
}

.product-icon.edible {
  background: linear-gradient(135deg, #4cd137, #44bd32);
  color: white;
}

.product-icon.speciality {
  background: linear-gradient(135deg, #9c88ff, #8c7ae6);
  color: white;
}

.product-category h3 {
  font-size: 1.5rem;
  color: #1a3b5d;
  margin-bottom: 15px;
}

.product-category p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-count {
  display: inline-block;
  background: #f8f9fa;
  color: #00a8ff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.custom-blends {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.blends-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1a3b5d, #0a3250);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.blends-content {
  flex: 1;
}

.blends-content h3 {
  font-size: 1.75rem;
  color: #1a3b5d;
  margin-bottom: 15px;
}

.blends-content h3 .highlight {
  color: #00a8ff;
}

.blends-content p {
  color: #666;
  line-height: 1.6;
  max-width: 600px;
}

/* ===== CTA SECTION ===== */
.terminals-cta {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.cta-content-terminals {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content-terminals h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta-content-terminals p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-terminals {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00a8ff, #0097e6);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary-terminals:hover {
  background: linear-gradient(135deg, #0097e6, #0082cc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}

.btn-secondary-terminals {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid white;
  cursor: pointer;
}

.btn-secondary-terminals:hover {
  background: white;
  color: #1a3b5d;
  transform: translateY(-2px);
}

.btn-outline-terminals {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-outline-terminals:hover {
  background: white;
  color: #1a3b5d;
  transform: translateY(-2px);
  border-color: white;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-scale {
  animation: scaleIn 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-stats-terminals {
    gap: 20px;
  }
  
  .stat-box {
    min-width: 130px;
    padding: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .intro-grid,
  .terminals-grid,
  .capabilities-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .terminals-filter {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .custom-blends {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .map-legend {
    position: relative;
    top: 0;
    right: 0;
    max-width: 100%;
    margin-top: 20px;
    background: white;
  }
  
  .intro-grid,
  .terminals-grid,
  .capabilities-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-content-terminals h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary-terminals,
  .btn-secondary-terminals,
  .btn-outline-terminals {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats-terminals {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-box {
    width: 100%;
    max-width: 250px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .terminals-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-btn {
    width: 100%;
  }
  
  .terminal-card {
    margin: 0 10px;
  }
  
  .custom-blends {
    padding: 30px 20px;
  }
  
  .blends-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .blends-content h3 {
    font-size: 1.5rem;
  }
}

/* Small mobile phones */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .terminals-grid {
    grid-template-columns: 1fr;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .intro-grid {
    gap: 40px;
  }
  
  .terminals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .terminal-capabilities,
  .terminals-cta {
    background-attachment: scroll;
  }
}

/* Print styles */
@media print {
  .terminals-filter,
  .terminal-link,
  .cta-buttons,
  .social-links,
  .footer-bottom .footer-links {
    display: none !important;
  }
  
  .hero-static {
    background: white !important;
    color: black !important;
    min-height: auto;
  }
  
  .hero-static::before {
    display: none;
  }
  
  .hero-title,
  .hero-subtitle,
  .section-title,
  .section-subtitle,
  .terminal-header h3,
  .capability-card h3,
  .product-category h3,
  .blends-content h3 {
    color: black !important;
  }
  
  .stat-box,
  .intro-card,
  .terminal-card,
  .capability-card,
  .product-category,
  .custom-blends {
    background: white !important;
    border: 1px solid #ddd !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .intro-card p,
  .terminal-info p,
  .capability-card p,
  .product-category p,
  .blends-content p {
    color: #333 !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  .footer {
    border-top: 1px solid #ddd;
  }
}

/* Additional consistency fixes */
.parallax-section .section-header .section-title {
  color: white !important;
}

.parallax-section .section-header .section-subtitle {
  color: #00a8ff !important;
}

.parallax-section .section-header .section-description {
  color: rgba(255, 255, 255, 0.9) !important;
}

.terminals-intro .section-header .section-title,
.terminals-listing .section-header .section-title,
.products-handled .section-header .section-title {
  color: #1a3b5d;
}

.terminals-intro .section-header .section-subtitle,
.terminals-listing .section-header .section-subtitle,
.products-handled .section-header .section-subtitle {
  color: #00a8ff;
}