/* ==========================================================================
   IT Student Web Portfolio - Nova Glass & Anorent Cyber-Ambient Edition
   Inspired by: Futuristic Ambient Glass, Chrome 3D Typography & Liquid Speculars
   Author: Chanutsanun Sifa (Bay)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@500;600;700;800;900&family=Prompt:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Nova Glass Core Color Palette */
  --bg-canvas: #f2f5fc;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Optical Frosted Glass Properties */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-hover: rgba(147, 197, 253, 0.8);
  --glass-specular: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 20px 45px -15px rgba(37, 99, 235, 0.08), 0 0 1px 1px rgba(255, 255, 255, 0.95);
  --glass-shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.16), 0 0 20px rgba(56, 189, 248, 0.2);

  /* Radiant Ambient Accents */
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-sky: #38bdf8;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
}

/* Base Document Reset & Ambient Canvas */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(at 12% 12%, rgba(224, 242, 254, 0.85) 0px, transparent 50%),
    radial-gradient(at 88% 8%, rgba(237, 233, 254, 0.8) 0px, transparent 50%),
    radial-gradient(at 50% 45%, rgba(240, 249, 255, 0.7) 0px, transparent 55%),
    radial-gradient(at 85% 85%, rgba(253, 242, 248, 0.75) 0px, transparent 50%),
    radial-gradient(at 10% 90%, rgba(224, 231, 255, 0.8) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   Ambient Luminous Glow Canvas
   ========================================================================== */

.ambient-canvas-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
  animation: ambient-drift 20s ease-in-out infinite alternate;
}

.ambient-orb-cyan {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(186, 230, 253, 0.1) 60%, transparent 75%);
  filter: blur(80px);
  top: -80px;
  left: -120px;
}

.ambient-orb-violet {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.24) 0%, rgba(221, 214, 254, 0.1) 60%, transparent 75%);
  filter: blur(90px);
  top: 10%;
  right: -180px;
  animation-duration: 25s;
  animation-delay: -6s;
}

.ambient-orb-blue {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(191, 219, 254, 0.08) 60%, transparent 75%);
  filter: blur(85px);
  bottom: 20%;
  left: -80px;
  animation-duration: 24s;
  animation-delay: -12s;
}

.ambient-orb-rose {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.18) 0%, rgba(251, 207, 232, 0.06) 60%, transparent 75%);
  filter: blur(85px);
  bottom: -80px;
  right: 8%;
  animation-duration: 28s;
  animation-delay: -18s;
}

/* Interactive Cursor Ambient Spotlight */
.ambient-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x, 50vw) var(--mouse-y, 35vh),
    rgba(56, 189, 248, 0.12),
    rgba(147, 197, 253, 0.05) 45%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
}

/* Cyber Subtle Perspective Grid */
.cyber-ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, black 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, black 45%, transparent 95%);
  z-index: 2;
}

@keyframes ambient-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -30px) scale(1.06); }
  100% { transform: translate(-25px, 35px) scale(0.96); }
}

/* ==========================================================================
   Liquid Chrome & Metallic 3D Typography (Nova Glass / Anorent Style)
   ========================================================================== */

.chrome-headline {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    #1e293b 30%,
    #475569 50%,
    #0f172a 68%,
    #2563eb 88%,
    #38bdf8 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(37, 99, 235, 0.15));
}

.chrome-text-specular {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 45%, #0284c7 75%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-display-title {
  font-family: var(--font-display);
}

/* ==========================================================================
   Nova Frosted Glass Cards (Optical Glass Crystal)
   ========================================================================== */

.cyber-card,
.nova-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle Glass Prismatic Specular Sheen */
.cyber-card::before,
.nova-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(167, 139, 250, 0.8), transparent);
  transform: translateX(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.cyber-card:hover,
.nova-glass-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.cyber-card:hover::before,
.nova-glass-card:hover::before {
  transform: translateX(100%);
}

/* ==========================================================================
   Pill Buttons & Interactive Elements (Nova Glass Style)
   ========================================================================== */

.pill-btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pill-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -3px rgba(37, 99, 235, 0.45);
}

.pill-btn-glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: #1e293b;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05), inset 0 1px 1px #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pill-btn-glass:hover {
  background: #ffffff;
  border-color: #93c5fd;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(59, 130, 246, 0.15);
}

/* Status Pill (e.g. • AVAILABLE FOR INTERNSHIP) */
.status-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.12);
}

/* Tech Stack Pill */
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-pill:hover {
  background: #ffffff;
  border-color: #93c5fd;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Horizontal Stats Bar (Nova Glass Metric Strip)
   ========================================================================== */

.stats-strip {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Interactive Terminal Window (Futuristic Obsidian Glass Shell)
   ========================================================================== */

.terminal-window {
  border-radius: 1.25rem;
  background: rgba(11, 17, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.4),
    0 0 1px 1px rgba(255, 255, 255, 0.2),
    0 0 25px rgba(56, 189, 248, 0.15);
  overflow: hidden;
}

.terminal-header {
  background: rgba(19, 28, 54, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pulse Glow for Live Status */
.status-pulse {
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Blinking Cursor */
.blinking-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #0284c7;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Git Commit Square Simulation */
.commit-cell {
  width: 12px;
  height: 12px;
  border-radius: 2.5px;
  transition: transform 0.18s ease;
}
.commit-cell:hover {
  transform: scale(1.4);
  z-index: 10;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4.5s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print/PDF Export friendly */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .ambient-canvas-wrapper,
  .no-print {
    display: none !important;
  }
}
