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

/* ==========================================================================
   EL SALI TRADING & PROJECTS - PREMIUM LIGHT THEME
   Bright, Clean, White Nav, Image-Heavy
   ========================================================================== */

:root {
  /* Core Palette - Premium Light Theme */
  --bg-main: #f8fafc; /* Very light slate */
  --bg-surface: #ffffff; /* Pure white */
  --bg-surface-light: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.4); /* True Glassmorphism Nav */
  
  /* Accents */
  --accent-primary: #ff5e00; /* Vibrant Orange */
  --accent-primary-glow: rgba(255, 94, 0, 0.3);
  --accent-secondary: #0ea5e9; /* Bright Blue */
  --accent-secondary-glow: rgba(14, 165, 233, 0.3);
  
  /* Text Colors */
  --text-main: #0f172a; /* Deep dark slate */
  --text-muted: #475569;
  --text-inverse: #ffffff;
  
  /* Borders & Dividers */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-highlight: rgba(0, 0, 0, 0.12);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --t-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --t-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   NAVIGATION BAR - WHITE
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--t-smooth);
}

header.scrolled {
  background: rgba(0, 0, 0, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
}

.logo img {
  height: 65px;
  transition: var(--t-fast);
}

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

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

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: var(--t-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 10px 20px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(255, 94, 0, 0.4);
  background: #e65500;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background: var(--bg-surface-light);
  transform: translateY(-4px);
}

/* ==========================================================================
   HERO SECTION - HEAVY IMAGE, BRIGHT OVERLAYS
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  overflow: hidden;
}

.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;
  background-attachment: fixed;
  z-index: -2;
  transform: scale(1.05);
  animation: heroZoom 20s infinite alternate;
}

/* Black Gradient Overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, 
      rgba(0, 0, 0, 0.6) 0%, 
      rgba(0, 0, 0, 0.8) 70%, 
      var(--bg-main) 100%
  );
  z-index: -1;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

@keyframes pageZoom {
  0% { transform: scale(1.15); }
  100% { transform: scale(1.25); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  margin-top: 5rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: var(--space-md);
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  animation: revealUp 1s var(--t-smooth) forwards;
}

.hero h2 {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  animation: revealUp 1s var(--t-smooth) 0.2s forwards;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-lg);
  animation: revealUp 1s var(--t-smooth) 0.4s forwards;
}

.badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.badge i {
  color: var(--accent-primary);
  font-size: 1.8rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: revealUp 1s var(--t-smooth) 0.6s forwards;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LAYOUT STRUCTURES
   ========================================================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.section-title {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  color: var(--text-main);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: var(--radius-pill);
}

.section-title p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-top: var(--space-md);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--t-smooth);
  box-shadow: var(--shadow-sm);
}

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

.card h3 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Service Cards */
.service-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card .img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover img {
  transform: scale(1.1) rotate(1deg);
}

.service-content {
  padding: var(--space-md);
  flex-grow: 1;
}

.service-content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-content h3 i {
  color: var(--accent-primary);
  background: rgba(255, 94, 0, 0.1);
  padding: 1.2rem;
  font-size: 2.2rem;
  border-radius: var(--radius-sm);
}

.service-content li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
}

.service-content li::before {
  content: "✦";
  color: var(--accent-secondary);
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================================================
   WORK PROCESS
   ========================================================================== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 0; left: 45px;
  width: 2px; height: 100%;
  background: var(--border-highlight);
  z-index: 0;
}

.process-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  z-index: 1;
  transition: var(--t-smooth);
  box-shadow: var(--shadow-sm);
}

.process-step:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-float);
}

.step-number {
  width: 90px;
  height: 90px;
  background: var(--bg-main);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-primary);
  flex-shrink: 0;
  background: #fff;
  z-index: 2;
  transition: var(--t-smooth);
}

.process-step:hover .step-number {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.process-step h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   TABLES & SECTORS
   ========================================================================== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.info-table th, .info-table td {
  padding: 1.5rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.info-table th {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--bg-surface-light);
  width: 35%;
  border-right: 1px solid var(--border-subtle);
}

.info-table td {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.sector-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.sector-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--t-smooth);
  box-shadow: var(--shadow-sm);
}

.sector-item i {
  color: var(--accent-secondary);
  font-size: 2.5rem;
  transition: var(--t-fast);
}

.sector-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-float);
}

/* ==========================================================================
   INNER PAGE HEADERS (HUGE IMAGES)
   ========================================================================== */
.page-header {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 120%;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  z-index: -2;
  transform: scale(1.15);
  animation: pageZoom 20s infinite alternate;
}

/* Black gradient overlay for inner headers */
.page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.95) 90%, var(--bg-main) 100%);
  z-index: -1;
}

.page-header.about-bg::before { background-image: url('images/about_team.jpg'); }
.page-header.services-bg::before { background-image: url('images/service_construction.jpg'); }
.page-header.contact-bg::before { background-image: url('images/about_team.jpg'); }

.page-header h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  text-align: center;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  animation: revealUp 1s var(--t-smooth) forwards;
}

/* ==========================================================================
   TEAM PROFILES
   ========================================================================== */
.team-member {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: var(--t-smooth);
  box-shadow: var(--shadow-sm);
}

.team-member:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-float);
}

.team-member .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-surface-light);
  border: 4px solid var(--accent-primary);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-primary);
  transition: var(--t-smooth);
}

.team-member h4 {
  font-size: 1.5rem;
}
.team-member p {
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER (CLEAN LIGHT)
   ========================================================================== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-highlight);
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto var(--space-lg);
}

.footer-col h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.footer-col p, .footer-col li {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-col i {
  color: var(--accent-secondary);
  font-size: 1.8rem;
}

.footer-col ul a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { left: 35px; }
  .step-number { width: 70px; height: 70px; font-size: 2rem; }
}

@media (max-width: 768px) {
  header { width: 100%; top: 0; border-radius: 0; padding: 0; }
  .nav-container { padding: 1rem; }
  .nav-links {
    position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
    opacity: 0; pointer-events: none; transform: translateY(-20px); transition: var(--t-smooth);
  }
  .nav-links.active { opacity: 1; pointer-events: all; transform: translateY(0); }
  .nav-links a { color: var(--text-main); }
  .nav-links a:hover, .nav-links a.active { color: var(--accent-primary); }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 10rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .process-steps::before { display: none; }
  .process-step { flex-direction: column; text-align: center; }
  .info-table th, .info-table td { display: block; width: 100%; }
}
