/* ============================================
   Polymer-Axis Technologies - Main Stylesheet
   Brand Colors & Design System
   ============================================ */

:root {
  --primary-black: #121212;
  --primary-green: #00E676;
  --accent-orange: #FF9100;
  --accent-blue: #00B0FF;
  --light-bg: #1a1a1a;
  --dark-text: #e0e0e0;
  --border-color: #333333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-black);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Typography & Headings
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

code, pre {
  font-family: 'Courier New', monospace;
  background-color: rgba(0, 230, 118, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--primary-green);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
  background-color: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-green) !important;
  letter-spacing: 0.05em;
}

.navbar-brand span {
  color: #ffffff;
}

.nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a2e 50%, var(--primary-black) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 230, 118, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 176, 255, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 2rem;
  font-style: italic;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero p {
  font-size: 1.1rem;
  color: var(--dark-text);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Buttons & CTAs
   ============================================ */

.btn-primary {
  background-color: var(--primary-green);
  color: var(--primary-black);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #00d96d;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.3);
  color: var(--primary-black);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: var(--primary-black);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--accent-blue);
  color: var(--primary-black);
}

/* ============================================
   Cards & Components
   ============================================ */

.card {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.1), transparent);
  transition: left 0.5s ease;
}

.card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 10px 40px rgba(0, 230, 118, 0.1);
  transform: translateY(-5px);
}

.card:hover::before {
  left: 100%;
}

.card-title {
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-text {
  color: var(--dark-text);
  line-height: 1.8;
}

/* ============================================
   Sections & Spacing
   ============================================ */

section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 2rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.section-subtitle {
  color: var(--primary-green);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* ============================================
   Grid & Layout
   ============================================ */

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

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

/* ============================================
   Tables & Data Display
   ============================================ */

.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--light-bg);
}

thead {
  background-color: rgba(0, 230, 118, 0.1);
  border-bottom: 2px solid var(--primary-green);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--primary-green);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--dark-text);
}

tbody tr:hover {
  background-color: rgba(0, 230, 118, 0.05);
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: #999;
  font-size: 0.9rem;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-green {
  color: var(--primary-green);
}

.text-blue {
  color: var(--accent-blue);
}

.text-orange {
  color: var(--accent-orange);
}

.bg-dark {
  background-color: var(--primary-black);
}

.bg-light {
  background-color: var(--light-bg);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }
}

/* ============================================
   Animation Classes
   ============================================ */

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00d96d;
}
