/* ============================================
   Capital Metals - Main Stylesheet
   Brand Colors & Professional Design
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Brand Colors - Enhanced */
  --primary: #0f3460;      /* Deep Blue */
  --primary-light: #1a4a8a;
  --primary-dark: #0a2040;
  --secondary: #e94560;    /* Vibrant Red */
  --secondary-light: #ff6b8a;
  --secondary-dark: #c9354a;
  --accent: #16c79a;       /* Tech Green */
  --accent-light: #2ee8b8;
  --accent-dark: #0ea87a;
  --gold: #ffd700;         /* Precious Gold */
  --gold-light: #ffe44d;
  --gold-dark: #e6c200;
  --dark: #1a1a2e;         /* Deep Navy */
  --dark-light: #2a2a4e;
  --dark-dark: #0a0a1e;
  --light: #f5f5f5;        /* Clean White */
  --light-dark: #e5e5e5;
  --white: #ffffff;
  
  /* Enhanced Gradients */
  --gradient-primary: linear-gradient(135deg, #0f3460 0%, #1a4a8a 50%, #0f3460 100%);
  --gradient-secondary: linear-gradient(135deg, #e94560 0%, #ff6b8a 50%, #c9354a 100%);
  --gradient-accent: linear-gradient(135deg, #16c79a 0%, #2ee8b8 50%, #0ea87a 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffe44d 50%, #e6c200 100%);
  --gradient-hero: linear-gradient(135deg, #0f3460 0%, #1a1a2e 50%, #0a2040 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(15, 52, 96, 0.95) 0%, rgba(26, 26, 46, 0.98) 100%);
  
  /* Enhanced Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(233, 69, 96, 0.3);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-accent: 0 0 20px rgba(22, 199, 154, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--light);
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary);
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header ===== */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--secondary);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-width: 2px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition-normal);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  transition: var(--transition-normal);
}

.logo:hover .logo-icon {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.5));
}

.logo img {
  height: 50px;
  width: auto;
}

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

.nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  background: var(--light);
  color: var(--secondary);
}

.nav-link.active {
  color: var(--secondary);
  background: rgba(233, 69, 96, 0.1);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary);
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(22, 199, 154, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 50% 100%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.satellite-animation {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="35" y="35" width="30" height="30" fill="%23e94560"/><rect x="20" y="40" width="12" height="20" fill="%2316c79a"/><rect x="68" y="40" width="12" height="20" fill="%2316c79a"/></svg>') center/contain no-repeat;
  animation: float 6s ease-in-out infinite;
  opacity: 0.3;
}

.signal-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 199, 154, 0.1) 100%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 2s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

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

.badge-item span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.hero-visual {
  position: relative;
}

.floating-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}

.scan-preview {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
  border-radius: 12px;
  overflow: hidden;
}

.scan-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(22, 199, 154, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 199, 154, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: scanMove 20s linear infinite;
}

@keyframes scanMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.detection-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.detection-marker.gold {
  background: var(--gold);
  top: 30%;
  left: 40%;
  box-shadow: 0 0 20px var(--gold);
}

.detection-marker.silver {
  background: #94a3b8;
  top: 60%;
  left: 60%;
  box-shadow: 0 0 20px #94a3b8;
  animation-delay: 0.5s;
}

.detection-marker.water {
  background: #3b82f6;
  top: 45%;
  left: 25%;
  box-shadow: 0 0 20px #3b82f6;
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  animation: bounce 2s ease-in-out infinite;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--light-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== Stats Section ===== */
.stats-section {
  padding: 4rem 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--light);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #666;
}

/* ===== Services Section ===== */
.services-section {
  padding: 6rem 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured {
  border: 3px solid var(--secondary);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.service-icon.gold { background: var(--gradient-gold); }
.service-icon.oil { background: var(--gradient-primary); }
.service-icon.archaeology { background: var(--gradient-secondary); }
.service-icon.water { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.service-icon.construction { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.service-icon.exploration { background: var(--gradient-accent); }

.service-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features i {
  color: var(--accent);
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 6rem 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.step-card {
  background: var(--light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
}

.step-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.step-description {
  color: #666;
  line-height: 1.8;
}

.step-arrow {
  font-size: 2rem;
  color: var(--accent);
}

/* ===== Why Choose Us ===== */
.why-choose-us {
  padding: 6rem 0;
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem auto;
}

.feature-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: #666;
  line-height: 1.8;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 6rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--light);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.author-name {
  font-weight: 700;
  color: var(--primary);
}

.author-title {
  font-size: 0.9rem;
  color: #666;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem 0;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-description {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

/* ===== Watermark ===== */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(15, 52, 96, 0.03);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* ===== Dropdown Menu Styles ===== */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

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

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  transition: var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--secondary);
  padding-left: 1.75rem;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    animation: none;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a:hover {
    padding-left: 1.5rem;
  }
}
