/* ============================================
   himuatri.xyz — Chandan Paper Design System
   ============================================ */

@import "tailwindcss";

/* ----- Base ----- */
* { scrollbar-width: thin; scrollbar-color: #d4c4ae #f0e6d8; }
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: #f0e6d8; }
*::-webkit-scrollbar-thumb { background: #d4c4ae; border-radius: 3px; }
::selection { background: #d97c2b; color: #faf4eb; }
html { scroll-behavior: smooth; }

/* ----- Gradient Text ----- */
.gradient-text {
  background: linear-gradient(135deg, #d97c2b, #c0681f 50%, #d97c2b);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ----- Glass Panels (Paper Theme) ----- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 124, 43, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.glass-btn {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 124, 43, 0.12);
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(217, 124, 43, 0.25);
  box-shadow: 0 2px 6px rgba(217, 124, 43, 0.08);
}
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 124, 43, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(217, 124, 43, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 124, 43, 0.06);
}

/* ----- Orbs (Subtle Warm Blobs) ----- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb-amber {
  width: 600px; height: 600px;
  background: #d97c2b;
  top: -250px; left: -200px;
  opacity: 0.08;
}
.orb-fuchsia {
  width: 500px; height: 500px;
  background: #e8a87c;
  bottom: -200px; right: -150px;
  opacity: 0.06;
}
.orb-violet {
  width: 400px; height: 400px;
  background: #e8d5c0;
  top: 45%; left: 55%;
  opacity: 0.05;
}

/* ----- Dot Pattern ----- */
.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217,124,43,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ----- Tags ----- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ----- Scroll Reveal Animations ----- */
.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-delay-1 { transition-delay: 0.1s; }
.section-delay-2 { transition-delay: 0.2s; }
.section-delay-3 { transition-delay: 0.3s; }

/* ----- Section Labels ----- */
.section-label {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d97c2b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ----- Boot Screen ----- */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #faf4eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
.boot-content {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #d97c2b;
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: left;
}
.boot-line {
  opacity: 0;
  animation: bootFadeIn 0.3s ease forwards;
}
.boot-line:nth-child(1) { animation-delay: 0.15s; }
.boot-line:nth-child(2) { animation-delay: 0.55s; }
.boot-line:nth-child(3) { animation-delay: 0.95s; }
@keyframes bootFadeIn {
  to { opacity: 1; }
}

/* ----- Typewriter ----- */
.typewriter-text {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #d97c2b;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ----- Sticky Nav ----- */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 244, 235, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 124, 43, 0.08);
  padding: 0.75rem 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.sticky-nav.visible {
  transform: translateY(0);
}
.sticky-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sticky-nav a {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #8b5e34;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sticky-nav a:hover {
  color: #d97c2b;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97c2b;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ----- Cursor Glow ----- */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,124,43,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ----- Timeline ----- */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(217, 124, 43, 0.15);
  transform: translateX(-50%);
}
.timeline-step {
  position: relative;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d97c2b;
  border: 2px solid #faf4eb;
  box-shadow: 0 0 12px rgba(217, 124, 43, 0.3);
}

/* ----- Service Cards ----- */
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 124, 43, 0.08);
  border: 1px solid rgba(217, 124, 43, 0.15);
  font-size: 1.1rem;
}

/* ----- Contact Card ----- */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #8b5e34;
  text-decoration: none;
  transition: all 0.2s ease;
}
.contact-link:hover {
  color: #d97c2b;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid rgba(217, 124, 43, 0.08);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #b3906a;
}

/* ----- Slides (for resume-slides.html, etc.) ----- */
.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
}
.slide-inner {
  max-width: 900px;
  width: 100%;
}
.slide-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 50;
}
.slide-nav a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(217,124,43,0.12);
  transition: all 0.3s ease;
}
.slide-nav a:hover,
.slide-nav a.active {
  background: #d97c2b;
}
.nav-arrows {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.75rem;
  z-index: 50;
}
.nav-arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(217,124,43,0.12);
  background: rgba(217,124,43,0.04);
  color: #8b5e34;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-arrows button:hover {
  background: rgba(217,124,43,0.08);
  border-color: rgba(217,124,43,0.2);
  color: #d97c2b;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .timeline::before { left: 1.5rem; }
  .boot-content { font-size: 0.75rem; padding: 0 1rem; }
  .sticky-nav { padding: 0.5rem 1rem; }
}
@media (max-width: 640px) {
  .slide { padding: 2rem 1rem; }
  .glass-card:hover { transform: none; }
}

/* ----- Print ----- */
@media print {
  body { background: #faf4eb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .glass, .glass-card { break-inside: avoid; }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .boot-screen { display: none; }
}
