/* Custom Vexia styles — complementary to Tailwind */
:root {
  --bg-night: #0A0A0A;
  --bg-day: #FAFAF5;
  --text-night: #F5F5F0;
  --text-day: #1A1C19;
  --accent-green: #2E7D32;
  --accent-purple: #7C4DFF;
  --accent-pink: #E91E63;
  --accent-gold: #C5A028;
  --accent-blue: #00F0FF;
  --accent-teal: #44D7A8;
  --brand-accent: var(--accent-green);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--bg-day);
  color: var(--text-day);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(46, 125, 50, 0.15); color: var(--text-day); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

/* Sidebar */
#sidebar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#sidebar.collapsed { width: 6rem; }
#sidebar.collapsed .sidebar-label { display: none; }
#sidebar.collapsed #sidebar-logo-text { display: none; }
#sidebar.collapsed .sidebar-logo-link { justify-content: center; padding-left: 0; padding-right: 0; }
#sidebar.collapsed .sidebar-nav { padding-left: 0.5rem; padding-right: 0.5rem; }
#sidebar.collapsed .sidebar-nav .nav-item { justify-content: center; padding: 0.625rem; }
#sidebar.collapsed .sidebar-section { display: none; }
#sidebar.collapsed .collapse-label { display: none; }
#sidebar.collapsed.hover-expand { width: 15rem; }
#sidebar.collapsed.hover-expand .sidebar-label { display: flex; }
#sidebar.collapsed.hover-expand #sidebar-logo-text { display: flex; }
#sidebar.collapsed.hover-expand .sidebar-logo-link { justify-content: flex-start; padding-left: 1.5rem; padding-right: 1.5rem; }
#sidebar.collapsed.hover-expand .sidebar-nav { padding-left: 0.75rem; padding-right: 0.75rem; }
#sidebar.collapsed.hover-expand .sidebar-nav .nav-item { justify-content: flex-start; padding: 0.625rem 0.75rem; }
#sidebar.collapsed.hover-expand .sidebar-section { display: flex; }
#sidebar.collapsed.hover-expand .collapse-label { display: inline; }

#main-content {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
  #main-content.sidebar-collapsed { margin-left: 6rem; }
  #main-content.hover-expand { margin-left: 15rem; }
}

/* Theme transitions */
.sidebar-transition, .sidebar *, .sidebar a, .sidebar button {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Text utilities */
.text-vexia { color: var(--accent-green); }
.text-kora { color: var(--accent-purple); }
.text-relth { color: var(--accent-pink); }
.text-vantis { color: var(--accent-gold); }
.text-comms { color: var(--accent-blue); }
.text-olios { color: var(--accent-teal); }

/* Dark mode */
.dark {
  background-color: var(--bg-night);
}
.dark body {
  background-color: var(--bg-night);
  color: var(--text-night);
}
.dark ::selection { background: rgba(46, 240, 255, 0.2); color: var(--text-night); }

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

/* Shutter Reveal (page load) */
@keyframes shutterReveal {
  from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); opacity: 0; transform: translateY(20px); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; transform: translateY(0); }
}
.shutter-reveal {
  animation: shutterReveal 0.8s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0, 0, 1), transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(1deg); }
  66% { transform: translateY(3px) rotate(-0.5deg); }
}
.floating-shape {
  position: absolute;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient Shift */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

/* Typing Cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typing-cursor {
  display: inline-block;
  font-weight: 100;
  color: var(--accent-green);
  margin-left: 1px;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.dark .card-hover:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Brand border glow on hover */
.brand-glow {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.brand-glow:hover {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.06);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.2, 0, 0, 1), transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.stagger-children.stagger-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.stagger-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.stagger-visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.stagger-visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.stagger-visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.stagger-visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.stagger-visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.stagger-visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.stagger-visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.stagger-visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger-children.stagger-visible > *:nth-child(10) { transition-delay: 0.72s; }

/* Particle Canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Input focus glow */
.input-glow:focus {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.dark .input-glow:focus {
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Hero section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

/* Mobile typography */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero-section h1 { font-size: 2rem !important; }
  .section-spacing { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .shutter-reveal { padding-top: 0.5rem !important; }
  .hero-section .hero-content p.text-lg { font-size: 0.95rem !important; }
}

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