/*
Theme Name: Yohanorg
Theme URI: https://yohanorg.com
Author: Yohanorg Limited
Author URI: https://yohanorg.com
Description: Futuristic AI & Software Consultancy theme for Yohanorg Limited. Featuring Three.js particle systems, GSAP animations, and cutting-edge design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
License URI: https://yohanorg.com/license
Text Domain: yohanorg
Tags: technology, ai, software, consultancy, futuristic, dark, animated
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --electric-blue: #00AEEF;
  --deep-blue: #2272C8;
  --steel-gray: #4C5D73;
  --dark-navy: #1A2534;
  --neon-purple: #8D25F4;
  --light-silver: #F0F4FA;
  --black: #080C12;
  --white: #FFFFFF;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00AEEF 0%, #2272C8 50%, #8D25F4 100%);
  --grad-dark: linear-gradient(180deg, #080C12 0%, #1A2534 100%);
  --grad-card: linear-gradient(135deg, rgba(0,174,239,0.08) 0%, rgba(34,114,200,0.04) 100%);
  --grad-glow: radial-gradient(ellipse at center, rgba(0,174,239,0.2) 0%, transparent 70%);

  /* Typography */
  --font-headline: 'Exo', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1280px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Borders */
  --border-glow: 1px solid rgba(0,174,239,0.3);
  --border-subtle: 1px solid rgba(255,255,255,0.06);

  /* Shadows */
  --shadow-blue: 0 0 40px rgba(0,174,239,0.15), 0 0 80px rgba(0,174,239,0.05);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,174,239,0.08);
  --shadow-purple: 0 0 40px rgba(141,37,244,0.2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--light-silver);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--electric-blue), var(--neon-purple));
  border-radius: 3px;
}

/* Text selection */
::selection {
  background: rgba(0,174,239,0.3);
  color: var(--white);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
a:hover { color: var(--light-silver); }

strong { font-weight: 700; color: var(--white); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-pad {
  padding: var(--section-pad) 0;
}

.text-center { text-align: center; }
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,174,239,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,174,239,0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--electric-blue);
  border: 1px solid var(--electric-blue);
}
.btn-outline:hover {
  background: rgba(0,174,239,0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,174,239,0.2);
  color: var(--electric-blue);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--light-silver);
  border: var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--grad-card);
  border: var(--border-glow);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
  opacity: 0.6;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-blue);
  border-color: rgba(0,174,239,0.5);
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headline);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin-bottom: 1.25rem;
}

.section-label::before, .section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 30px;
  background: var(--electric-blue);
  opacity: 0.6;
}

/* ============================================================
   GLOW EFFECTS
   ============================================================ */
.glow-blue { box-shadow: 0 0 20px rgba(0,174,239,0.5); }
.glow-purple { box-shadow: 0 0 20px rgba(141,37,244,0.5); }

/* ============================================================
   FORMS
   ============================================================ */
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  color: var(--light-silver);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s var(--ease-smooth);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--electric-blue);
  background: rgba(0,174,239,0.06);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}

input::placeholder, textarea::placeholder {
  color: rgba(240,244,250,0.35);
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-headline);
  color: var(--steel-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,174,239,0.3); }
  50% { box-shadow: 0 0 40px rgba(0,174,239,0.6), 0 0 80px rgba(0,174,239,0.2); }
}

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

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

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

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

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

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

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================================
   RESPONSIVE GRID
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

/* ============================================================
   WP BLOCK EDITOR COMPATIBILITY
   ============================================================ */
.wp-block-image img { max-width: 100%; height: auto; border-radius: 8px; }
.wp-block-quote {
  border-left: 3px solid var(--electric-blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(240,244,250,0.7);
}

.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 2rem; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--electric-blue);
  color: var(--black);
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  z-index: 99999;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }
