/*
Theme Name: SWaMP Platform
Theme URI: https://s2sdynamics.com
Author: S2SDYNAMICS
Author URI: https://s2sdynamics.com
Description: Modern one-page WordPress theme for the SWaMP circular economy platform
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swamp-platform
Tags: one-page, business, environment, circular-economy, sustainability
*/

:root {
  /* Colors - HSL format matching React version */
  --background: 150 12% 6%;
  --foreground: 0 0% 98%;
  --card: 150 10% 8%;
  --card-foreground: 0 0% 98%;
  --popover: 150 10% 8%;
  --popover-foreground: 0 0% 98%;
  --primary: 160 65% 45%;
  --primary-glow: 160 70% 52%;
  --primary-dark: 160 55% 35%;
  --primary-foreground: 0 0% 100%;
  --secondary: 150 12% 12%;
  --secondary-light: 150 10% 15%;
  --secondary-foreground: 0 0% 98%;
  --muted: 150 8% 20%;
  --muted-foreground: 0 0% 60%;
  --accent: 160 65% 45%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 150 10% 18%;
  --input: 150 10% 18%;
  --ring: 160 65% 45%;
  --radius: 0.5rem;
  
  /* Industrial gradients */
  --gradient-primary: linear-gradient(135deg, hsl(160 65% 45%), hsl(160 70% 52%));
  --gradient-circuit: linear-gradient(90deg, 
    hsl(160 65% 45% / 0.1) 0%, 
    transparent 50%, 
    hsl(160 65% 45% / 0.1) 100%);
  
  /* Professional shadows */
  --shadow-glow: 0 0 60px hsl(160 65% 45% / 0.3), 0 0 120px hsl(160 65% 45% / 0.1);
  --shadow-card: 0 8px 16px -4px rgb(0 0 0 / 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-strong: 0 16px 32px -8px rgb(0 0 0 / 0.6);
}

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

body {
  background-color: #0A0F0D;
  color: hsl(var(--foreground));
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    linear-gradient(180deg, hsl(150 12% 6%) 0%, hsl(150 10% 8%) 50%, hsl(150 12% 6%) 100%),
    linear-gradient(90deg, hsl(160 65% 45% / 0.02) 1px, transparent 1px),
    linear-gradient(hsl(160 65% 45% / 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3rem; }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.container-wide {
  max-width: 88rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

@media (min-width: 1024px) {
  .container-wide {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ==========================================
   GLASS EFFECTS
   ========================================== */

.glass {
  background: rgba(13, 20, 18, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.glass-strong {
  background: rgba(13, 20, 18, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow-card);
}

/* ==========================================
   MESH GRADIENT
   ========================================== */

.mesh-gradient {
  background-image:
    linear-gradient(90deg, hsl(160 65% 45% / 0.03) 1px, transparent 1px),
    linear-gradient(hsl(160 65% 45% / 0.03) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, hsl(160 65% 45% / 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, hsl(160 65% 45% / 0.04) 0%, transparent 40%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
}

/* ==========================================
   CARD STYLES
   ========================================== */

.card-elevated {
  background: rgba(13, 20, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
  background-image: linear-gradient(135deg, rgba(46, 160, 130, 0.02) 0%, transparent 100%);
}

.card-elevated:hover {
  border-color: rgba(46, 160, 130, 0.3);
  box-shadow: var(--shadow-strong), 0 0 40px hsl(var(--primary) / 0.15);
  transform: translateY(-4px);
}

/* ==========================================
   BUTTON STYLES
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-hero {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: hsl(var(--primary-glow));
  box-shadow: 0 0 40px rgba(46, 160, 130, 0.4);
}

.btn-secondary {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 2px solid hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--muted));
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: transparent;
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center {
  text-align: center;
}

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

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

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

/* ==========================================
   ANIMATIONS
   ========================================== */

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-up {
  animation: slideUp 0.7s ease-out forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
  opacity: 0;
}

.animate-visible {
  opacity: 1 !important;
}

/* ==========================================
   GRID SYSTEM
   ========================================== */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-cols-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
