* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;        /*For no horizontal scroll*/
}

/*Variables*/
:root {
  --max-width: 1200px;
  --nav-height: 60px;

  --bg-dark: #050505;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
}

/*Base*/
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
}

/*Main Content*/
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/*Nav Bar*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: #000;
  z-index: 100;
  transition: transform 0.25s ease;  
}

.site-header.hide {
  transform: translateY(-100%);
}


.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

/*Hero*/
.hero {
  height: 100vh;
  width: 100%;
  padding-top: var(--nav-height);   

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 600px;
}

/*Title*/
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/*Resources titles*/
.hero-resource-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-link {
  text-decoration: none;
  color: var(--text-main);
}

.hero-link:hover .hero-resource-title {
  text-decoration: underline;
}

/*Backgrounds*/

/*Natural Resources hero*/
.hero-main {
  background-image: url("Images/naturalresources.jpg");        
}

/*Oil hero*/
.hero-oil {
  background-image: url("Images/oil.jpg");
}

/*Natural gas hero*/
.hero-gas {
  background-image: url("Images/naturalgas.webp");
}

/*Uranium hero*/
.hero-uranium {
  background-image: url("Images/uranium.avif");
}

/*Lithium hero*/
.hero-lithium {
  background-image: url("Images/lithium.webp");
}

/*Gold*/
.hero-gold {
  background-image: url("Images/gold-bullion.jpg");
}

/*Fade in*/

.fade-section {
  opacity: 0;
  transform: translateY(20px); 
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/*Resources sections*/

.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section p {
  color: var(--text-muted);
  max-width: 800px;
}

.section-intro {
  margin-bottom: 1rem;
}

.deposits-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.deposits-list li {
  color: var(--text-main);
  font-size: 0.95rem;
  opacity: 0.9;
}

/*Backgrounds*/
.hero-oil-page {
  background-image: url("Images/oilhero.jpg");  
}

.hero-natural-gas-page {
  background-image: url("Images/naturalgashero.jpg");  
}

.hero-uranium-page {
  background-image: url("Images/uraniumbomb.jpg");
}

.hero-lithium-page {
  background-image: url("Images/lithiumhero3.jpg");
}

.hero-gold-page {
  background-image: url("Images/goldhero.jpg");
}

/*Images for resources*/

.image-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.image-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center; /* <— THIS helps a ton */
  height: auto;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-grid figure {
  margin: 0;
}

.image-grid figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}