/* ==========================================================================
   ABOU SAFIA GENERAL TRADING - MASTER RESPONSIVE DESIGN SYSTEM
   شركة أبو صفية للتجارة العامة والاستيراد والتصدير - تشاد
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Identity Palette */
  --primary-navy: #111622;          /* Deep Obsidian Slate */
  --secondary-navy: #1D2331;        /* Metallic Charcoal Gray */
  --accent-gold: #E8601C;            /* Primary Brand Orange */
  --accent-orange: #E8601C;          /* Primary Brand Orange */
  --accent-gold-light: #FFEDD5;      /* Warm Light Orange Tint */
  --accent-gold-hover: #C24B0E;      /* Darker Orange Hover */
  --accent-red: #E31B23;             /* Primary Brand Red */
  --accent-red-hover: #B91C1C;       /* Darker Red Hover */
  --accent-gradient: linear-gradient(135deg, #E8601C 0%, #E31B23 100%);
  --accent-gradient-hover: linear-gradient(135deg, #C24B0E 0%, #B91C1C 100%);
  --slate-gray: #5A606D;             /* Logo Center Metallic Gray */
  --dark-bg: #0B0E14;                /* Deep Background */
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --border-light: #e2e8f0;
  --border-gold: rgba(232, 96, 28, 0.35);
  --border-orange: rgba(232, 96, 28, 0.35);
  --border-red: rgba(227, 27, 35, 0.35);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --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.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 10px 30px -5px rgba(232, 96, 28, 0.35);
  --shadow-orange: 0 10px 30px -5px rgba(232, 96, 28, 0.35);
  --shadow-red: 0 10px 30px -5px rgba(227, 27, 35, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-ar);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  width: 100%;
  position: relative;
}

body[dir="ltr"] {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-hover);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-navy);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(232, 96, 28, 0.12);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-full);
  color: #D94600;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.125rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-height: 48px;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold, .btn-brand, .btn-orange {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-gold:hover, .btn-brand:hover, .btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(232, 96, 28, 0.45);
  background: var(--accent-gradient-hover);
}

.btn-navy, .btn-dark {
  background: var(--primary-navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-navy:hover, .btn-dark:hover {
  background: var(--secondary-navy);
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline-gold, .btn-outline-brand, .btn-outline-orange {
  background: rgba(11, 14, 20, 0.4);
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
  backdrop-filter: blur(8px);
}

.btn-outline-gold:hover, .btn-outline-brand:hover, .btn-outline-orange:hover {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Top Announcement / Info Bar */
.top-bar {
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(232, 96, 28, 0.2);
}

.top-bar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.top-info-item i {
  color: var(--accent-orange);
}

.top-info-item a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.top-info-item a:hover {
  color: var(--accent-orange);
}

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-orange);
  color: var(--accent-gold-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  transition: var(--transition);
  min-height: 36px;
  touch-action: manipulation;
}

.lang-switch-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 22, 34, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 96, 28, 0.25);
  transition: var(--transition);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(232, 96, 28, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--accent-orange);
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

body[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: rgba(232, 96, 28, 0.15);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  font-size: 1.35rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.mobile-toggle:active {
  background: var(--accent-gradient);
  color: #fff;
}

/* ==========================================================================
   HERO CAROUSEL SECTION (100% RELIABLE BACKGROUND DISPLAY)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 580px;
  background: var(--dark-bg);
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100%;
  min-height: 580px;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Explicit fallback URLs in CSS */
.slide.slide-1, .slide:nth-child(1) {
  background-image: url('../assets/images/hero_storage.png'), url('assets/images/hero_storage.png');
}

.slide.slide-2, .slide:nth-child(2) {
  background-image: url('../assets/images/hero_sugar_bags.jpg'), url('assets/images/hero_sugar_bags.jpg');
}

.slide.slide-3, .slide:nth-child(3) {
  background-image: url('../assets/images/hero_containers.jpg'), url('assets/images/hero_containers.jpg');
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Translucent Vignette Overlay for High Background Clarity */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(11, 14, 20, 0.45) 0%, 
    rgba(11, 14, 20, 0.25) 50%, 
    rgba(11, 14, 20, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

body[dir="rtl"] .slide-overlay {
  background: linear-gradient(
    90deg, 
    rgba(11, 14, 20, 0.7) 0%, 
    rgba(11, 14, 20, 0.4) 50%, 
    rgba(11, 14, 20, 0.2) 100%
  );
}

.slide-content-wrapper {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 3.5rem;
}

.slide-text-box {
  max-width: 750px;
  color: #ffffff;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out 0.3s;
}

.slide.active .slide-text-box {
  transform: translateY(0);
  opacity: 1;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(11, 14, 20, 0.65);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-full);
  color: var(--accent-gold-light);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.slide-title {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.85);
}

.slide-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  background: rgba(11, 14, 20, 0.35);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slider Controls & Indicators */
.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(11, 14, 20, 0.85);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 96, 28, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.control-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.control-btn:hover, .control-btn:active {
  background: var(--accent-gradient);
  color: #ffffff;
}

.carousel-indicators {
  display: flex;
  gap: 0.75rem;
}

.indicator {
  width: 35px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.indicator.active {
  background: var(--accent-gradient);
  width: 55px;
}

/* Features Highlights Bar */
.highlights-bar {
  background: linear-gradient(135deg, #111622 0%, #1D2331 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
  margin-top: -50px;
  position: relative;
  z-index: 30;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-orange);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(232, 96, 28, 0.15);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-orange);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(232, 96, 28, 0.15);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Sections Global Styling */
.section {
  padding: 5.5rem 0;
}

/* About Us Section */
.about-section {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-orange);
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-badge-floating {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--primary-navy);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-orange);
  box-shadow: var(--shadow-orange);
  max-width: 220px;
  text-align: center;
}

body[dir="ltr"] .about-badge-floating {
  right: auto;
  left: -25px;
}

.about-badge-floating h3 {
  color: var(--accent-orange);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.about-badge-floating p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

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

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-box i {
  color: var(--accent-orange);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.feature-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Commodities & Products Section */
.products-section {
  background: var(--light-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

.product-img-box {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--primary-navy);
}

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

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(17, 22, 34, 0.92);
  color: var(--accent-orange);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--accent-orange);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body[dir="ltr"] .product-tag {
  right: auto;
  left: 1rem;
}

.product-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.spec-label {
  color: var(--text-muted);
}

.spec-val {
  font-weight: 700;
  color: var(--primary-navy);
}

/* Contact Section */
.contact-section {
  background: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: linear-gradient(135deg, #111622 0%, #1D2331 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-orange);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(232, 96, 28, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(232, 96, 28, 0.3);
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-orange);
}

/* Footer */
.main-footer {
  background: var(--dark-bg);
  color: #fff;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(232, 96, 28, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.footer-title {
  color: var(--accent-orange);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-orange);
  padding-right: 5px;
}

body[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COMPREHENSIVE MULTI-BREAKPOINT RESPONSIVE DESIGN SYSTEM
   تجاوب كامل مع كافة أنواع وأحجام الشاشات (320px - 1400px+)
   ========================================================================== */

/* 1. Ultra-Wide & Large Desktop Displays (≥ 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1380px;
  }

  .hero-section {
    height: 80vh;
    min-height: 620px;
  }

  .carousel-container {
    min-height: 620px;
  }

  .slide-title {
    font-size: 3.5rem;
  }

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

/* 2. Standard Desktop & Laptops (1024px – 1399px) */
@media (max-width: 1200px) {
  .about-grid {
    gap: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

/* 3. Tablets Landscape & Medium Screens (769px – 1023px) */
@media (max-width: 992px) {
  .section {
    padding: 4rem 0;
  }

  .hero-section {
    height: 75vh;
    min-height: 540px;
  }

  .carousel-container {
    min-height: 540px;
  }

  .main-header {
    height: 72px;
  }

  .header-wrapper {
    height: 72px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(17, 22, 34, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.25rem 1.5rem;
    gap: 1.5rem;
    display: none;
    border-bottom: 3px solid var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
  }

  .nav-link {
    font-size: 1.15rem;
    text-align: center;
    width: 100%;
    padding: 0.75rem 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-badge-floating {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    margin: -35px auto 0;
    max-width: 260px;
  }

  body[dir="ltr"] .about-badge-floating {
    left: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 4. Tablets Portrait & Large Smartphones (577px – 768px) */
@media (max-width: 768px) {
  /* Top Info Bar Mobile Polish */
  .top-bar {
    font-size: 0.8rem;
    padding: 0.6rem 0;
  }

  .top-bar-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }

  .top-info {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .top-info-item {
    font-size: 0.8rem;
    justify-content: center;
  }

  /* Header Optimization */
  .main-header .btn-gold {
    display: none;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .logo-brand img {
    width: 40px;
    height: 40px;
  }

  /* Hero Section Mobile Explicit Height (NEVER AUTO-COLLAPSE) */
  .hero-section {
    height: 70vh;
    min-height: 500px;
    padding-top: 1rem;
    padding-bottom: 4rem;
  }

  .carousel-container {
    min-height: 500px;
  }

  .slide-content-wrapper {
    padding-bottom: 4.5rem;
    align-items: flex-start;
  }

  .slide-text-box {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .slide-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.85rem;
  }

  .slide-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }

  .slide-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .slide-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .slide-actions .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Overlay gradient for high background clarity on mobile */
  .slide-overlay {
    background: linear-gradient(
      180deg, 
      rgba(11, 14, 20, 0.55) 0%, 
      rgba(11, 14, 20, 0.3) 50%, 
      rgba(11, 14, 20, 0.8) 100%
    ) !important;
  }

  /* Carousel Controls Floating at Bottom */
  .carousel-controls {
    bottom: 0.85rem;
    padding: 0.45rem 1rem;
    gap: 0.85rem;
    background: rgba(11, 14, 20, 0.92);
    border: 1px solid var(--border-orange);
    border-radius: var(--radius-full);
    z-index: 30;
    width: auto;
  }

  .control-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .indicator {
    width: 25px;
    height: 5px;
  }

  .indicator.active {
    width: 42px;
  }

  /* Highlights Bar */
  .highlights-bar {
    margin-top: -25px;
    padding: 1.5rem 1rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }

  .stat-item {
    padding: 0.5rem 0;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-main-img {
    height: 320px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* 5. Compact Mobile Devices & Standard Phones (381px – 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-section {
    height: 65vh;
    min-height: 460px;
  }

  .carousel-container {
    min-height: 460px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .slide-title {
    font-size: 1.45rem;
  }

  .slide-desc {
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
  }

  .btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.925rem;
    width: 100%;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .about-main-img {
    height: 260px;
  }
}

/* 6. Extra Small & Foldable Smartphones (320px – 380px) */
@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    height: 60vh;
    min-height: 420px;
  }

  .carousel-container {
    min-height: 420px;
  }

  .top-bar {
    font-size: 0.75rem;
  }

  .top-info-item:nth-child(2) {
    display: none;
  }

  .logo-brand img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .slide-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .slide-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .slide-desc {
    font-size: 0.85rem;
  }

  .carousel-controls {
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
  }

  .control-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .indicator {
    width: 20px;
  }

  .indicator.active {
    width: 34px;
  }

  .contact-info-card {
    padding: 1.75rem 1rem;
  }
}
