/* 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(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: #050505;
}

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: #050505;
}

.logo img {
  height: 60px;
  width: auto;
}

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

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

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

/* Hero Section */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(128, 0, 32, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
  z-index: -1;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  color: #050505;
}

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

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

.hero p {
  font-size: 1.25rem;
  color: #444444;
  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 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* Fallback for when JS is disabled or fails to load */
  animation: revealFallback 0.1s forwards;
  animation-play-state: paused;
}

@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;
  }
}
