/* Pameltex Tech - Design System */
:root {
  /* Colors */
  --primary: #800020; /* Deep Burgundy */
  --primary-light: #a52a2a;
  --primary-dark: #4d0013;
  --secondary: #121212;
  --accent: #00d2ff; /* Tech Cyan */
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --bg: #050505;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-main);
  
  /* Spacing */
  --section-padding: 8rem 2rem;
  --container-max: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
}

.logo img {
  height: 60px;
  width: auto;
  background: white; /* Ensures the logo is visible and clean */
  padding: 5px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  color: #ffffff;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.8)), url('../assets/botswana-tech.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Sits above the static map but behind text */
  pointer-events: none;
  opacity: 0.6;
}

/* Tech Scanline Effect */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
  box-shadow: 0 0 15px var(--primary);
  animation: scanline 8s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0; }
  100% { top: 100%; }
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 1px;
  opacity: 0.3;
  animation: float 20s linear infinite;
}

@keyframes float {
  from { transform: translateY(100vh) rotate(0deg); }
  to { transform: translateY(-100px) rotate(360deg); }
}

.hero .container {
  position: relative;
  z-index: 10; /* Ensure text stays on top of map */
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero h1 span {
  color: var(--primary);
  display: inline;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(128, 0, 32, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(128, 0, 32, 0.5);
}

/* Features/Services Section */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 3rem;
  text-align: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  background: #080808;
}

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

.footer-col h4 {
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
/* Content is visible by default for maximum reliability */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Only hide if JS is confirmed to be working and will handle the animation */
.js-loading .reveal {
  opacity: 0;
  transform: translateY(30px);
}

@keyframes revealFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal.active, .no-gsap .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Add mobile menu later */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
