/* ==================== Base ==================== */
html {
  scroll-behavior: smooth;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0d14;
}
::-webkit-scrollbar-thumb {
  background: #262640;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a5c;
}

/* ==================== Gradient Text ==================== */
.gradient-text {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== Grid Background ==================== */
.grid-bg {
  background-image:
    linear-gradient(#262640 1px, transparent 1px),
    linear-gradient(90deg, #262640 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
}

/* ==================== Glow Effects ==================== */
.glow-border {
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15), inset 0 0 15px rgba(0, 212, 255, 0.15);
}

/* ==================== Pulse Glow CTA ==================== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.15); }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ==================== Animated Border ==================== */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-rotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

.animated-border {
  --angle: 0deg;
  border: 1px solid transparent;
  background:
    linear-gradient(#13131d, #13131d) padding-box,
    conic-gradient(from var(--angle), #00d4ff, #7c3aed, #00d4ff) border-box;
  animation: border-rotate 4s linear infinite;
}

/* ==================== Cursor Blink ==================== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor-blink::after {
  content: "▌";
  animation: blink 1s step-end infinite;
  color: #00d4ff;
}

/* ==================== Fade Up Animation ==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

/* ==================== Scroll Reveal ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Terminal Line Colors ==================== */
.term-input { color: #00d4ff; }
.term-system { color: #7c3aed; }
.term-success { color: #00ff88; }
.term-output { color: #9999b3; }
.term-result { color: #00ff88; font-weight: 600; }

/* ==================== Hide Scrollbar ==================== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ==================== Responsive Fixes ==================== */
@media (max-width: 640px) {
  .gradient-text {
    font-size: inherit;
  }
}
