/* =============================================================
   workplay.us — Combined Stylesheet
   Sources: Layout.astro (global), contact.astro, index.astro
   + custom brand utilities
   ============================================================= */

/* --- 3D Cube Logo ------------------------------------------ */
.logo-cube-wrapper {
  perspective: 120px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-cube {
  width: 36px;
  height: 36px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(0deg);
  animation: logoCubeSpin 10s infinite linear;
}

@keyframes logoCubeSpin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

.logo-face {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}

.logo-front  { background: #5C27FE; transform: translateZ(18px); }
.logo-back   { background: #5C27FE; transform: rotateY(180deg) translateZ(18px); }
.logo-right  { background: #00D4FF; transform: rotateY( 90deg) translateZ(18px); color: #0A0E1A; }
.logo-left   { background: #2B8DFE; transform: rotateY(-90deg) translateZ(18px); }
.logo-top    { background: linear-gradient(135deg, #7B4FFF, #00D4FF); transform: rotateX(90deg) translateZ(18px); }
.logo-bottom { background: #0A0E1A; transform: rotateX(-90deg) translateZ(18px); }

.logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-dot-us {
  color: #FF5757;
}
/* ----------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F7F8FC;
  color: #1E293B;
  overflow-x: hidden;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #5C27FE 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #FF5757 0%, #FF9F57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Brand gradient bg */
.bg-brand-gradient {
  background: linear-gradient(135deg, #5C27FE 0%, #00D4FF 100%);
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(92, 39, 254, 0.1);
}

/* Section padding */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

/* Button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  background-color: #FF5757;
  color: white;
  border: 2px solid #FF5757;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: #e04444;
  border-color: #e04444;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 87, 87, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  background-color: transparent;
  color: #5C27FE;
  border: 2px solid #5C27FE;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: #5C27FE;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 39, 254, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Card hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(92, 39, 254, 0.2);
}

/* Animated gradient border */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #5C27FE, #00D4FF);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0A0E1A;
}
::-webkit-scrollbar-thumb {
  background: #5C27FE;
  border-radius: 3px;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #5C27FE;
  outline-offset: 2px;
}

/* Smooth scroll offset for sticky nav */
[id] {
  scroll-margin-top: 80px;
}

/* ============================================================
   From contact.astro <style> block
   ============================================================ */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================================
   From index.astro <style> block
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
