/* ==========================================================================
   CSS Custom Properties — Dark Technical Palette
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #0A0F1C;
  --color-surface: #131929;
  --color-text-primary: #E2E8F0;
  --color-text-muted: #64748B;
  --color-accent: #00A8FF;
  --color-accent-hover: #0082CC;
  --color-border: #1E2D45;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-width: 1200px;
  --navbar-height: 72px;

  /* Transitions */
  --transition-base: 0.3s ease;
}

/* ==========================================================================
   Reset & Box Sizing
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Base Typography
   ========================================================================== */

body {
  font-family: var(--font-primary);
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

code, pre {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  scroll-margin-top: var(--navbar-height);
}

.section:not(:first-of-type) {
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text-primary);
}

.subsection-title {
  font-size: 1.5rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(10, 15, 28, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color var(--transition-base);
}

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

/* Hamburger menu (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  background-color: var(--color-accent);
  filter: blur(120px);
  opacity: 0.25;
  animation: hero-float 14s ease-in-out infinite;
}

.hero-glow-1 {
  top: -140px;
  left: -120px;
  width: 420px;
  height: 420px;
}

.hero-glow-2 {
  right: -100px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  background-color: var(--color-accent-hover);
  animation-delay: -7s;
}

@keyframes hero-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: 800px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* === CHANGE 1: AVAILABILITY BADGE === */

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 6px 14px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #10B981;
}

.avail-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* === CHANGE 1: END === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color var(--transition-base), border-color var(--transition-base),
    color var(--transition-base), transform var(--transition-base);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* === TERMINAL WIDGET START === */

/* ---- Hero two-column layout (desktop) ---- */

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    text-align: left;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-subtitle {
    max-width: none;
  }

  .code-terminal {
    margin: 0 0 0 auto;
  }
}

/* ---- Code Terminal Widget ---- */

.code-terminal {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background-color: #0D1117;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 168, 255, 0.08);
  overflow: hidden;
  font-family: var(--font-mono);
  text-align: left;
}

/* Title bar */

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 12px 16px;
  background-color: #161B27;
  border-bottom: 1px solid var(--color-border);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.terminal-dot-red {
  background-color: #FF5F57;
}

.terminal-dot-yellow {
  background-color: #FEBC2E;
}

.terminal-dot-green {
  background-color: #28C840;
}

.terminal-filename {
  flex: 1;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.terminal-titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.terminal-lang-badge {
  padding: 2px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.terminal-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--transition-base), opacity var(--transition-base);
}

.terminal-run-btn:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
}

.terminal-run-btn:disabled {
  cursor: default;
}

.terminal-run-btn.is-done {
  background-color: #16A34A;
}

.terminal-reset-link {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color var(--transition-base);
}

.terminal-reset-link:hover {
  color: var(--color-accent);
}

/* Code area */

.terminal-code {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  min-height: 60px;
  font-size: 15px;
  line-height: 1.7;
}

.terminal-line-number {
  color: #3D4A5C;
  user-select: none;
}

.terminal-code-line {
  color: var(--color-text-primary);
}

.terminal-code-line .kw {
  color: #C792EA;
}

.terminal-code-line .str {
  color: #C3E88D;
}

.terminal-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-accent);
  animation: terminal-cursor-blink 0.7s step-end infinite;
}

.code-terminal.is-running .terminal-cursor,
.code-terminal.is-done .terminal-cursor {
  animation: none;
  opacity: 0;
}

@keyframes terminal-cursor-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Output area */

.terminal-output {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  background-color: #080C14;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  line-height: 1.8;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.terminal-output.visible {
  max-height: 400px;
  padding: 16px;
  overflow-y: auto;
}

.terminal-output-comment {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.terminal-output-line {
  min-height: 1.8em;
  color: #CBD5E1;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-output-line.out-cmd {
  color: var(--color-accent);
}

.terminal-output-line.out-name {
  color: var(--color-text-primary);
  font-weight: 600;
}

.terminal-output-line.out-sep {
  color: var(--color-border);
}

.terminal-output-line.out-detail {
  color: #94A3B8;
}

/* Status bar */

.terminal-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 6px 16px;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  font-size: 11px;
  color: var(--color-text-muted);
}

.terminal-statusbar .status-icon {
  display: inline-block;
}

.terminal-statusbar.is-ready .status-icon,
.terminal-statusbar.is-done .status-icon {
  color: #28C840;
}

.terminal-statusbar.is-running .status-icon {
  color: var(--color-accent);
  animation: terminal-spin 0.8s linear infinite;
}

@keyframes terminal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Mobile sizing ---- */

@media (max-width: 767px) {
  .code-terminal {
    max-width: 100%;
    font-size: 12px;
  }

  .terminal-code {
    font-size: 12px;
  }

  .terminal-output {
    font-size: 11px;
  }

  .terminal-lang-badge {
    display: none;
  }
}

/* === TERMINAL WIDGET END === */

/* === CHANGE 4: IMPACT NUMBERS STATS BAR === */

.impact-section {
  background-color: #080C14;
  padding: 60px 0;
  border-top: 1px solid #1E2D45;
  border-bottom: 1px solid #1E2D45;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.impact-tile {
  position: relative;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid #1E2D45;
}

.impact-tile:last-child {
  border-right: none;
}

.impact-value {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}

.impact-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: #00A8FF;
}

.impact-symbol {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  vertical-align: top;
  color: #00A8FF;
}

.impact-label {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #E2E8F0;
}

.impact-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748B;
}

@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-tile {
    border-right: none;
  }

  .impact-tile:nth-child(1),
  .impact-tile:nth-child(3) {
    border-right: 1px solid #1E2D45;
  }

  .impact-tile:nth-child(1),
  .impact-tile:nth-child(2) {
    border-bottom: 1px solid #1E2D45;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === CHANGE 4: END === */

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 3rem;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

/* === VIDEO HEADSHOT === */

/* OUTER CONTAINER */
.profile-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* RING WRAPPER — holds the rotating gradient border */
.profile-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    #00A8FF,
    #0066CC,
    #001A4D,
    #001A4D,
    #0066CC,
    #00A8FF
  );
  animation: ring-rotate 8s linear infinite;
  flex-shrink: 0;
}

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

@keyframes ring-counter-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* INNER CIRCLE — the actual media container */
.profile-media-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0A0F1C;
  position: relative;
  animation: ring-counter-rotate 8s linear infinite;
}

/* VIDEO ELEMENT */
.profile-video {
  position: absolute;
  width: 112%;
  height: 112%;
  top: -10%;
  left: -6%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

/* FALLBACK IMAGE (shown only if video fails) */
.profile-img-fallback {
  position: absolute;
  width: 112%;
  height: 112%;
  top: -10%;
  left: -6%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

/* LIVE BADGE */
.profile-live-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid rgba(0, 168, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 3px 10px 3px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #00A8FF;
  letter-spacing: 0.1em;
  opacity: 1;
  animation: badge-fadeout 0.5s ease-out 4s forwards;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: live-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

@keyframes badge-fadeout {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(4px); }
}

/* RESPONSIVE SIZING */

/* Tablet */
@media (max-width: 768px) {
  .profile-ring-wrap {
    width: 180px;
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .profile-ring-wrap {
    width: 150px;
    height: 150px;
  }
  .profile-live-badge {
    font-size: 9px;
    bottom: 8px;
    padding: 2px 8px 2px 6px;
  }
}

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

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

.stat-box {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  background-color: var(--color-surface);
}

.stat-value {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
}

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

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skills-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 12px;
  color: #64748B;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--filled {
  background: #00A8FF;
}

.legend-dot--outlined {
  background: transparent;
  border: 1.5px solid #F5A623;
}

.legend-divider {
  color: #1E2D45;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.skill-card-header i {
  font-size: 1.25rem;
  color: var(--color-accent);
}

.skill-card-header h3 {
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

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

.skill-tag {
  padding: 0.35rem 0.75rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
}

.skill-tag.working {
  background: transparent;
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: #F5A623;
  font-weight: 400;
}

.skill-tag.working:hover {
  border-color: #F5A623;
  color: #FFC15E;
}

.tier-divider {
  height: 1px;
  background: #1A2438;
  margin: 10px 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Experience Section
   ========================================================================== */

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background-color: var(--color-accent);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  top: 0.4rem;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 3px solid var(--color-accent);
}

.timeline-card {
  padding: 1.5rem 1.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.timeline-card-current {
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.15);
}

.timeline-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-role {
  font-size: 1.25rem;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
}

.timeline-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-date {
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.badge-current {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.timeline-list li {
  color: var(--color-text-primary);
}

.timeline-list li::marker {
  color: var(--color-accent);
}

.highlight {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-card-header {
    flex-direction: column;
  }

  .timeline-badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.15);
}

.project-card-featured {
  grid-column: 1 / -1;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.badge-featured {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.project-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-title {
  font-size: 1.25rem;
}

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

.project-description {
  color: var(--color-text-primary);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.35rem 0.75rem;
  background-color: rgba(0, 168, 255, 0.1);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-primary);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
  }
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background-color: rgba(0, 168, 255, 0.08);
  transform: translateY(-2px);
}

/* === KSA REAL ESTATE PROJECT CARD === */

.project-card-two-col {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 40px;
}

.project-card-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.badge-gcc {
  background-color: rgba(234, 179, 8, 0.1);
  color: #EAB308;
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-deploy {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.project-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.project-impact-box {
  border-left: 3px solid var(--color-accent);
  background-color: rgba(0, 168, 255, 0.05);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
}

.arch-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arch-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 13px;
  color: #CBD5E1;
}

.arch-item i {
  color: var(--color-accent);
}

.ragas-suite-label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ragas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ragas-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 12px;
}

.ragas-score {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #10B981;
}

.ragas-label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tech-tag-ksa {
  background-color: #0D1117;
}

.browser-mockup {
  background: #0D1117;
  border: 1px solid #1E2D45;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.browser-bar {
  background: #161B27;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1E2D45;
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

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

.dot-red {
  background: #FF5F57;
}

.dot-yellow {
  background: #FEBC2E;
}

.dot-green {
  background: #28C840;
}

.browser-url {
  background: #0A0F1C;
  border: 1px solid #1E2D45;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #3D4A5C;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-screen {
  width: 100%;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.browser-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top left;
  max-height: 340px;
  transition: transform 0.4s ease;
}

.browser-mockup:hover .browser-screenshot {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .project-card-two-col {
    grid-template-columns: 1fr;
  }

  .project-screenshot-wrap {
    order: 2;
  }

  .browser-mockup {
    max-height: 220px;
  }

  .browser-screenshot {
    max-height: 200px;
  }

  .ragas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Education & Certifications Section
   ========================================================================== */

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

.education-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.education-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.edu-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 6px;
  overflow: hidden;
}

.edu-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.education-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.education-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.education-degree {
  font-size: 1.05rem;
}

.education-institution {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-accent);
}

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

.badge-progress {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.badge-gpa {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem;
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.cert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.cert-name {
  font-size: 1rem;
}

.cert-org {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-accent);
}

.cert-duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cert-link {
  margin-top: 0.75rem;
}

@media (max-width: 1024px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .education-item {
    gap: 12px;
  }

  .edu-logo-wrap {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .education-item {
    gap: 10px;
  }

  .edu-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 4px;
  }
}

@media (max-width: 600px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 1.5rem;
  text-align: center;
}

.contact-subtext {
  color: var(--color-text-muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.contact-link:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-word;
}

/* === CHANGE 2: WHATSAPP CONTACT ITEM === */

.contact-link-whatsapp .contact-icon {
  color: #25D366;
}

.contact-link-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.08);
  border-color: #25D366;
  color: #25D366;
}

/* === CHANGE 2: END === */

/* === UPWORK CONTACT ITEM === */

.contact-link-upwork .contact-icon {
  background-color: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

.contact-link-upwork:hover {
  background-color: rgba(0, 0, 0, 0.15);
  border-color: #000000;
  color: #E2E8F0;
}

/* === UPWORK CONTACT ITEM END === */

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 168, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base),
    visibility var(--transition-base), background-color var(--transition-base);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Mobile Responsive — Navbar / Hamburger Menu
   ========================================================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
  }

  /* Hamburger -> X animation */
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* =========================================================
   AI CHATBOT WIDGET
   To change colors update the variables at the top.
   ========================================================= */

/* --- WIDGET WRAPPER --- */
#aaish-chat-widget {
  position: fixed;
  bottom: 70px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}

/* --- NOTIFICATION BUBBLE --- */
.chat-notif {
  background: #131929;
  border: 1px solid #1E2D45;
  color: #E2E8F0;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.chat-notif--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* --- FLOATING TRIGGER BUTTON --- */
.chat-trigger {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0A0F1C;
  border: 2px solid #00A8FF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,168,255,0.25),
              0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  flex-shrink: 0;
}
.chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(0,168,255,0.4),
              0 2px 12px rgba(0,0,0,0.5);
}
.chat-trigger:active {
  transform: scale(0.96);
}

/* Bot icon — visible when closed */
.trigger-icon-bot {
  width: 26px;
  height: 26px;
  color: #00A8FF;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Close icon — visible when open */
.trigger-icon-close {
  width: 20px;
  height: 20px;
  color: #E2E8F0;
  position: absolute;
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-trigger--open .trigger-icon-bot {
  opacity: 0;
  transform: rotate(45deg);
}
.chat-trigger--open .trigger-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* Pulse ring animation */
.trigger-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #00A8FF;
  animation: trigger-pulse 2.5s ease-out 3.5s 3;
  opacity: 0;
}
@keyframes trigger-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --- CHAT WINDOW --- */
.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  height: 520px;
  background: #0D1117;
  border: 1px solid #1E2D45;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6),
              0 0 0 1px rgba(0,168,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease,
              transform 0.25s ease;
}
.chat-window--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* --- HEADER --- */
.chat-header {
  background: #131929;
  border-bottom: 1px solid #1E2D45;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00A8FF, #0066CC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-title {
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1;
}
.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748B;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: status-pulse 2.5s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.chat-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  color: #64748B;
  display: flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.chat-close-btn:hover {
  background: #1E2D45;
  color: #E2E8F0;
}
.chat-close-btn svg {
  width: 16px;
  height: 16px;
}

/* --- MESSAGES AREA --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: #1E2D45;
  border-radius: 4px;
}

/* --- MESSAGE BUBBLES --- */
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 100%;
}
.chat-msg--user {
  justify-content: flex-end;
}
.chat-msg--assistant {
  justify-content: flex-start;
}
.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00A8FF, #0066CC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.msg-bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
}
.chat-msg--assistant .msg-bubble {
  background: #131929;
  border: 1px solid #1E2D45;
  color: #CBD5E1;
  border-bottom-left-radius: 4px;
}
.chat-msg--user .msg-bubble {
  background: linear-gradient(135deg, #00A8FF, #0082CC);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* --- TYPING INDICATOR --- */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}
.typing-bubble .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3D4A5C;
  animation: dot-bounce 1.3s ease-in-out infinite;
}
.typing-bubble .dot:nth-child(2) { animation-delay: 0.18s; }
.typing-bubble .dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0);    background: #3D4A5C; }
  30%            { transform: translateY(-6px); background: #00A8FF; }
}

/* --- STARTER CHIPS --- */
.chat-chips {
  padding: 0 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex-shrink: 0;
  transition: opacity 0.3s ease, height 0.3s ease,
              padding 0.3s ease, margin 0.3s ease;
}
.chat-chip {
  background: transparent;
  border: 1px solid #1E2D45;
  border-radius: 999px;
  color: #64748B;
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease,
              color 0.2s ease,
              background 0.2s ease;
  font-family: 'Inter', sans-serif;
  text-align: left;
}
.chat-chip:hover {
  border-color: #00A8FF;
  color: #00A8FF;
  background: rgba(0,168,255,0.05);
}

/* --- INPUT AREA --- */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #1E2D45;
  background: #0A0F1C;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: #131929;
  border: 1px solid #1E2D45;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13.5px;
  color: #E2E8F0;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}
.chat-input::placeholder { color: #3D4A5C; }
.chat-input:focus        { border-color: #00A8FF; }
.chat-input:disabled     { opacity: 0.5; cursor: not-allowed; }
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #00A8FF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}
.chat-send-btn:hover    { background: #0082CC; }
.chat-send-btn:active   { transform: scale(0.93); }
.chat-send-btn:disabled {
  background: #1E2D45;
  cursor: not-allowed;
  transform: none;
}
.chat-send-btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* --- FOOTER --- */
.chat-footer {
  text-align: center;
  font-size: 10px;
  color: #2D3F52;
  padding: 6px 12px 8px;
  background: #0A0F1C;
  border-top: 1px solid #0F1A2E;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 480px) {
  #aaish-chat-widget {
    bottom: 16px;
    right: 16px;
    /* Safe area for iPhone X+ home indicator */
    bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
  }

  .chat-trigger {
    width: 50px;
    height: 50px;
  }

  .trigger-icon-bot {
    width: 22px;
    height: 22px;
  }

  .chat-window {
    /* Full width minus margins, respects safe areas */
    width: calc(100vw - 32px);
    /* Dynamic viewport height for iOS keyboard awareness */
    height: min(480px, calc(100dvh - 100px));
    border-radius: 14px;
    /* Position from bottom accounting for trigger button */
    bottom: 70px;
    right: 0;
  }

  .chat-input {
    font-size: 16px;
    /* 16px prevents iOS Safari auto-zoom on focus */
  }

  .msg-bubble {
    font-size: 13px;
    max-width: 85%;
  }

  .chat-chip {
    font-size: 11px;
    padding: 5px 10px;
  }

  .chat-header {
    padding: 12px 14px;
  }

  .chat-title {
    font-size: 13px;
  }

  .chat-footer {
    font-size: 9px;
    padding: 5px 12px 7px;
  }
}

/* ═══════════════════════════════════════
   SESSION A — MOBILE FIXES
   ═══════════════════════════════════════ */

/* ---- FIX 3: Hero heading scale (real classes: .hero-name, .hero-title) ---- */
/* NOTE: .hero-container is already a mobile-first single-column grid
   (grid-template-columns: 1fr) that only becomes two columns at
   min-width: 1024px, and .hero-text / .hero-cta are already centered
   by default — so no stacking override is needed here. Only the
   heading scale from the session brief is added. */
@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.2;
  }

  .hero-title {
    font-size: clamp(14px, 4vw, 18px);
  }
}

/* ---- FIX 4: Terminal widget mobile polish (real classes) ---- */
@media (max-width: 768px) {
  .code-terminal {
    max-width: min(520px, calc(100vw - 32px));
  }

  .terminal-code {
    padding: 14px 12px;
  }

  .terminal-titlebar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .terminal-run-btn {
    font-size: 11px;
    padding: 4px 10px;
  }

  .terminal-statusbar {
    font-size: 10px;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .terminal-code {
    font-size: 11px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---- FIX 5: Impact stats bar — 2x2 border logic (real class: .impact-tile) ---- */
@media (max-width: 767px) {
  .impact-tile {
    border-right: none;
    border-bottom: none;
  }

  .impact-tile:nth-child(1) {
    border-right: 1px solid #1E2D45;
    border-bottom: 1px solid #1E2D45;
  }
  .impact-tile:nth-child(2) {
    border-bottom: 1px solid #1E2D45;
  }
  .impact-tile:nth-child(3) {
    border-right: 1px solid #1E2D45;
  }
  .impact-tile:nth-child(4) {
    border-right: none;
  }

  .impact-tile {
    padding: 28px 16px;
  }

  .impact-label {
    font-size: 13px;
  }

  .impact-sub {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .impact-tile {
    padding: 20px 12px;
  }

  .impact-number {
    font-size: 28px;
  }
}

/* ---- FIX 6: Featured project cards mobile polish (real classes) ---- */
@media (max-width: 767px) {
  .project-card-featured {
    padding: 20px;
    gap: 24px;
  }

  .project-impact-box {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .project-card {
    padding: 20px;
  }
}

/* ---- FIX 7: Skills section mobile (real classes) ---- */
@media (max-width: 767px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .skill-tag {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ---- FIX 8: Experience timeline mobile (real classes) ---- */
@media (max-width: 767px) {
  .timeline-item {
    margin-left: 8px;
    padding-left: 32px;
  }

  .timeline-list li {
    font-size: 13.5px;
  }
}

/* ---- FIX 9: Education logos mobile (real class: .edu-logo-wrap) ---- */
@media (max-width: 480px) {
  .edu-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    padding: 4px;
    flex-shrink: 0;
  }

  .education-item {
    gap: 10px;
    align-items: flex-start;
  }
}

/* ---- FIX 11: Touch targets and general mobile polish ---- */
@media (max-width: 768px) {
  .nav-link {
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .chat-messages {
    -webkit-overflow-scrolling: touch;
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .contact-link {
    min-height: 48px;
  }

  /* Safe area padding for navbar on iPhone X+ */
  .navbar {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* Disable hover effects on touch devices (prevents
   sticky hover states on mobile after tap) */
@media (hover: none) {
  .project-card:hover,
  .skill-card:hover,
  .cert-card:hover,
  .contact-link:hover,
  .chat-chip:hover,
  .impact-tile:hover {
    transform: none;
    box-shadow: none;
  }

  .chat-chip:active {
    border-color: #00A8FF;
    color: #00A8FF;
    background: rgba(0, 168, 255, 0.05);
  }
}

/* ═══════════════════════════════════════
   SESSION B: NEURAL NETWORK
   ═══════════════════════════════════════ */

/* #hero already has position: relative and overflow: hidden
   (see Hero Section rules above), and .hero-container already
   sits at z-index: 1, so the canvas only needs its own layer. */
#neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Disable canvas on mobile — performance */
@media (max-width: 767px) {
  #neural-canvas {
    display: none;
  }
}

/* ═══════════════════════════════════════
   SESSION B: 3D CARD TILT
   (real tiltable card classes: .project-card, .skill-card)
   ═══════════════════════════════════════ */

.project-card,
.skill-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

/* Light sheen layer — uses CSS variables set by JS */
.project-card::before,
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(0, 168, 255, 0.07) 0%,
    transparent 65%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

/* Sheen becomes visible on hover (JS adds .tilt-active) */
.project-card.tilt-active::before,
.skill-card.tilt-active::before {
  opacity: 1;
}

/* Deeper shadow on tilt */
.project-card.tilt-active,
.skill-card.tilt-active {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 168, 255, 0.15),
    0 0 40px rgba(0, 168, 255, 0.06);
}

/* Reset transition on mouse leave — slower */
.project-card.tilt-reset,
.skill-card.tilt-reset {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Disable tilt on touch/mobile devices entirely */
@media (hover: none) {
  .project-card,
  .skill-card {
    transform: none !important;
  }
  .project-card::before,
  .skill-card::before {
    display: none;
  }
}

/* === CONTACT FORM === */

/* Contact section header */
.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Two-column grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* LEFT column heading */
.contact-channels-heading {
  font-size: 17px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.contact-channels-sub {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 28px;
}

.contact-channels .contact-links {
  justify-content: flex-start;
}

/* RIGHT column heading */
.contact-form-heading {
  font-size: 20px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.contact-form-sub {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Form wrapper card */
.contact-form-wrap {
  background: #131929;
  border: 1px solid #1E2D45;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: left;
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: #0A0F1C;
  border: 1px solid #1E2D45;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 14px;
  color: #E2E8F0;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #2D3F52;
}

.form-input:focus {
  border-color: #00A8FF;
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.08);
}

.form-input--error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  max-height: 280px;
  line-height: 1.6;
}

/* Inline error text */
.form-error {
  display: block;
  font-size: 11.5px;
  color: #EF4444;
  margin-top: 5px;
  min-height: 16px;
}

/* Submit button */
.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #00A8FF, #0066CC);
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
  margin-top: 8px;
}

.form-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 168, 255, 0.3);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Success message */
.form-success-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #10B981;
  margin-top: 16px;
  line-height: 1.5;
}

.form-success-msg svg {
  width: 18px;
  height: 18px;
  stroke: #10B981;
  flex-shrink: 0;
}

/* Error banner */
.form-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #FCA5A5;
  margin-top: 16px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.form-error-banner a {
  color: #00A8FF;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile layout */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-channels .contact-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .form-input {
    font-size: 16px;
    /* 16px prevents iOS Safari auto-zoom */
  }

  .form-submit-btn {
    font-size: 14px;
    padding: 12px 20px;
  }
}
