/*
Theme Name: CloudStaffed
Theme URI: https://cloudstaffed.com
Author: CloudStaffed
Author URI: https://cloudstaffed.com
Description: The Neon Nexus — a high-end dark AI staffing agency theme with glassmorphism, electric accents, and immersive depth.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cloudstaffed
*/

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

body {
  background-color: #131313;
  color: #e5e2e1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Footer margin reset */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* ===================================================
   GLASS MORPHISM
=================================================== */
.glass-card {
  background: rgba(53, 53, 52, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(170, 136, 138, 0.15);
  border-radius: 1rem;
}

.glass-card-strong {
  background: rgba(42, 42, 42, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 80, 110, 0.12);
  border-radius: 1rem;
}

/* ===================================================
   GRADIENTS & GLOWS
=================================================== */
.cta-gradient {
  background: linear-gradient(135deg, #ffb2b8 0%, #ff506e 100%);
  color: #ffffff;
  border: none;
}

.cta-gradient:hover {
  opacity: 0.92;
  transform: scale(1.03);
}

.neon-glow {
  box-shadow: 0 0 40px rgba(255, 80, 110, 0.18);
}

.accent-glow {
  box-shadow: 0 0 30px rgba(0, 218, 243, 0.15);
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255, 80, 110, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-section > .wp-block-group {
  position: relative;
  z-index: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid rgba(170, 136, 138, 0.2);
  border-radius: 99px;
  font-size: 0.625rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00daf3;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #00daf3;
  border-radius: 50%;
  box-shadow: 0 0 10px #00daf3;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #00daf3; }
  50% { opacity: 0.5; box-shadow: 0 0 4px #00daf3; }
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 520px;
  border-radius: 2rem;
  overflow: visible;
}

.hero-visual-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 80, 110, 0.15) 0%, rgba(0, 218, 243, 0.06) 50%, transparent 70%),
              linear-gradient(135deg, #201f1f 0%, #1c1b1b 100%);
  border-radius: 2rem;
  border: 1px solid rgba(255, 80, 110, 0.12);
  position: relative;
  overflow: hidden;
  transform: rotate(3deg);
  transition: transform 0.7s ease;
}

.hero-visual-inner:hover {
  transform: rotate(0deg);
}

.hero-visual-inner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 80, 110, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual-inner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0, 218, 243, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-visual-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 80, 110, 0.3) 0%, rgba(255, 80, 110, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  animation: orb-pulse 4s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-stat-card {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(42, 42, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
}

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

.hero-stat-icon {
  width: 44px; height: 44px;
  background: #ff506e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e3bdbf;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

/* ===================================================
   SECTION LABELS
=================================================== */
.section-label-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #ff506e;
  margin-bottom: 1rem;
}

.section-label-accent {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #00daf3;
  margin-bottom: 1rem;
}

/* ===================================================
   WHO WE ARE — BENTO GRID
=================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-main {
  grid-column: span 8;
  background: rgba(53, 53, 52, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(170, 136, 138, 0.12);
  border-radius: 1.25rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.bento-side {
  grid-column: span 4;
  border-radius: 1.25rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bento-velocity {
  background: rgba(255, 80, 110, 0.08);
  border: 1px solid rgba(255, 80, 110, 0.18);
}

.bento-ethic {
  background: rgba(53, 53, 52, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(170, 136, 138, 0.12);
}

.bento-image-card {
  grid-column: span 8;
  border-radius: 1.25rem;
  min-height: 240px;
  background: linear-gradient(135deg, #201f1f 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 80, 110, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.bento-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 80, 110, 0.12) 0%, rgba(0, 218, 243, 0.06) 100%);
}

.bento-image-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(19, 19, 19, 0.9) 0%, transparent 100%);
}

.bento-image-text {
  position: relative;
  z-index: 1;
}

.bento-icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #ff506e;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 30px rgba(255, 80, 110, 0.3);
  font-size: 1.75rem;
}

.bento-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.bento-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.bento-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e3bdbf;
  margin-top: 0.25rem;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00daf3;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: gap 0.2s ease;
}

.learn-more-link:hover {
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-main, .bento-side, .bento-image-card {
    grid-column: span 1;
  }
}

/* ===================================================
   SERVICES GRID
=================================================== */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: flex-start;
}

.service-card {
  background: rgba(53, 53, 52, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(170, 136, 138, 0.12);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: background 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.service-card:hover {
  background: rgba(42, 42, 42, 0.8);
  border-color: rgba(255, 80, 110, 0.3);
}

.service-icon-wrap {
  width: 56px; height: 56px;
  background: #201f1f;
  border: 1px solid rgba(170, 136, 138, 0.15);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
  transition: border-color 0.3s ease;
  font-size: 1.5rem;
}

.service-card:hover .service-icon-wrap {
  border-color: rgba(255, 80, 110, 0.4);
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  color: #e3bdbf;
  padding: 0.4rem 0;
}

.service-feature-list li::before {
  content: '';
  width: 16px; height: 16px;
  background: #00daf3;
  border-radius: 50%;
  flex-shrink: 0;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
}

/* ===================================================
   PROCESS / HOW IT WORKS
=================================================== */
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 80, 110, 0.3);
  background: rgba(255, 80, 110, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff506e;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ===================================================
   STATS BAR
=================================================== */
.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-unit {
  color: #ff506e;
}

.stat-desc {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e3bdbf;
  margin-top: 0.5rem;
}

/* ===================================================
   TESTIMONIALS
=================================================== */
.testimonial-card {
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(170, 136, 138, 0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
}

.testimonial-quote {
  font-size: 2rem;
  color: #ff506e;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.testimonial-author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #e5e2e1;
  font-size: 0.875rem;
}

.testimonial-author-role {
  font-size: 0.7rem;
  color: #e3bdbf;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.125rem;
}

/* ===================================================
   CTA SECTION
=================================================== */
.cta-card {
  background: #201f1f;
  border-radius: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 80, 110, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 218, 243, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===================================================
   BUTTON OVERRIDES
=================================================== */
.wp-block-button .wp-block-button__link.cta-btn {
  background: linear-gradient(135deg, #ffb2b8 0%, #ff506e 100%);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.wp-block-button .wp-block-button__link.cta-btn:hover {
  transform: scale(1.04);
  opacity: 0.94;
}

.wp-block-button .wp-block-button__link.ghost-btn {
  background: rgba(42, 42, 42, 0.6);
  color: #e5e2e1;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border: 1px solid rgba(170, 136, 138, 0.25);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}

.wp-block-button .wp-block-button__link.ghost-btn:hover {
  background: rgba(53, 53, 52, 0.9);
}

/* ===================================================
   NAVIGATION
=================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(19, 19, 19, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 80, 110, 0.06);
}

.wp-block-site-title a {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.wp-block-navigation a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #9ca3af !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-block-navigation a:hover {
  color: #ffffff !important;
}

/* ===================================================
   SCROLL ANIMATIONS
=================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

/* ===================================================
   REDUCED MOTION
=================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
  }
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }
}
