@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --gold: #D4AF37;
  --gold-dark: #B8941F;
  --gold-light: #E5C866;
  --dark: #0D0D0D;
  --light: #F8F8F8;
  --gray: #2A2A2A;
  --anthracite: #1A1A1A;
  --stone: #3A3A3A;
  --earth: #4A3A2A;
  --rock: #5A4A3A;
  --mountain-dark: #2A2A2A;
  --mountain-light: #3A3A3A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8941F;
}

/* Navigation with Geological Layer Effect */
.navbar {
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-light) 50%, transparent 100%);
  opacity: 0.5;
}

.nav-link {
  transition: color 0.3s ease;
  display: block;
}

.nav-link:hover {
  color: var(--gold) !important;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
}

/* Hero Section with Mountain Design */
.hero {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 20%, #2a2a2a 40%, #3a3a3a 60%, #2a2a2a 80%, #1a1a1a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 100px;
  }
}

/* Mountain Silhouette Background - Removed, using SVG instead */

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.1) 100%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L100,0 L100,100 L0,100 Z M20,80 L30,60 L40,70 L50,50 L60,65 L70,55 L80,60 L90,45 L100,50 L100,100 L0,100 Z' fill='%23D4AF37' opacity='0.03'/%3E%3C/svg%3E");
  background-size: cover, 200px 200px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Mountain SVG Pattern */
.mountain-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.mountain-pattern svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Buttons with Geological Style */
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--dark);
  padding: 14px 36px;
  border: none;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  padding: 14px 36px;
  border: 2px solid var(--gold);
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-outline:hover {
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline:hover::before {
  opacity: 1;
}

/* Section Spacing with Geological Layers */
.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, var(--dark) 0%, var(--mountain-dark) 50%, var(--dark) 100%);
  color: #FFFFFF;
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.3;
}

.section-light {
  background: linear-gradient(180deg, var(--light) 0%, #ffffff 50%, var(--light) 100%);
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.2) 50%, transparent 100%);
}

/* Cards with Geological Layer Design */
.card {
  background: #FFFFFF;
  border-radius: 0;
  padding: 32px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border-top: 3px solid var(--gold);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  opacity: 0.6;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-light);
}

.card-dark {
  background: linear-gradient(135deg, var(--gray) 0%, var(--stone) 100%);
  color: #FFFFFF;
  border-top: 3px solid var(--gold);
}

.card-dark::before {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

/* Forms */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E5E5;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E5E5;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Footer with Geological Layer Design */
.footer {
  background: linear-gradient(180deg, var(--dark) 0%, var(--mountain-dark) 100%);
  color: #FFFFFF;
  border-top: 3px solid var(--gold);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-light) 50%, transparent 100%);
  opacity: 0.5;
}

.footer-link {
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive - Mobile First Approach */
@media (max-width: 640px) {
  /* Typography */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  /* Navigation */
  .navbar {
    padding: 12px 16px;
  }
  
  .navbar .container {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Hero Section - Mobile Optimized */
  .hero {
    min-height: 85vh;
    padding: 100px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
    padding: 0 1rem;
    width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.25rem !important;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .hero-content p:first-of-type {
    font-size: 1.375rem !important;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
  
  .hero-content p:last-of-type {
    font-size: 1rem !important;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Better text contrast on mobile */
  .hero-content {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    padding: 2rem 1rem;
    border-radius: 8px;
  }
  
  /* Mountain Pattern - Simplified for Mobile */
  .mountain-pattern {
    height: 50%;
    opacity: 0.3;
  }
  
  .mountain-pattern svg {
    height: 100%;
  }
  
  /* Sections */
  .section {
    padding: 40px 0;
  }
  
  /* Cards */
  .card {
    padding: 20px;
    margin-bottom: 1rem;
  }
  
  /* Buttons - Mobile Optimized */
  .btn-primary,
  .btn-outline {
    padding: 16px 32px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    display: block;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .btn-primary::before,
  .btn-outline::before {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }
  
  /* Forms */
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Gold Line */
  .gold-line {
    width: 60px;
    height: 3px;
    margin: 16px auto;
  }
  
  /* Mining Icon */
  .mining-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
  }
  
  .mining-icon svg {
    width: 32px;
    height: 32px;
  }
  
  /* Container Padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Mobile Menu */
  #mobile-menu {
    background-color: rgba(13, 13, 13, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
  }
  
  /* Grid Adjustments - Only override when not explicitly set */
  .grid:not([class*="grid-cols"]) {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure single column on mobile for multi-column grids */
  .grid[class*="md:grid-cols"] {
    grid-template-columns: 1fr;
  }
  
  /* Spacing Adjustments */
  .space-y-6 > * + * {
    margin-top: 1rem;
  }
  
  .space-y-8 > * + * {
    margin-top: 1.5rem;
  }
  
  /* Hero Text Adjustments - Already defined above */
  
  /* Image Responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Better button spacing on mobile */
  .btn-primary + .btn-primary,
  .btn-outline + .btn-outline {
    margin-top: 0.75rem;
  }
  
  /* Table adjustments */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Better list spacing */
  ul, ol {
    padding-left: 1.25rem;
  }
  
  /* Ensure proper spacing in cards */
  .card > *:first-child {
    margin-top: 0;
  }
  
  .card > *:last-child {
    margin-bottom: 0;
  }
  
  /* Text Sizes */
  .text-5xl {
    font-size: 2rem;
  }
  
  .text-4xl {
    font-size: 1.75rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
  }
  
  .text-xl {
    font-size: 1.125rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  /* Tablet Styles */
  .hero {
    min-height: 70vh;
    padding: 60px 0;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .card {
    padding: 24px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) {
  /* Small Desktop / Large Tablet */
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .section {
    padding: 70px 0;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn-primary,
  .btn-outline {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar {
    border-bottom-width: 1px;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Better text rendering on mobile */
@media (max-width: 640px) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Gold Accent Line with Geological Layer Effect */
.gold-line {
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
  margin: 20px auto;
  position: relative;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.gold-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
}

/* Mining Icon Styles with Geometric Mountain Shape */
.mining-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  position: relative;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.mining-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
  clip-path: polygon(50% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

