/* IndoAsia Trading - Unified Theme System */

/* ===== CSS VARIABLES - BRAND THEME ===== */
:root {
  /* Brand Colors */
  --brand-navy: #183E6C;   /* Deep Navy Blue */
  --brand-red:  #EC1E24;   /* Bright Red */
  --brand-white: #EDEDED;  /* Off White */

  /* Backgrounds */
  --bg-primary: var(--brand-white);
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-accent: #f0f9ff;

  /* Accents */
  --accent: var(--brand-navy);
  --accent-secondary: var(--brand-red);
  --accent-gradient: linear-gradient(135deg, var(--brand-navy), var(--brand-red));
  --accent-light: #2d5a87;
  --accent-dark: #0f2a44;
  --accent-hover: #2d5a87;

  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  /* Borders & Shadows */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-accent: #dbeafe;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(24, 62, 108, 0.15);

  /* UI Helpers */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --hover-bg: #f8fafc;
  --active-bg: #eff6ff;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-optical-sizing: auto;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: var(--text-primary);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(24, 62, 108, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(24, 62, 108, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 62, 108, 0.3);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow);
  border-color: rgba(24, 62, 108, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition);
}

.card-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(24, 62, 108, 0.4);
}

/* ===== HEADER STYLES ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header.sticky {
  padding: 0.4rem 0;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  align-items: center;
  position: relative;
}

.nav li {
  position: relative;
}

.nav li a {
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.nav li a:hover,
.nav li a.active {
  background: var(--hover-bg);
  color: var(--accent);
}

/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  border-radius: 0;
}

.dropdown-menu li a:hover {
  background: var(--hover-bg);
}

/* Contact Button Styling */
.nav li:last-child a {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
}

.nav li:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 62, 108, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
  z-index: 1101;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== FOOTER STYLES ===== */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-section p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  transition: var(--transition);
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 62, 108, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ===== GRIDS & LAYOUTS ===== */
.services-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-2deg);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ===== HERO SECTIONS ===== */
.hero,
.about-hero,
.contact-hero,
.services-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-top: 100px;
}

.hero-content,
.about-hero-content,
.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(24, 62, 108, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  /* Mobile Navigation */
  .mobile-menu-btn {
    display: flex;
    z-index: 1101;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-top: 2px solid var(--accent);
    z-index: 1099;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(26, 32, 44, 0.1);
  }

  .nav li:last-child {
    border-bottom: none;
  }

  .nav li a {
    display: block;
    padding: 1rem 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
  }

  .nav li a:hover {
    background: var(--accent);
    color: white;
    transform: translateX(5px);
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .dropdown-menu li a:hover {
    background: var(--accent-secondary);
    color: white;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .services-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== UTILITY CLASSES ===== */
.hover-zoom {
  overflow: hidden;
  display: inline-block;
}

.hover-zoom img {
  transition: transform 450ms cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

.hover-zoom:hover img {
  transform: scale(1.06) translateZ(0);
}

.scale-in {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.scale-in.visible {
  transform: scale(1);
  opacity: 1;
}

.stagger-container > * {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* Enhanced hover effects */
.btn:hover {
  transform: translateY(-4px) scale(1.05);
}

.btn-primary:hover {
  box-shadow: 0 12px 35px rgba(24, 62, 108, 0.5);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 35px rgba(24, 62, 108, 0.4);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent);
  background: linear-gradient(135deg, #ffffff, #fef2f2);
  box-shadow: 0 12px 32px rgba(24, 62, 108, 0.12);
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-accent);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-accent);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(24, 62, 108, 0.3);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}