/* ==========================================================================
   TRISA BARAI - PERSONAL PORTFOLIO STYLESHEET
   Color Theme: DARK NAVY BLUE (#071a33 / #0a192f)
   Cards: Dark Blue (#051020 / #030a14) with subtle blue glow borders
   Accents: Electric Blue (#2563eb / #3b82f6 / #00d2ff)
   Text: Pure White (#ffffff) & Light Gray (#e2e8f0)
   4 Premium Features:
     1. AI Portfolio Assistant ("Ask Trisa AI")
     2. Developer Terminal
     3. Upgraded Fake Review Detection Demo (Sequential 6-Stage NLP Pipeline)
     4. My Learning Journey Timeline
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DARK NAVY BLUE THEME DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root,
[data-theme="light"] {
  --theme-name: 'light';

  /* Dark Navy Blue Backgrounds */
  --bg-primary: #0a192f;            /* Main Page Background: DARK NAVY BLUE */
  --bg-secondary: #07162c;          /* Alternating Sections: NAVY BLUE */
  --bg-card: #051020;               /* Cards: DARKER BLUE */
  --bg-card-hover: #081a33;         /* Card Hover Surface */
  --bg-input: #030a14;              /* Deep Navy Input Background */
  --bg-nav: rgba(10, 25, 47, 0.94); /* Fixed Navbar Background */
  --bg-mobile-drawer: #07162c;
  --bg-footer: #030810;             /* Deepest Blue Footer */

  /* Electric & Royal Blue Accents & Borders */
  --blue-primary: #2563eb;          /* Electric Royal Blue */
  --blue-hover: #1d4ed8;            /* Deep Blue Hover */
  --blue-light: #3b82f6;            /* Sky Blue Highlight */
  --blue-soft: #60a5fa;             /* Soft Blue for Accents/Icons */
  --blue-electric: #00d2ff;         /* Cyan Electric Accent */
  --blue-badge-bg: rgba(37, 99, 235, 0.18);
  --blue-glow: rgba(37, 99, 235, 0.5);
  --border-blue: rgba(59, 130, 246, 0.25);
  --border-blue-hover: rgba(96, 165, 250, 0.7);

  /* Typography: WHITE & BLACK ONLY */
  --text-white: #ffffff;            /* Pure White Headings & Primary Text */
  --text-light: #ffffff;            /* Pure White Paragraphs & Descriptions */
  --text-muted: #e2e8f0;            /* Soft White for Subtitles & Notes */
  --text-dark: #000000;             /* Pure Black for Contrast on Light Surfaces */
  --text-footer: #cbd5e1;           /* Footer Text */
  --text-footer-white: #ffffff;

  /* Shadows */
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.75), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
  --shadow-glow: 0 0 26px rgba(37, 99, 235, 0.35);

  /* Ambient Background Glow */
  --ambient-glow: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(10, 25, 47, 0) 70%);
}

[data-theme="dark"] {
  --theme-name: 'dark';

  /* Deepest Midnight Navy Backgrounds */
  --bg-primary: #050d1a;            /* Deepest Midnight Navy */
  --bg-secondary: #030812;          /* Deepest Navy Section */
  --bg-card: #02060d;               /* Pitch Dark Blue Card Surface */
  --bg-card-hover: #050f22;
  --bg-input: #010307;
  --bg-nav: rgba(5, 13, 26, 0.95);
  --bg-mobile-drawer: #030812;
  --bg-footer: #010205;

  /* Blue Accents & Borders */
  --blue-primary: #3b82f6;
  --blue-hover: #2563eb;
  --blue-light: #60a5fa;
  --blue-soft: #93c5fd;
  --blue-electric: #38bdf8;
  --blue-badge-bg: rgba(59, 130, 246, 0.2);
  --blue-glow: rgba(59, 130, 246, 0.55);
  --border-blue: rgba(59, 130, 246, 0.3);
  --border-blue-hover: rgba(147, 197, 253, 0.8);

  /* Typography: WHITE & BLACK ONLY */
  --text-white: #ffffff;
  --text-light: #ffffff;
  --text-muted: #e2e8f0;
  --text-dark: #000000;
  --text-footer: #cbd5e1;
  --text-footer-white: #ffffff;

  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.9);
  --shadow-blue: 0 10px 25px -5px rgba(59, 130, 246, 0.55);
  --shadow-glow: 0 0 28px rgba(59, 130, 246, 0.4);

  /* Ambient Glow */
  --ambient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(5, 13, 26, 0) 70%);
}

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --theme-transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background-color: var(--bg-primary);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  transition: var(--theme-transition);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: var(--theme-transition);
}

/* Ambient Subtle Background Glow */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 20%;
  width: 600px;
  height: 600px;
  background: var(--ambient-glow);
  z-index: -1;
  pointer-events: none;
  transition: var(--theme-transition);
}

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

::selection {
  background-color: var(--blue-primary);
  color: #ffffff;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-soft);
}

/* --------------------------------------------------------------------------
   3. PREMIUM FULLSCREEN WELCOME INTRO SCREEN (#071a33 / #0a192f)
   -------------------------------------------------------------------------- */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #071a2f;
  background: radial-gradient(circle at center, #0a2042 0%, #071a2f 60%, #030d1a 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s ease;
  overflow: hidden;
  pointer-events: all;
}

.intro-screen.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

/* Background Particle Canvas */
.intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Subtle Faint Digital Grid Pattern */
.intro-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

/* Soft Ambient Glowing Aura */
.intro-backdrop-glow {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(7, 26, 51, 0) 70%);
  animation: introSoftPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes introSoftPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 90%;
}

.intro-logo-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
  margin-bottom: 16px;
  opacity: 0;
  transform: scale(0.5);
  animation: introLogoPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.intro-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes introLogoPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Step 1: Welcome Tag with Subtle Electric Blue Glow */
.intro-welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 5px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-welcome-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-welcome-text {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* Step 2: "Welcome to Trisa Barai's Portfolio" (Letter-by-Letter Title) */
.intro-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  min-height: 1.3em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.intro-phrase-name {
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.85), 0 0 45px rgba(37, 99, 235, 0.6);
  font-weight: 800;
}

.intro-cursor {
  color: #38bdf8;
  font-weight: 300;
  animation: blinkCaret 0.8s infinite;
  margin-left: 2px;
}

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

/* Step 3: Subtitle: "Computer Science Student • Software Developer • AI Enthusiast" */
.intro-subtext {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: #93c5fd;
  letter-spacing: 0.8px;
  font-weight: 500;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-subtext.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-subtext span {
  display: inline-block;
  white-space: nowrap;
}

/* Step 4: Thin Electric-Blue Progress Line & Percentage */
.intro-progress-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 260px;
  max-width: 80vw;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-top: 6px;
}

.intro-progress-wrapper.visible {
  opacity: 1;
}

.intro-progress-container {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.intro-progress-line {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #60a5fa);
  box-shadow: 0 0 14px #38bdf8;
  border-radius: var(--radius-full);
  transition: width 0.04s linear;
}

.intro-percent-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Reduced Motion Accessibility Support */
@media (prefers-reduced-motion: reduce) {
  .intro-screen {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .intro-screen.hide {
    opacity: 0 !important;
    transform: none !important;
  }
  .intro-backdrop-glow,
  .intro-logo-badge,
  .intro-welcome-tag,
  .intro-title,
  .intro-progress-line,
  .intro-subtext {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .intro-progress-line {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   4. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* --------------------------------------------------------------------------
   5. LAYOUT CONTAINERS & SECTION UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section,
section[id] {
  padding: 84px 0;
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.hero-section,
.skills-section,
.contact-section {
  background-color: var(--bg-primary);
  transition: var(--theme-transition);
}

.about-section,
.project-section {
  background-color: var(--bg-secondary);
  transition: var(--theme-transition);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-white);
  margin-bottom: 8px;
  background: var(--blue-badge-bg);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-blue);
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  transition: var(--theme-transition);
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 14px;
}

.title-underline {
  width: 50px;
  height: 4px;
  background: var(--blue-primary);
  border-radius: var(--radius-full);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. BUTTONS & UI ACTIONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
  user-select: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-blue);
  border: 1px solid var(--blue-light);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.6);
}

.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid #60a5fa;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.6), 0 0 15px rgba(59, 130, 246, 0.4);
  font-weight: 800;
}

.btn-glow:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.8), 0 0 25px rgba(96, 165, 250, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1.5px solid var(--border-blue);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--blue-primary);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. NAVBAR & MOBILE DRAWER
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-blue);
  z-index: 1000;
  transition: var(--theme-transition);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-white);
  transition: var(--theme-transition);
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  letter-spacing: -0.3px;
  color: var(--text-white);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.08);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  background: var(--blue-primary);
}

.mobile-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.hamburger-btn {
  display: none;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 1010;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-white);
  border-radius: 4px;
  transition: var(--transition);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-mobile-drawer);
  border-left: 1px solid var(--border-blue);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-blue);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-white);
}

.drawer-close-btn {
  background: var(--bg-card);
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border-blue);
  transition: var(--transition);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition);
}

.mobile-nav-link i {
  color: var(--blue-soft);
  width: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--blue-badge-bg);
  color: #ffffff;
  border-left: 3px solid var(--blue-primary);
}

.mobile-drawer-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-blue);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drawer-contact-item i {
  color: var(--blue-soft);
}

.drawer-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.drawer-socials a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   8. 1. HOME SECTION (HERO)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 40px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--blue-light);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.8);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.8); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: var(--theme-transition);
}

.highlight-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--blue-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role-wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
}

.hero-role {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-typing-prefix {
  color: var(--text-muted);
  font-weight: 500;
}

.hero-typing-text {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.hero-typing-cursor {
  color: #38bdf8;
  animation: blinkCursor 0.8s infinite;
}

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

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 530px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-contact-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-blue);
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.strip-item i {
  color: var(--blue-soft);
}

.strip-item:hover {
  color: #ffffff;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.social-icon-link {
  width: 34px;
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-icon-link:hover {
  background: var(--blue-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-card.hero-card-circle {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transition: var(--transition);
}

.hero-card.hero-card-circle:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue-hover);
}

.hero-avatar-box {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(5, 16, 32, 0.9) 80%);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-blue);
  padding: 4px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-floating-tag {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  font-size: 0.8rem;
  color: var(--text-white);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.hero-floating-tag i {
  font-size: 1.1rem;
  color: var(--blue-soft);
}

.hero-floating-tag div {
  display: flex;
  flex-direction: column;
}

.hero-floating-tag strong {
  font-size: 0.82rem;
  color: var(--text-white);
}

.hero-floating-tag span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tag-left {
  bottom: -15px;
  left: -20px;
  animation-delay: 0s;
}

.tag-right {
  top: -15px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   9. 2. ABOUT SECTION & FEATURE 4: MY LEARNING JOURNEY
   -------------------------------------------------------------------------- */
.about-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 38px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: var(--transition), var(--theme-transition);
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

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

.education-block {
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.education-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.education-card-inner {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.education-icon-box {
  width: 48px;
  height: 48px;
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-soft);
  flex-shrink: 0;
}

.education-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.education-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.education-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.education-timeline-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--blue-badge-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.education-institution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.education-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
}

.about-skills-highlight {
  margin-bottom: 24px;
}

.about-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-mini-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.mini-skill-card {
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.mini-skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--blue-soft);
  transform: translateY(-2px);
}

.mini-skill-icon {
  font-size: 1.3rem;
  color: var(--blue-soft);
}

.mini-skill-info {
  display: flex;
  flex-direction: column;
}

.mini-skill-info strong {
  font-size: 0.9rem;
  color: #ffffff;
}

.mini-skill-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.interests-container {
  padding-top: 24px;
  border-top: 1px solid var(--border-blue);
}

.interests-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-pill {
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.interest-pill:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   FEATURE 4: MY LEARNING JOURNEY (TIMELINE)
   ========================================================================== */
.learning-journey-wrapper {
  margin-top: 64px;
}

.inner-header {
  margin-bottom: 36px;
}

.journey-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Central glowing line */
.journey-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, #2563eb, #38bdf8, #2563eb);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  border-radius: 2px;
}

.journey-item {
  position: relative;
  margin-bottom: 32px;
  width: 50%;
  display: flex;
}

.journey-item:nth-child(odd) {
  left: 0;
  padding-right: 36px;
  justify-content: flex-end;
}

.journey-item:nth-child(even) {
  left: 50%;
  padding-left: 36px;
  justify-content: flex-start;
}

/* Node Icon on central line */
.journey-node {
  position: absolute;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #030a14;
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1rem;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
  z-index: 5;
  transition: var(--transition);
}

.journey-item:nth-child(odd) .journey-node {
  right: -19px;
}

.journey-item:nth-child(even) .journey-node {
  left: -19px;
}

.journey-item:hover .journey-node {
  background: var(--blue-primary);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(56, 189, 248, 1);
}

.journey-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.journey-card:hover {
  border-color: var(--blue-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.journey-card.highlight-journey {
  border-color: rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(5, 16, 32, 0.95));
}

.journey-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-soft);
  background: var(--blue-badge-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  border: 1px solid var(--border-blue);
}

.journey-step-badge.highlight {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.journey-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.journey-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. 3. SKILLS SECTION & FEATURE 2: DEVELOPER TERMINAL
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.skill-card.modern-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.skill-card.modern-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--blue-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.skill-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue-soft);
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  background: var(--blue-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.skill-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.skill-badge-pill.highlight {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.skill-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.skill-subdesc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.skill-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.supporting-skills-wrap {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.supporting-skills-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.supporting-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modern-skill-pill {
  background: #030a14;
  border: 1px solid var(--border-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.modern-skill-pill:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   FEATURE 2: DEVELOPER TERMINAL
   ========================================================================== */
.terminal-wrapper {
  margin-top: 56px;
}

.terminal-window {
  background: #020712;
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), 0 0 25px rgba(37, 99, 235, 0.25);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #051020;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-live-badge {
  font-size: 0.72rem;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-live-badge i {
  font-size: 0.55rem;
  animation: pulseDot 2s infinite;
}

.terminal-body {
  padding: 22px;
  color: #f0f7ff;
  font-size: 0.9rem;
  line-height: 1.7;
  min-height: 260px;
}

.terminal-entry {
  margin-bottom: 16px;
}

.terminal-prompt-line {
  margin-bottom: 4px;
}

.terminal-user {
  color: #38bdf8;
  font-weight: 700;
}

.terminal-path {
  color: #facc15;
}

.terminal-cmd {
  color: #ffffff;
  font-weight: 700;
}

.terminal-response {
  padding-left: 18px;
  color: #e2e8f0;
}

.term-role {
  color: #ffffff;
  font-weight: 700;
}

.term-highlight {
  color: #38bdf8;
  font-weight: 700;
}

.term-skills-response {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.term-tag {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.term-star {
  color: #facc15;
}

.term-proj-name {
  color: #38bdf8;
  font-weight: 700;
}

.term-muted {
  color: #94a3b8;
}

.term-status-response {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-key {
  color: #94a3b8;
}

.status-val.online {
  color: #34d399;
  font-weight: 700;
}

.status-val.available {
  color: #38bdf8;
  font-weight: 700;
}

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

.terminal-cli-input {
  background: transparent;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  border: none;
}

.terminal-quick-buttons {
  background: #030a14;
  padding: 10px 16px;
  border-top: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-btn-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.term-btn {
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.term-btn:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: #38bdf8;
}

/* --------------------------------------------------------------------------
   11. 4. PROJECT SECTION & FEATURE 3: UPGRADED FAKE REVIEW DETECTION DEMO
   -------------------------------------------------------------------------- */
.main-project-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 4vw, 36px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transition: var(--transition);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.project-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 4vw, 36px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.project-title {
  font-size: clamp(1.2rem, 4.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.project-desc {
  font-size: clamp(0.86rem, 2.2vw, 1rem);
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
}

/* 6-STAGE VISUAL NLP PIPELINE */
.project-pipeline-card {
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pipeline-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipeline-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nlp-stages-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.nlp-stage-box {
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  flex: 1;
  min-width: 68px;
  transition: var(--transition);
}

.nlp-stage-box.active {
  border-color: #38bdf8;
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.nlp-stage-box.completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.stage-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--blue-soft);
  font-family: var(--font-mono);
}

.stage-icon {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 4px 0;
}

.stage-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.25;
}

.nlp-stage-arrow {
  color: var(--border-blue);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.project-features {
  margin-bottom: 22px;
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 18px;
}

.features-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features-list li {
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.features-list li i {
  color: var(--blue-soft);
  margin-top: 4px;
  font-size: 0.8rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tech-tag {
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* UPGRADED INTERACTIVE REVIEW CLASSIFIER CARD */
.project-interactive-box {
  background: #030a14;
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.tester-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tester-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tester-indicator {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.tester-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.tester-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sample-actions {
  display: flex;
  gap: 8px;
}

.sample-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  color: #ffffff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.sample-btn:hover {
  background: var(--blue-primary);
  border-color: var(--blue-light);
  color: #ffffff;
}

.tester-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  transition: var(--transition);
}

.tester-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.tester-btn-row {
  display: flex;
  gap: 8px;
}

/* Sequential Analyzing State */
.tester-analyzing-box {
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.analyzing-spinner-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analyzing-spin-icon {
  font-size: 1.4rem;
  color: #38bdf8;
  animation: spinSlow 2s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.analyzing-details {
  flex-grow: 1;
}

.analyzing-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.analyzing-subtitle {
  font-size: 0.78rem;
  color: #93c5fd;
  margin-bottom: 6px;
}

.analyzing-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.analyzing-bar {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 0 8px #38bdf8;
  border-radius: 2px;
  animation: analyzeBarAnim 1.4s ease-in-out infinite;
}

@keyframes analyzeBarAnim {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(250%); width: 30%; }
}

/* Upgraded Result Card */
.tester-result-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 6px;
  animation: fadeIn 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-top-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.result-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.verdict-pill.genuine {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1.5px solid #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.verdict-pill.fake {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.confidence-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.probability-score {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
}

/* Confidence Progress Bar */
.confidence-bar-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.confidence-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.confidence-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 0 10px #38bdf8;
  border-radius: 4px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.confidence-bar-fill.fake-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 10px #ef4444;
}

.detected-signals-card {
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.signals-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-reasons {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-reasons ul {
  padding-left: 16px;
  list-style: disc;
}

.demo-disclaimer-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-blue);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  color: #93c5fd;
  line-height: 1.4;
}

.demo-disclaimer-pill i {
  color: #38bdf8;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   12. 5. CONTACT SECTION ("Let's Work Together")
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-blue-hover);
  transform: translateY(-3px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-badge-bg);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue-soft);
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow: hidden;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn,
.phone-call-btn {
  background: var(--blue-badge-bg);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-blue);
}

.copy-btn:hover,
.phone-call-btn:hover {
  background: var(--blue-primary);
  color: #ffffff;
}

.copy-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  white-space: nowrap;
  pointer-events: none;
}

.copy-tooltip.show {
  opacity: 1;
  visibility: visible;
  top: -36px;
}

.form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.required {
  color: var(--blue-soft);
}

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

.form-icon {
  position: absolute;
  left: 14px;
  color: var(--blue-soft);
  font-size: 0.95rem;
  pointer-events: none;
}

.textarea-wrap .form-icon {
  top: 14px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 40px;
  color: #ffffff;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.form-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.form-input.invalid {
  border-color: #ef4444;
}

.error-msg {
  font-size: 0.75rem;
  color: #fca5a5;
  display: none;
  margin-top: 2px;
}

.error-msg.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-blue);
  padding: 48px 0 24px;
  color: var(--text-footer);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-footer-white);
  text-align: left;
}

.footer-role {
  font-size: 0.8rem;
  color: var(--text-footer);
  text-align: left;
}

.footer-contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-footer);
}

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

.footer-link i {
  color: var(--blue-soft);
}

.footer-divider {
  color: var(--border-blue);
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  width: 100%;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-footer);
}

/* ==========================================================================
   FEATURE 1: AI PORTFOLIO ASSISTANT — "Ask Trisa AI"
   ========================================================================== */
.ai-assistant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1020;
}

/* Floating AI Chat Trigger Button */
.ai-chat-btn {
  background: linear-gradient(135deg, #2563eb, #071a33);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.5);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.ai-chat-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.8);
  border-color: #60a5fa;
}

.ai-btn-icon {
  font-size: 1.2rem;
  color: #38bdf8;
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* Chat Panel */
.ai-chat-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #051020;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(37, 99, 235, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.ai-chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ai-chat-header {
  background: #07162c;
  border-bottom: 1px solid var(--border-blue);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-avatar-mini {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--blue-badge-bg);
  border: 1px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1rem;
}

.ai-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #07162c;
  border-radius: 50%;
}

.ai-chat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.ai-chat-subtitle {
  font-size: 0.72rem;
  color: #93c5fd;
}

.ai-chat-close-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.ai-chat-close-btn:hover {
  background: var(--blue-primary);
}

/* Chat Messages */
.ai-chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-badge-bg);
  border: 1px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ai-msg-bubble {
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  border-top-left-radius: 2px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #f0f7ff;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ai-msg-user .ai-msg-bubble {
  background: var(--blue-primary);
  border-color: #38bdf8;
  border-top-left-radius: 12px;
  border-top-right-radius: 2px;
  color: #ffffff;
}

/* Typing Indicator Animation */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Quick Question Chips */
.ai-quick-questions {
  background: #030a14;
  padding: 10px 14px;
  border-top: 1px solid var(--border-blue);
}

.ai-quick-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
  display: block;
  margin-bottom: 6px;
}

.ai-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ai-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.ai-chip:hover {
  background: var(--blue-primary);
  border-color: #38bdf8;
}

/* Chat Input Form */
.ai-chat-input-form {
  background: #07162c;
  border-top: 1px solid var(--border-blue);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-input {
  flex-grow: 1;
  background: #030a14;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  color: #ffffff;
  font-size: 0.85rem;
}

.ai-chat-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.ai-chat-send-btn {
  width: 34px;
  height: 34px;
  background: var(--blue-primary);
  border: 1px solid #38bdf8;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.ai-chat-send-btn:hover {
  background: var(--blue-hover);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   14. UTILITIES: SCROLL TO TOP & TOAST ALERT
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  background: var(--blue-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  border: 1px solid var(--blue-light);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-4px);
}

.toast-box {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  max-width: 90%;
}

.toast-box.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  font-size: 1.4rem;
  color: #10b981;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
}

.toast-message {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   15. MEDIA QUERIES & MULTI-DEVICE RESPONSIVENESS
   -------------------------------------------------------------------------- */

/* TABLETS & SMALL DESKTOPS (481px - 768px) */
@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-height) + 24px);
  }

  .section,
  section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
    padding: 64px 0;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-role {
    justify-content: center;
  }

  .hero-intro {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-contact-strip {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-social-links {
    margin-left: 0;
    margin-top: 6px;
  }

  .tag-left {
    left: 0;
  }

  .tag-right {
    right: 0;
  }

  .education-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Timeline Tablet Adaptation */
  .journey-timeline-line {
    left: 20px;
  }

  .journey-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 54px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
  }

  .journey-node {
    left: 1px !important;
    right: auto !important;
  }

  .journey-card {
    max-width: 100%;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .project-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .project-title {
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    line-height: 1.28;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-badge {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .project-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-pipeline-card {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .pipeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .nlp-stages-flow {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .nlp-stage-arrow {
    display: none !important;
  }

  .nlp-stage-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 78px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }

  .stage-title {
    font-size: clamp(0.64rem, 2.2vw, 0.72rem);
    font-weight: 700;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25;
    text-align: center;
  }

  .project-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .project-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .main-project-card,
  .form-card,
  .project-interactive-box {
    padding: 24px 18px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ai-chat-panel {
    position: fixed !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    margin: 0 auto !important;
    width: calc(100vw - 24px) !important;
    max-width: 400px !important;
    height: min(460px, calc(100vh - 100px)) !important;
    max-height: calc(100vh - 90px) !important;
    z-index: 10000 !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.5) !important;
  }
}

/* ANDROID MOBILE PHONES & SMALL DEVICES (320px - 480px) */
@media (max-width: 480px) {
  html {
    overflow-x: hidden;
    width: 100%;
    scroll-padding-top: calc(var(--header-height) + 28px);
  }

  body {
    overflow-x: hidden;
    width: 100%;
    padding-bottom: max(90px, calc(80px + env(safe-area-inset-bottom, 0px)));
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section,
  section[id] {
    padding: 44px 0;
    scroll-margin-top: calc(var(--header-height) + 28px);
  }

  /* 1. MOBILE NAVBAR ALIGNMENT & RESPONSIVENESS */
  .navbar {
    height: var(--header-height);
  }

  .nav-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-brand {
    gap: 8px;
  }

  .brand-logo-badge {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-white);
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .hamburger-btn {
    width: 24px;
    height: 18px;
  }

  /* Section Titles & Subtitles */
  .section-title {
    font-size: 1.55rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .section-subtitle {
    font-size: 0.88rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .about-card,
  .main-project-card,
  .form-card,
  .project-interactive-box {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /* Hero Section Mobile Enhancements */
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-role {
    font-size: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-intro {
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-contact-strip {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .hero-contact-item {
    font-size: 0.82rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-social-links {
    margin-left: 0;
    justify-content: center;
  }

  .hero-card.hero-card-circle {
    max-width: 230px;
  }

  .hero-floating-tag {
    display: none;
  }

  /* 2. DEVELOPER TERMINAL RESPONSIVENESS (IMAGE 1 FIXES) */
  .terminal-wrapper {
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .terminal-window {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }

  .terminal-header {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-sizing: border-box;
  }

  .terminal-dots {
    gap: 4px;
    flex-shrink: 0;
  }

  .terminal-dot {
    width: 9px;
    height: 9px;
  }

  .terminal-title {
    font-size: 0.72rem;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .terminal-live-badge {
    font-size: 0.65rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
  }

  .terminal-body {
    padding: 12px 10px;
    font-size: 0.78rem;
    line-height: 1.5;
    min-height: 180px;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .terminal-entry {
    margin-bottom: 12px;
  }

  .terminal-prompt-line {
    font-size: 0.78rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .terminal-response {
    padding-left: 8px;
    font-size: 0.78rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .terminal-input-line {
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
  }

  .terminal-cli-input {
    font-size: 0.75rem;
    min-width: 0;
    width: 100%;
    flex: 1;
  }

  .terminal-cli-input::placeholder {
    font-size: 0.72rem;
    opacity: 0.75;
  }

  /* Quick-command buttons 2-row clean grid */
  .terminal-quick-buttons {
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
  }

  .quick-btn-label {
    width: 100%;
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .term-btn {
    padding: 5px 8px;
    font-size: 0.74rem;
    min-height: 34px;
    flex: 1 1 calc(33.333% - 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    touch-action: manipulation;
    box-sizing: border-box;
  }

  .term-status-response {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
  }

  .term-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding-bottom: 3px;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.2);
  }

  .status-key {
    font-size: 0.76rem;
    color: #94a3b8;
  }

  .status-val {
    font-size: 0.76rem;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: right;
  }

  /* 3. SKILLS & BADGES RESPONSIVENESS */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-tech-tags,
  .term-skills-response,
  .about-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tech-tag {
    font-size: 0.78rem;
    padding: 5px 10px;
    max-width: 100%;
    white-space: nowrap;
    word-break: normal;
    background: var(--blue-badge-bg);
    border: 1px solid var(--border-blue);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .term-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  /* 4. MAIN PROJECT & NLP PIPELINE RESPONSIVENESS (IMAGE FIXES) */
  .project-section,
  #project {
    scroll-margin-top: 85px;
    padding-bottom: 70px;
  }

  .main-project-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .project-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .project-title {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
    line-height: 1.28;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 18px;
    word-break: break-word;
    overflow-wrap: anywhere;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .project-pipeline-card {
    padding: 14px 10px;
    margin-bottom: 18px;
    background: #030a14;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .pipeline-header {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }

  /* Responsive Grid for NLP Pipeline Cards on mobile */
  .nlp-stages-flow {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .nlp-stage-arrow {
    display: none !important;
  }

  .nlp-stage-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 78px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
  }

  .stage-num {
    font-size: 0.68rem;
    font-weight: 800;
  }

  .stage-icon {
    font-size: 1.15rem;
    margin: 3px 0;
  }

  .stage-title {
    font-size: clamp(0.62rem, 2.2vw, 0.72rem);
    font-weight: 700;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25;
    text-align: center;
  }

  /* 5. KEY CAPABILITIES (SINGLE-COLUMN STACKED LAYOUT) */
  .project-features {
    padding: 14px 10px;
    margin-bottom: 18px;
    background: #030a14;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .features-list li {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(5, 16, 32, 0.7);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-sm);
    word-break: break-word;
    overflow-wrap: anywhere;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .features-list li .feature-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: normal;
    width: 100%;
    margin-bottom: 2px;
  }

  .features-list li i {
    color: var(--blue-soft);
    font-size: 0.82rem;
    margin-top: 0;
    flex-shrink: 0;
  }

  .features-list li strong {
    color: #ffffff;
    font-size: 0.9rem;
  }

  .features-list li .feature-item-desc {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-left: 0 !important;
    line-height: 1.5;
    width: 100%;
  }

  /* 6. BUTTONS FULL-WIDTH ON MOBILE */
  .project-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 4px;
  }

  .project-actions .btn,
  .project-actions a.btn,
  .project-actions button.btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }

  /* 7. INTERACTIVE AI REVIEW DEMO RESPONSIVENESS */
  .project-interactive-box {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
  }

  .tester-container {
    width: 100%;
    gap: 12px;
  }

  .sample-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .sample-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.8rem;
    justify-content: center;
    box-sizing: border-box;
  }

  .tester-textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.86rem;
    padding: 10px 12px;
    min-height: 80px;
  }

  .tester-btn-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
  }

  .tester-btn-row .btn,
  .tester-btn-row button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    box-sizing: border-box;
  }

  .tester-result-box {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .result-top-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* FOOTER MOBILE RESPONSIVENESS */
  .footer-contact-details {
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .footer-divider {
    display: none;
  }

  /* FLOATING CONTROLS & ANDROID NAV BAR SPACING */
  .ai-assistant-widget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    z-index: 999;
  }

  .ai-chat-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .ai-chat-panel {
    position: fixed !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px !important;
    right: 10px !important;
    margin: 0 auto !important;
    width: calc(100vw - 20px) !important;
    max-width: 390px !important;
    height: min(440px, calc(100vh - 95px)) !important;
    max-height: calc(100vh - 85px) !important;
    z-index: 10000 !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.5) !important;
  }

  .scroll-top-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 12px;
  }
}

/* MIDDLE MOBILE BREAKPOINT (376px - 412px: e.g. Pixel 7, Galaxy S20, iPhone 14) */
@media (max-width: 412px) {
  .nlp-stages-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .nlp-stage-box {
    padding: 8px 4px;
    min-height: 78px;
  }

  .stage-num {
    font-size: 0.65rem;
  }

  .stage-icon {
    font-size: 1.1rem;
  }

  .stage-title {
    font-size: 0.68rem;
  }
}

/* SMALL MOBILE BREAKPOINT (320px - 375px: e.g. iPhone SE, Galaxy S8) */
@media (max-width: 375px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .nlp-stages-flow {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .nlp-stage-box {
    padding: 8px 4px;
    min-height: 78px;
  }

  .stage-title {
    font-size: 0.7rem;
  }

  .ai-chat-panel {
    position: fixed !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    right: 8px !important;
    margin: 0 auto !important;
    width: calc(100vw - 16px) !important;
    max-width: 350px !important;
    height: min(420px, calc(100vh - 80px)) !important;
    z-index: 10000 !important;
  }
}

/* EXTRA SMALL ANDROID MOBILE DEVICES (<= 320px) */
@media (max-width: 320px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .terminal-header {
    padding: 6px 8px;
    gap: 4px;
  }

  .terminal-title {
    font-size: 0.68rem;
  }

  .terminal-live-badge {
    font-size: 0.62rem;
  }

  .terminal-body {
    padding: 10px 8px;
    font-size: 0.76rem;
  }

  .term-btn {
    padding: 4px 6px;
    font-size: 0.72rem;
    min-height: 32px;
  }

  .nlp-stages-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
