/* ==========================================================================
   NAPO FUELS - Bulk Energy & Fuel Solutions
   Corporate Industrial Energy Stylesheet
   Parent: Napogadi Corporates
   Domain: petrolium.napogadicorporates.co.za
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Color Palette */
  --bg-primary: #070B12;
  --bg-secondary: #0D1424;
  --bg-tertiary: #131E33;
  --bg-card: rgba(16, 26, 44, 0.75);
  --bg-card-hover: rgba(22, 35, 60, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 158, 11, 0.4);
  --border-highlight: rgba(255, 255, 255, 0.15);

  --accent-amber: #F59E0B;
  --accent-amber-light: #FBBF24;
  --accent-amber-dark: #D97706;
  --accent-orange: #EA580C;
  --accent-glow: rgba(245, 158, 11, 0.15);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-amber: #FBBF24;

  --nav-height: 80px;
  --container-max: 1280px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber-dark);
}

/* Container */
.site-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .site-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Ambient Background Elements */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(7, 11, 18, 0) 70%);
}

.industrial-bracket {
  position: relative;
}
.industrial-bracket::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent-amber);
  border-left: 2px solid var(--accent-amber);
  opacity: 0.8;
  pointer-events: none;
}
.industrial-bracket::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent-amber);
  border-right: 2px solid var(--accent-amber);
  opacity: 0.8;
  pointer-events: none;
}

/* Glassmorphism Surface */
.glass-panel {
  background: rgba(16, 26, 44, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(245, 158, 11, 0.1);
}

/* Header & Nav */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  transition: all 0.3s ease;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-scrolled {
  background: rgba(7, 11, 18, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

/* Nav Link Animation */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #CBD5E1;
  transition: color 0.2s ease;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  transition: width 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #070B12;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #EA580C 100%);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  color: #000000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: #F8FAFC;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-amber);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Badge / Technical Pill */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: #FBBF24;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
  border-radius: 0;
}

.tech-dot {
  width: 6px;
  height: 6px;
  background-color: #F59E0B;
  border-radius: 50%;
  box-shadow: 0 0 8px #F59E0B;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* Hero Canvas & Gradient Layers */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background-color: #070B12;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: saturate(1.15) contrast(1.1);
  transform: scale(1.02) scaleX(-1);
  transition: transform 10s ease-out;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.85) 45%, rgba(7, 11, 18, 0.6) 100%),
    linear-gradient(to top, #070B12 0%, transparent 40%),
    radial-gradient(ellipse at 80% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Differentiator Numbers */
.diff-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #F59E0B 0%, rgba(245, 158, 11, 0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Hover 3D Shift */
.capability-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.capability-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.12);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FBBF24;
  transition: all 0.3s ease;
}

.capability-card:hover .capability-icon-box {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.4);
  transform: scale(1.05);
}

/* Industry Card Images */
.industry-card {
  position: relative;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.65) contrast(1.1);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.15) 0%, rgba(7, 11, 18, 0.85) 60%, rgba(7, 11, 18, 0.98) 100%);
  transition: background 0.35s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8);
}

.industry-card:hover .industry-card-img {
  transform: scale(1.08);
  filter: brightness(0.75) contrast(1.15);
}

.industry-card:hover .industry-card-overlay {
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.1) 0%, rgba(7, 11, 18, 0.8) 55%, rgba(7, 11, 18, 0.95) 100%);
}

/* Safety Pillars */
.safety-pillar {
  position: relative;
  padding: 2.5rem 2rem;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.safety-pillar:hover {
  border-top-color: var(--accent-amber);
  background: rgba(19, 30, 51, 0.8);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Form Controls */
.form-input {
  width: 100%;
  background: rgba(7, 11, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  color: #F8FAFC;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-amber);
  background: rgba(13, 20, 36, 0.9);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-input::placeholder {
  color: #64748B;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #0D1424;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background: #0F172A;
  border: 1px solid var(--accent-amber);
  color: #F8FAFC;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7), 0 0 15px rgba(245,158,11,0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll reveal classes */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
