/* ===================================
   AZHAR CONS SARL - DESIGN SYSTEM
   "The Azhar Nexus" Concept
   =================================== */

/* ===================================
   1. CSS VARIABLES - COLOR SYSTEM
   =================================== */
:root {
  /* Primary Brand Colors (from logo) */
  --color-deep-teal: #1C485A;
  --color-turquoise: #11ABB8;
  --color-steel-blue: #29628C;
  --color-dark: #1A3B49;

  /* Division Accent Colors */
  --color-plastics: #11ABB8;
  --color-services: #F2A900;
  --color-btp: #F57C00;
  --color-it: #3B82F6;

  /* Neutral Colors */
  --color-bg-light: #F8FAFB;
  --color-bg-white: #FFFFFF;
  --color-text-primary: #0B1F2A;
  --color-text-secondary: #64748B;

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-deep-teal) 0%, var(--color-steel-blue) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(28, 72, 90, 0.9) 0%, rgba(41, 98, 140, 0.85) 100%);
  --gradient-hero: linear-gradient(135deg, #1C485A 0%, #29628C 50%, #11ABB8 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

  /* Spacing System (8px base) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* Typography Scale */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 2rem;     /* 32px */
  --text-4xl: 2.5rem;   /* 40px */
  --text-5xl: 3rem;     /* 48px */
  --text-6xl: 4rem;     /* 64px */

  /* Modern Shadows - Deeper & More Prominent */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.24);
  --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.30);

  /* Modern Border Radius - Larger & Rounder */
  --radius-sm: 0.5rem;    /* 8px */
  --radius-md: 1rem;      /* 16px */
  --radius-lg: 1.5rem;    /* 24px */
  --radius-xl: 2rem;      /* 32px */
  --radius-2xl: 2.5rem;   /* 40px */

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   2. RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   3. TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); font-weight: 800; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--text-base);
}

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

a:hover {
  color: var(--color-steel-blue);
}

/* ===================================
   4. LAYOUT UTILITIES
   =================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

/* Grid System (12 columns) */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ===================================
   5. COMPONENTS - BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-turquoise);
  color: var(--color-bg-white);
  border-color: var(--color-turquoise);
  box-shadow: 0 4px 16px rgba(17, 171, 184, 0.3);
}

.btn-primary:hover {
  background: var(--color-steel-blue);
  border-color: var(--color-steel-blue);
  color: var(--color-bg-white) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(17, 171, 184, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-turquoise);
  border-color: var(--color-turquoise);
}

.btn-secondary:hover {
  background: var(--color-turquoise);
  color: var(--color-bg-white) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(17, 171, 184, 0.3);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
  border-radius: var(--radius-2xl);
}

/* Division-specific button colors with modern shadows */
.btn-plastics {
  background: var(--color-plastics);
  border-color: var(--color-plastics);
  color: var(--color-bg-white) !important;
  box-shadow: 0 4px 16px rgba(17, 171, 184, 0.3);
}
.btn-plastics:hover {
  background: var(--color-deep-teal);
  border-color: var(--color-deep-teal);
  color: var(--color-bg-white) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(17, 171, 184, 0.4);
}

.btn-services {
  background: var(--color-services);
  border-color: var(--color-services);
  color: var(--color-bg-white) !important;
  box-shadow: 0 4px 16px rgba(242, 169, 0, 0.3);
}
.btn-services:hover {
  background: #d89700;
  border-color: #d89700;
  color: var(--color-bg-white) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(242, 169, 0, 0.4);
}

.btn-btp {
  background: var(--color-btp);
  border-color: var(--color-btp);
  color: var(--color-bg-white) !important;
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.3);
}
.btn-btp:hover {
  background: #dc6900;
  border-color: #dc6900;
  color: var(--color-bg-white) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(245, 124, 0, 0.4);
}

.btn-it {
  background: var(--color-it);
  border-color: var(--color-it);
  color: var(--color-bg-white) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.btn-it:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: var(--color-bg-white) !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* ===================================
   6. COMPONENTS - CARDS
   =================================== */
.card {
  background: var(--color-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(17, 171, 184, 0.1);
}

.card-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
  font-size: var(--text-3xl);
  transition: all var(--transition-base);
}

.card-icon.plastics { background: rgba(17, 171, 184, 0.12); color: var(--color-plastics); }
.card-icon.services { background: rgba(242, 169, 0, 0.12); color: var(--color-services); }
.card-icon.btp { background: rgba(245, 124, 0, 0.12); color: var(--color-btp); }
.card-icon.it { background: rgba(59, 130, 246, 0.12); color: var(--color-it); }

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

/* ===================================
   7. HEADER & NAVIGATION
   =================================== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-deep-teal);
  display: inline-block;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.logo:hover {
  color: var(--color-turquoise);
  transform: scale(1.02);
}

.logo img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: all var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-primary);
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-turquoise);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 240px;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--color-bg-light);
  color: var(--color-turquoise);
  transform: translateX(4px);
  padding-left: calc(var(--space-md) + 4px);
}

.lang-switcher {
  display: flex;
  gap: var(--space-xs);
  font-size: var(--text-sm);
}

.lang-btn {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-turquoise);
  color: white;
  border-color: var(--color-turquoise);
}

/* ===================================
   8. HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--color-bg-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: var(--space-2xl);
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   9. DIVISIONS SECTION
   =================================== */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.division-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.division-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.division-card > * {
  position: relative;
  z-index: 2;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.division-card:hover::before {
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.division-card.plastics {
  border-top: 6px solid var(--color-plastics);
  box-shadow: 0 8px 24px rgba(17, 171, 184, 0.15);
}
.division-card.services {
  border-top: 6px solid var(--color-services);
  box-shadow: 0 8px 24px rgba(242, 169, 0, 0.15);
}
.division-card.btp {
  border-top: 6px solid var(--color-btp);
  box-shadow: 0 8px 24px rgba(245, 124, 0, 0.15);
}
.division-card.it {
  border-top: 6px solid var(--color-it);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* ===================================
   10. PARTNERS TICKER
   =================================== */
.partners-section {
  background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
  padding: 4rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.partners-track {
  display: flex;
  gap: 6rem;
  animation: scroll-partners 15s linear infinite;
  will-change: transform;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  min-width: 200px;
  height: 100px;
}

.partner-logo:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.partner-logo img {
  max-width: 180px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all var(--transition-base);
}

.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-track {
    gap: 3rem;
    animation-duration: 10s;
  }

  .partner-logo {
    min-width: 150px;
    height: 80px;
    padding: var(--space-md);
  }

  .partner-logo img {
    max-width: 130px;
    max-height: 50px;
  }
}

/* ===================================
   11. SECTION HEADERS
   =================================== */
.section-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto var(--space-3xl);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

.section-title {
  color: var(--color-deep-teal);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

/* ===================================
   12. FOOTER
   =================================== */
.footer {
  background: linear-gradient(180deg, #1A3B49 0%, #0F2A35 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
  padding-left: 0;
}

.footer-link:hover {
  color: var(--color-turquoise);
  padding-left: 8px;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

/* ===================================
   13. ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===================================
   14. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  margin-left: auto;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .nav {
    position: static;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-list.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: none;
    border: none;
    margin-top: var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero { min-height: 70vh; }

  .header-container {
    flex-wrap: nowrap;
    padding: var(--space-sm) var(--space-md);
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    height: 65px;
  }

  .lang-switcher {
    display: none !important;
  }
}

/* ===================================
   15. UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.hidden { display: none; }
.visible { display: block; }
