/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-dark: #0a0a0c;
  --color-dark-surface: #121215;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-copper: #b87333;
  --color-text: #e0e0e0;
  --color-text-muted: #a0a0a0;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Typography Utility */
.text-gold {
  color: var(--color-gold);
}

.text-copper {
  color: var(--color-copper);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #aa8524 100%);
  color: var(--color-dark);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 10% 0;
  /* Added top padding to account for navbar */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/hero-minerals.png') center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 12, 0.8) 0%, rgba(10, 10, 12, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.5s;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.7s;
}

.hero-btns {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.9s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* General Sections */
.section {
  padding: 100px 10%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features/Commodities */
.commodities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.commodity-card {
  background: var(--color-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.commodity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.commodity-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.commodity-card:hover::before {
  opacity: 1;
}

.commodity-icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.commodity-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.commodity-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* About Preview */
.about-preview {
  display: flex;
  align-items: center;
  gap: 60px;
  background: linear-gradient(to right, var(--color-dark-surface), var(--color-dark));
  padding: 80px 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--color-gold);
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image::before {
  content: '';
  display: block;
  padding-bottom: 80%;
  /* Aspect Ratio */
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-dark-surface), #1a1a20);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
  font-size: 2rem;
  overflow: hidden;
}

/* Footer */
footer {
  background-color: #050505;
  padding: 80px 10% 30px;
  border-top: 2px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 20px;
  max-width: 300px;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: var(--color-gold);
}

.footer-contact li {
  color: var(--color-text-muted);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-contact i {
  color: var(--color-gold);
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 4rem;
  }

  .about-preview {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--color-dark-surface);
    flex-direction: column;
    padding: 100px 40px;
    transition: var(--transition-smooth);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .hero {
    padding: 0 5%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 80px 5%;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .stat-item {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.scrolled-in {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* Global Responsive Layout Utilities */
.split-section {
  display: flex;
  gap: 60px;
  padding: 100px 10%;
  align-items: center;
}

.split-section.items-start {
  align-items: flex-start;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.bg-dark-section {
  background-color: #121212;
}

.bg-darker-section {
  background-color: #1a1a1c;
}

@media (max-width: 992px) {

  .split-section,
  .split-section.items-start {
    flex-direction: column;
    padding: 80px 5%;
    gap: 40px;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section,
  .capabilities-values,
  .long-term-value {
    padding: 80px 5% !important;
  }
}

@media (max-width: 576px) {
  .split-section {
    padding: 60px 5%;
    gap: 30px;
  }

  .section,
  .capabilities-values,
  .long-term-value {
    padding: 60px 5% !important;
  }
}

/* --- Global Responsive Overrides for Mobile and Tablet --- */

@media (max-width: 992px) {

  /* Adjust Container Paddings */
  .page-header {
    padding: 120px 5% 60px !important;
  }

  .contact-container {
    padding: 0 5% 80px !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .content-section,
  .service-section {
    padding: 80px 5% !important;
    gap: 40px !important;
    flex-direction: column !important;
  }

  .why-kemet {
    padding: 40px 5% !important;
  }

  .about-preview {
    padding: 80px 5% !important;
    gap: 40px !important;
  }

  footer {
    padding: 60px 5% 30px !important;
  }
}

@media (max-width: 768px) {

  /* Typography Adjustments */
  .hero h1 {
    font-size: 3rem !important;
  }

  h2,
  .section-title {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  p {
    font-size: 0.95rem !important;
  }

  /* Further Container Padding Adjustments */
  .page-header {
    padding: 100px 5% 50px !important;
  }

  .content-section,
  .contact-container,
  .service-section,
  .split-section {
    padding: 60px 5% !important;
  }

  /* Inner Card Paddings */
  .contact-info-card,
  .contact-form,
  .ltv-card,
  .commodity-card,
  .card {
    padding: 30px 20px !important;
  }

  /* Global Layout Fixes */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Ensure elements don't force width */
  div,
  section,
  header,
  footer {
    box-sizing: border-box !important;
  }
}

/* --- Global Responsive Image Fixes --- */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {

  /* Ensure all flex children in split sections take full width on mobile */
  .split-section>div,
  .content-text,
  .content-image-wrapper,
  .who-we-are-images,
  .who-we-are-content,
  .leadership-image,
  .philosophy-text,
  .core-principles {
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
  }

  /* Re-center items that were pushed to the side */
  .leadership-image {
    justify-content: center !important;
  }

  /* Make image wrappers flexible */
  .image-wrapper {
    width: 100% !important;
  }
}

@media (max-width: 576px) {

  /* Reduce fixed heights on mobile for better visibility */
  .image-wrapper {
    height: 200px !important;
  }
}