/* ======================================
   AFRASIA TRADING — Design System
   ====================================== */

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

:root {
  /* Brand Colors */
  --navy:        #1B2A4A;
  --navy-dark:   #0F1A30;
  --navy-light:  #2A3E66;
  --gold:        #C5963A;
  --gold-light:  #D4AE5C;
  --gold-dark:   #A67C2E;
  --white:       #FFFFFF;
  --off-white:   #F5F7FA;
  --grey-100:    #E8ECF1;
  --grey-200:    #CCD3DC;
  --grey-600:    #6B7A90;
  --grey-800:    #3A4A5E;

  /* Typography */
  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gap: 40px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== Reset & Base ====== */
*, *::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(--grey-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== Typography System ====== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 600px;
  line-height: 1.8;
}

/* ====== Scroll Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ====== NAVIGATION ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(15, 26, 48, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  transition: height 0.3s var(--ease);
}

.navbar.scrolled .nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.3s, transform 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 48, 0.85) 0%,
    rgba(27, 42, 74, 0.75) 40%,
    rgba(27, 42, 74, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  width: 180px;
  margin: 0 auto 30px;
  animation: fadeDown 1s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeUp 1s var(--ease) 0.3s both;
}

.hero-title span {
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  animation: fadeUp 1s var(--ease) 0.5s both;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 24px;
  animation: scaleIn 1s var(--ease) 0.7s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  animation: fadeUp 1s var(--ease) 0.9s both;
}

.hero-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(197,150,58,0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ====== ABOUT SECTION ====== */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

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

.about-text .section-desc {
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--grey-600);
  font-weight: 500;
}

.about-summary {
  background: var(--off-white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 32px;
  border-left: 4px solid var(--gold);
}

.about-summary h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-summary p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.7;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27,42,74,0.15);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* ====== DUBAI HUB SECTION ====== */
.dubai-hub {
  position: relative;
  padding: var(--section-padding);
  overflow: hidden;
}

.dubai-hub-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dubai-hub-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dubai-hub-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 48, 0.9) 0%,
    rgba(15, 26, 48, 0.8) 100%
  );
}

.dubai-hub .container {
  position: relative;
  z-index: 1;
}

.dubai-hub .section-label { color: var(--gold-light); }
.dubai-hub .section-title { color: var(--white); }
.dubai-hub .section-desc { color: rgba(255,255,255,0.7); }

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 50px 0;
}

.flow-step {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.flow-step:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.flow-step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.flow-step h4 {
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.flow-arrow {
  font-size: 2rem;
  color: var(--gold);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.benefit-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.3s var(--ease);
}

.benefit-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.benefit-card .icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.benefit-card h4 {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ====== PRODUCTS SECTION ====== */
.products {
  padding: var(--section-padding);
  background: var(--off-white);
}

.products .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.products .section-desc {
  margin: 0 auto;
}

.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.product-block:last-child {
  margin-bottom: 0;
}

.product-block.reverse {
  direction: rtl;
}

.product-block.reverse > * {
  direction: ltr;
}

.product-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27,42,74,0.12);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.product-info > p {
  font-size: 1rem;
  color: var(--grey-600);
  margin-bottom: 24px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.product-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--grey-100);
  transition: all 0.3s var(--ease);
}

.product-list li:hover {
  box-shadow: 0 4px 20px rgba(27,42,74,0.08);
  transform: translateX(4px);
}

.product-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  margin-top: 2px;
}

.product-list strong {
  color: var(--navy);
}

.product-tagline {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 1px;
}

/* ====== NETWORK SECTION ====== */
.network {
  padding: var(--section-padding);
  background: var(--white);
}

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.network-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.region-tag {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.region-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,42,74,0.2);
}

.network-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.network-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.network-feature .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.network-feature p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.6;
}

.distribution-box {
  background: linear-gradient(135deg, var(--off-white), #EFF2F7);
  border-radius: 16px;
  padding: 24px;
  border-left: 4px solid var(--gold);
}

.distribution-box h4 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.distribution-box p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.6;
}

.network-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27,42,74,0.12);
}

.network-map img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ====== WHY CHOOSE US SECTION ====== */
.why-us {
  padding: var(--section-padding);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197,150,58,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.why-us .container {
  position: relative;
  z-index: 1;
}

.why-us .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-us .section-label { color: var(--gold-light); }
.why-us .section-title { color: var(--white); }
.why-us .section-desc {
  color: rgba(255,255,255,0.7);
  margin: 0 auto;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.why-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.why-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ====== CONTACT SECTION ====== */
.contact {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
}

.contact-item-content h4 {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.5;
}

.contact-item-content a:hover {
  color: var(--gold);
}

.contact-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27,42,74,0.1);
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--navy-dark);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo img {
  height: 50px;
  opacity: 0.8;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s var(--ease);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .product-block,
  .network-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-block.reverse {
    direction: ltr;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .benefits-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    min-height: 600px;
  }

  .hero-logo {
    width: 120px;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .region-tags {
    justify-content: center;
  }
}
