/* ==========================================================================
   SMARAN 3D PORTFOLIO - CYBER-ARCHITECT DESIGN SYSTEM
   Full Stack Developer & Tools Technician
   Affiliations: Gcon Tech Solutions | Gtech Solutions | Tools Technician
   Contact: admin@smaran.xyz
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-deep: #050811;
  --bg-surface: rgba(11, 17, 33, 0.75);
  --bg-card: rgba(16, 24, 48, 0.65);
  --bg-card-hover: rgba(23, 34, 68, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  --border-active: rgba(0, 242, 254, 0.7);

  /* Brand Accents */
  --cyan: #00f2fe;
  --cyan-dim: rgba(0, 242, 254, 0.15);
  --cyan-glow: rgba(0, 242, 254, 0.4);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.4);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  --amber: #f59e0b;
  --rose: #f43f5e;

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Shadows & Glows */
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --glow-purple: 0 0 25px rgba(139, 92, 246, 0.35);
  --glow-box: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-deep);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0c142b 0%, #050811 75%);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* 3D Canvas Element */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
  outline: none;
}

/* Custom Interactive Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
  mix-blend-mode: screen;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan);
}

.custom-cursor.hovering {
  width: 54px;
  height: 54px;
  border-color: var(--purple);
  background-color: rgba(139, 92, 246, 0.12);
}

/* Ambient Scanlines & Vignette Overlay */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(5, 8, 17, 0.85) 100%);
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  opacity: 0.35;
}

/* Main Content Layer */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  pointer-events: none; /* Let 3D canvas receive pointer events through empty areas */
}

.interactive-panel,
.nav-container,
.hero-content,
.about-grid,
.exp-timeline,
.skills-container,
.projects-grid,
.terminal-window,
.contact-container,
footer,
.hud-bar,
.modal-content {
  pointer-events: auto; /* Re-enable pointer events for actual UI elements */
}

/* Layout Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   NAVIGATION BAR & HUD
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, border 0.3s;
}

.header-nav.scrolled {
  background: rgba(8, 13, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--emerald);
  letter-spacing: 1px;
}

/* Nav Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.35rem 0.5rem;
  backdrop-filter: blur(12px);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Quick HUD Controls */
.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hud-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan-glow);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.hud-btn.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.18);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--emerald); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Sound Wave Bars */
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bar {
  width: 2.5px;
  background: var(--cyan);
  border-radius: 1px;
}

.sound-bars.playing .sound-bar:nth-child(1) { animation: sound-bounce 0.8s infinite alternate 0.1s; }
.sound-bars.playing .sound-bar:nth-child(2) { animation: sound-bounce 0.6s infinite alternate 0.25s; }
.sound-bars.playing .sound-bar:nth-child(3) { animation: sound-bounce 0.9s infinite alternate 0.4s; }

@keyframes sound-bounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin-top: 2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.affiliations-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-typing-wrap {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--cyan);
  margin-bottom: 1.5rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.typed-cursor {
  display: inline-block;
  width: 8px;
  height: 1.25rem;
  background: var(--cyan);
  animation: blink 0.9s infinite;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 680px;
}

.hero-desc b {
  color: #fff;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  color: #050811;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.6);
  background: linear-gradient(135deg, #38bdf8, var(--cyan));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c084fc;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-email:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: #a855f7;
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Quick Metrics Row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  max-width: 680px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
}

.metric-num span {
  color: var(--cyan);
}

.metric-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Floating 3D Interaction Hint */
.hero-3d-hint {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hint-icon {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  animation: rotate-3d 5s linear infinite;
}

@keyframes rotate-3d {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-pretitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-pretitle::before {
  content: '//';
  color: var(--purple);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.75px;
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glow-box);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transition: 0.6s;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), var(--glow-cyan);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-bio-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-bio-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-bio-text b {
  color: var(--cyan);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.pillar-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.pillar-item:hover {
  border-color: var(--border-glow);
  background: rgba(0, 242, 254, 0.05);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dossier Card on the right */
.dossier-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.dossier-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

.dossier-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.dossier-key {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.dossier-val {
  color: #fff;
  font-weight: 500;
  text-align: right;
}

.dossier-val.highlight {
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ==========================================================================
   EXPERIENCE & AFFILIATIONS SECTION
   ========================================================================== */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.exp-card {
  position: relative;
  padding-left: 5rem;
}

.exp-node-icon {
  position: absolute;
  top: 2rem;
  left: 12px;
  width: 34px;
  height: 34px;
  background: var(--bg-deep);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
  z-index: 2;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.exp-card:hover .exp-node-icon {
  transform: scale(1.2);
  border-color: #fff;
  background: var(--cyan);
  color: #050811;
}

.exp-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.exp-card:hover .exp-card-inner {
  border-color: var(--border-glow);
  transform: translateX(8px);
  box-shadow: var(--glow-cyan);
}

.exp-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.exp-role-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.exp-badge-company {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-gcon {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan);
}

.badge-gtech {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
}

.badge-tools {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.exp-desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.exp-desc-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-desc-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: bold;
}

.exp-desc-list li b {
  color: #fff;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--cyan-glow);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cat-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.skill-name {
  color: var(--text-primary);
  font-weight: 500;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   FEATURED PROJECTS SECTION
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--glow-cyan);
}

.project-preview {
  height: 180px;
  background: linear-gradient(135deg, #091226, #142247);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-preview-art {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.08);
  border: 1.5px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-preview-art {
  transform: scale(1.15) rotate(5deg);
  border-color: var(--cyan);
}

.project-overlay-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-inspect {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}

.btn-inspect:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================================================
   SMARAN-OS INTERACTIVE CYBER TERMINAL
   ========================================================================== */
.terminal-section {
  padding: 5rem 0;
}

.terminal-window {
  background: #080d1a;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 14px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), var(--glow-cyan);
  overflow: hidden;
  font-family: var(--font-mono);
  backdrop-filter: blur(20px);
}

.terminal-header {
  background: #0d152a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-dot-red { background: #ef4444; }
.t-dot-yellow { background: #f59e0b; }
.t-dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.terminal-badge {
  font-size: 0.7rem;
  color: var(--cyan);
  border: 1px solid var(--border-glow);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.08);
}

.terminal-body {
  padding: 1.5rem;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.t-prompt {
  color: var(--cyan);
  font-weight: 600;
}

.t-cmd {
  color: #fff;
}

.t-success {
  color: var(--emerald);
}

.t-highlight {
  color: var(--cyan);
}

.t-purple {
  color: #c084fc;
}

.t-warn {
  color: var(--amber);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-prompt-label {
  color: var(--cyan);
  font-weight: 600;
  user-select: none;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  caret-color: var(--cyan);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-email-highlight {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.email-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.email-address-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.email-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-email-action {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-email-action.primary {
  background: var(--cyan);
  color: #050811;
  border: none;
}
.btn-email-action.primary:hover {
  background: #38bdf8;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn-email-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
}
.btn-email-action.secondary:hover {
  border-color: var(--cyan-glow);
  background: rgba(0, 242, 254, 0.1);
}

.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.meta-details {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(11, 17, 33, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Project Detail Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #090e1a;
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--glow-cyan);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--rose);
  background: rgba(244, 63, 94, 0.15);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 17, 0.9);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--cyan);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none; /* Mobile menu can toggle */
  }

  .exp-timeline::before {
    left: 15px;
  }

  .exp-card {
    padding-left: 3rem;
  }

  .exp-node-icon {
    left: 0;
    width: 28px;
    height: 28px;
  }

  .hero-3d-hint {
    display: none;
  }
}
