/*!
Theme Name: AppsValle AI Solutions
Theme URI: https://appsvalle.com
Author: AppsValle Communications Team
Author URI: https://appsvalle.com
Description: Premium AI solutions theme featuring futuristic design, particle animations, and global infrastructure showcase. Built for SME efficiency and foundational AI infrastructure across Africa, Americas, and Asia.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appsvalle
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ========================================
   DESIGN TOKENS & CSS CUSTOM PROPERTIES
   ======================================== */

:root {
  /* Color Palette */
  --color-midnight: #0a1128;
  --color-midnight-light: #141f3f;
  --color-charcoal: #1a1f2e;
  --color-charcoal-light: #2a3142;
  
  /* Primary Accents */
  --color-cyan: #00d9ff;
  --color-cyan-light: #4df5ff;
  --color-cyan-dark: #00a8cc;
  
  --color-purple: #b91aff;
  --color-purple-light: #d946ef;
  --color-purple-dark: #8b0dad;
  
  /* AppsValle Brand */
  --color-apps-red: #ff3333;
  --color-apps-orange: #ff9900;
  --color-apps-gold: #d4af37;
  
  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-100: #f8f8f8;
  --color-gray-200: #e8e8e8;
  --color-gray-400: #b0b0b0;
  --color-gray-600: #707070;
  --color-gray-800: #323232;
  --color-black: #000000;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #0ea5e9;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  --font-weight-300: 300;
  --font-weight-400: 400;
  --font-weight-500: 500;
  --font-weight-600: 600;
  --font-weight-700: 700;
  --font-weight-800: 800;
  
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Glow Effects */
  --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.3);
  --glow-cyan-intense: 0 0 40px rgba(0, 217, 255, 0.5);
  --glow-purple: 0 0 20px rgba(185, 26, 255, 0.3);
  --glow-purple-intense: 0 0 40px rgba(185, 26, 255, 0.5);
  --glow-red: 0 0 20px rgba(255, 51, 51, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max-width: 1280px;
  --container-padding: 1.5rem;
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.875rem;
    --container-padding: 1rem;
  }
}

/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-gray-200);
  background-color: var(--color-midnight);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-700);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-cyan-light);
}

button, .button {
  font-family: var(--font-primary);
  cursor: pointer;
}

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

/* ========================================
   CONTAINER & LAYOUT UTILITIES
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

/* Section Padding */
section {
  padding: var(--space-5xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-3xl) 0;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-600);
  border: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-apps-orange) 100%);
  color: var(--color-midnight);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan-intense);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-apps-red) 100%);
  color: var(--color-white);
  box-shadow: var(--glow-purple);
}

.btn-secondary:hover {
  box-shadow: var(--glow-purple-intense);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-cyan);
  border: 2px solid var(--color-cyan);
}

.btn-ghost:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */

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

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

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
  }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

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

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

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Hide/Show */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .show-mobile { display: none; }
}

/* ========================================
   WORDPRESS CORE STYLES
   ======================================== */

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-button__link {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-block;
}

/* Ensure proper link styling in content */
.content a {
  color: var(--color-cyan);
  text-decoration: underline;
  transition: color var(--transition-base);
}

.content a:hover {
  color: var(--color-cyan-light);
}
