/* style.css - Premium Portfolio Design System */

/* 1. Global Custom Variables (Dark & Light Theme) */
:root {
  --font-main: 'Inter', 'Noto Sans KR', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Transition Constants */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Card/Glass Design */
  --glass-blur: blur(16px);
}

/* Dark Theme Variables (Default) */
.dark-theme {
  --bg-primary: #030712;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.55);
  
  --color-primary: #6366f1; /* Indigo */
  --color-primary-light: #818cf8;
  --color-secondary: #a855f7; /* Purple */
  --color-secondary-light: #c084fc;
  --color-accent: #f43f5e; /* Rose */
  
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #374151;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.2);
  
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  /* Decorative Glow Positions */
  --glow-1: rgba(99, 102, 241, 0.15);
  --glow-2: rgba(168, 85, 247, 0.12);
  --glow-3: rgba(244, 63, 94, 0.1);
  
  /* Terminal colors */
  --term-bg: #090d16;
  --term-text: #e2e8f0;
  --term-header: #141b2d;
  --term-prompt: #4ade80;
  --term-system: #60a5fa;
  --term-highlight: #f43f5e;
}

/* Light Theme Variables */
.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  
  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-secondary: #9333ea;
  --color-secondary-light: #a855f7;
  --color-accent: #e11d48;
  
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-dark: #cbd5e1;
  
  --border-light: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(79, 70, 229, 0.15);
  
  --shadow-main: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.05);
  
  /* Decorative Glow Positions */
  --glow-1: rgba(99, 102, 241, 0.06);
  --glow-2: rgba(168, 85, 247, 0.05);
  --glow-3: rgba(244, 63, 94, 0.04);
  
  /* Terminal colors */
  --term-bg: #1e293b;
  --term-text: #f8fafc;
  --term-header: #0f172a;
  --term-prompt: #34d399;
  --term-system: #60a5fa;
  --term-highlight: #fb7185;
}

/* 2. Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-text-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* 3. Utility Layout & Typo Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  margin-top: 1rem;
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight-text {
  color: var(--color-primary-light);
  font-weight: 700;
}

/* Background Decorative Glowing Spots */
.bg-glow {
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(140px);
  opacity: 0.8;
  transition: background 0.5s ease;
}
.bg-glow-1 {
  top: -15%;
  left: -10%;
  background: var(--glow-1);
}
.bg-glow-2 {
  bottom: 10%;
  right: -10%;
  background: var(--glow-2);
}
.bg-glow-3 {
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glow-3);
  width: 35vw;
  height: 35vw;
}

/* Glassmorphism Card base */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-main);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-main), var(--shadow-glow);
}

/* Mouse Hover Card Inner Glow effect */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(99, 102, 241, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}
.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-muted);
  transform: translateY(-3px);
}
.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* 4. Header & Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(3, 7, 18, 0.3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background-color: rgba(3, 7, 18, 0.7);
  padding: 0.2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-accent {
  color: var(--color-primary-light);
}

.nav-menu {
  display: flex;
  gap: 2.25rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary-light));
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Control Buttons (Theme/Mode switchers) */
.control-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-text);
  padding: 0.6rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  gap: 0.5rem;
}

.control-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

.control-btn .btn-text {
  font-weight: 600;
  font-size: 0.85rem;
  padding-right: 0.25rem;
}

/* 5. View Panels Transition Logic */
.main-wrapper {
  position: relative;
  min-height: 100vh;
}

.view-panel {
  display: none;
  opacity: 0;
  width: 100%;
}

.view-panel.active {
  display: block;
  animation: panelFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hide navigation menu links in terminal mode */
body.terminal-active .nav-menu {
  opacity: 0;
  pointer-events: none;
}

/* 6. Visual Mode CSS Layouts */

/* Hero Section */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 12rem);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-primary-light);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.typing-container {
  position: relative;
  display: inline-block;
}

.hero-title .cursor {
  font-weight: 300;
  color: var(--color-primary-light);
  animation: blink 0.8s infinite;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Profile Card (Hero Media) */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-main);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.profile-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-main), var(--shadow-glow);
}

.profile-avatar {
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.avatar-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.2));
}

.profile-details {
  z-index: 2;
}

.profile-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-details .role {
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.info-item .label {
  color: var(--color-text-muted);
}

.info-item .value {
  font-weight: 600;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.about-text-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.stats-counter-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

.values-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.value-icon {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.value-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.value-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category-card {
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  color: var(--color-primary-light);
}

.category-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

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

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

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  width: 0; /* Animated via JS or simple style load */
}

/* Projects Section */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* For project filters filter animation */
.project-card.hidden {
  display: none;
  opacity: 0;
}

.project-media {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.project-img-placeholder.p-grad-1 { background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%); }
.project-img-placeholder.p-grad-2 { background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%); }
.project-img-placeholder.p-grad-3 { background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%); }
.project-img-placeholder.p-grad-4 { background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%); }

.project-card:hover .project-img-placeholder {
  transform: scale(1.05);
}

.project-content {
  display: flex;
  flex-direction: column;
}

.project-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.project-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  min-height: 48px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags .tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.proj-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.link-code {
  color: var(--color-text);
}
.link-code:hover {
  color: var(--color-primary-light);
}

.link-live {
  color: var(--color-secondary-light);
}
.link-live:hover {
  color: var(--color-secondary);
}

/* Experience / Timeline Section */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 21px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--color-primary-light);
  box-shadow: 0 0 10px var(--color-primary-light);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
  transform: scale(1.1);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-content .subtitle {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content .desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-panel h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-info-panel p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

.contact-link-item svg {
  color: var(--color-primary-light);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-text);
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

/* Form Styles */
.contact-form-panel {
  position: relative;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-primary-light);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

/* Form Error Validation */
.form-group.error input, .form-group.error textarea {
  border-color: var(--color-accent);
  background: rgba(244, 63, 94, 0.03);
}

.error-msg {
  color: var(--color-accent);
  font-size: 0.775rem;
  font-weight: 600;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

/* Success overlay */
.form-success-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
  animation: fadeInUp 0.4s ease forwards;
}

.success-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 1rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.form-success-overlay h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-success-overlay p {
  color: var(--color-text-muted);
  max-width: 320px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-design {
  font-weight: 500;
  color: var(--color-text-dark);
}

/* 7. Terminal/CLI Mode CSS */
.terminal-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 3rem 0;
}

.terminal-container {
  width: 100%;
  max-width: 900px;
}

.terminal-window {
  background-color: var(--term-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  height: 550px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.terminal-header {
  background-color: var(--term-header);
  padding: 0.9rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.window-buttons {
  display: flex;
  gap: 0.5rem;
}

.win-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.win-btn-close { background-color: #ef4444; }
.win-btn-minimize { background-color: #eab308; }
.win-btn-expand { background-color: #22c55e; }

.terminal-title {
  color: var(--term-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.85;
}

.terminal-actions {
  text-align: right;
}

.badge-cli {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--term-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.terminal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--term-text);
  display: flex;
  flex-direction: column;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.output-row {
  line-height: 1.5;
  white-space: pre-wrap;
}

.output-row.empty {
  height: 0.5rem;
}

.term-system { color: var(--term-system); }
.term-highlight { color: var(--term-highlight); font-weight: bold; }
.term-prompt { color: var(--term-prompt); font-weight: bold; margin-right: 0.5rem; }
.term-cmd { color: #f1f5f9; font-weight: bold; }
.term-error { color: #f87171; }
.term-success { color: #34d399; }

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--term-text);
  caret-color: transparent; /* custom blinking caret */
  padding: 0;
}

/* Custom terminal caret */
.terminal-caret {
  position: absolute;
  left: 0;
  width: 8px;
  height: 1.15em;
  background-color: var(--term-prompt);
  animation: terminal-blink 1s step-end infinite;
  pointer-events: none;
}

@keyframes terminal-blink {
  from, to { background-color: transparent; }
  50% { background-color: var(--term-prompt); }
}

/* Global Toast Styling */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-text {
  font-weight: 600;
  font-size: 0.9rem;
}

/* 8. Responsive Design (Media Queries) */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
    text-align: center;
  }
  
  .badge-status {
    justify-content: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-media {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .timeline-container {
    padding-left: 1rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .nav-menu {
    display: none; /* simple mobile behavior: switch to pure vertical flow or hide link on desktop style */
  }
  
  .nav-actions .btn-text {
    display: none; /* hide label on narrow screen */
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  
  .timeline-line {
    left: 15px;
  }
  
  .timeline-dot {
    left: 6px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-date {
    position: static;
    margin-bottom: 0.25rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
