/* ==========================================================================
   ARNAV SANGHAVI - GAMEPLAY PROGRAMMER & TECHNICAL GAMEPLAY DESIGNER
   Design Language: Deep Cosmic Midnight Navy & Electric Cyan Tech Aesthetic
   Typography: Space Grotesk (Display), Plus Jakarta Sans (Body), JetBrains Mono (Tech)
   ========================================================================== */

:root {
  /* Deep Obsidian Dark Void Canvas */
  --bg:                  #04060a;  /* Pure deep obsidian black with cool undertone */
  --bg2:                 #080c14;  /* Deep dark slate surface for cards/panels */
  --bg3:                 #0f1524;  /* Elevated hover/tab surface */
  --white:               #0b101c;  /* Elevated container surface */
  
  /* Crisp Legible Typography Colors */
  --ink:                 #f8fafc;  /* Clean slate-50 primary text */
  --mid:                 #94a3b8;  /* Slate-400 secondary body text */
  --faint:               #64748b;  /* Slate-500 subtle/meta text */
  --rule:                #131b2c;  /* Dark subtle borders */
  --rule-light:          rgba(56, 189, 248, 0.10);

  /* Electric Cyan & Royal Azure Blue Accents */
  --accent:              #38bdf8;  /* Electric cyan / sky-400 */
  --accent-deep:         #0284c7;  /* Deep sky blue / sky-600 */
  --accent-dark:         #0369a1;  /* Sky-700 */
  --accent-glow:         rgba(56, 189, 248, 0.22);
  --accent-glow-subtle:  rgba(56, 189, 248, 0.08);
  --accent2:             #60a5fa;  /* Royal cobalt / blue-400 */
  --accent3:             #818cf8;  /* Indigo-violet / indigo-400 */
  --sky:                 #38bdf8;

  /* Modern Precision Typography */
  --display:             'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:                'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:                'JetBrains Mono', 'Fira Code', monospace;

  --card-radius:         6px;
  --transition:          all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-y: scroll;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(56, 189, 248, 0.28);
  color: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

html.modal-open, html.modal-open body {
  overflow: hidden;
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.nav-brand {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}

.nav-brand span {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

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

.nav-links a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mid);
  text-transform: uppercase;
}

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

/* ==========================================================================
   HERO / INTRO SECTION
   ========================================================================== */
#intro {
  position: relative;
  padding-top: 54px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

/* Gears of War Atmospheric Background (Darkened & Cinematic) */
.intro-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.intro-gears-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8%;
  width: 116%;
  background-image: url('assets/images/gears-header.jpg');
  background-size: cover;
  background-position: 20% 20%;
  background-repeat: no-repeat;
  opacity: 0.44;
  filter: saturate(0.92) contrast(1.1) brightness(0.88);
  transform: translateX(-4%) scale(1.02);
}

.intro-gears-gradient {
  position: absolute;
  inset: 0;
  background: 
    /* Softened dark fade on the left to keep text crisp while revealing squad artwork */
    linear-gradient(90deg, 
      rgba(4, 6, 10, 0.92) 0%, 
      rgba(4, 6, 10, 0.82) 35%, 
      rgba(4, 6, 10, 0.45) 68%, 
      rgba(4, 6, 10, 0.20) 100%
    ),
    /* Vertical dark blend into nav top and work section bottom */
    linear-gradient(180deg, 
      rgba(4, 6, 10, 0.70) 0%, 
      rgba(4, 6, 10, 0.10) 30%, 
      rgba(4, 6, 10, 0.45) 75%, 
      rgba(4, 6, 10, 0.98) 100%
    );
}

.intro-blueprint-glow {
  position: absolute;
  inset: -15%;
  background: 
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(56, 189, 248, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 85% 75%, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  filter: blur(75px);
  pointer-events: none;
}


.intro-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0;
  padding: 5.5rem 3.5rem 3.5rem 4.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2rem;
}

.intro-left {
  max-width: 850px;
}

.intro-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-tagline::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.intro-name {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  white-space: nowrap;
}

.intro-name em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-role-desc {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 680px;
  font-family: var(--sans);
}

.intro-role-desc strong {
  color: var(--ink);
  font-weight: 600;
}


.intro-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.intro-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--card-radius);
  border: 1px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
}

.btn-solid:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  background: rgba(56, 189, 248, 0.04);
  color: #7dd3fc;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--card-radius);
  border: 1px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION BAR & HEADERS
   ========================================================================== */
.sec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.sec-title {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   WORK / PROJECTS GRID & FILTERS
   ========================================================================== */
#work {
  border-bottom: 1px solid var(--rule);
}

.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  flex-wrap: wrap;
  gap: 1rem;
}

.filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  background: transparent;
  color: var(--mid);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--ink);
  background: rgba(56, 189, 248, 0.05);
}

.filter-btn.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 16 / 9.5;
  background: var(--bg2);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:nth-child(3n) {
  border-right: none;
}

.project-card.hidden {
  display: none !important;
}

.project-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1);
}

.project-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.project-card:hover {
  z-index: 5;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.75), 0 0 24px rgba(56, 189, 248, 0.18);
  transform: translateY(-3px);
}

.project-card:hover .project-thumb {
  opacity: 0.95;
  transform: scale(1.05);
}

.project-card:hover .project-thumb-fallback {
  opacity: 0.85;
}

.project-overlay {
  position: absolute;
  inset: 0;
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(4, 6, 10, 0.98) 0%, rgba(4, 6, 10, 0.55) 60%, transparent 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(9, 13, 22, 0.98) 0%, rgba(9, 13, 22, 0.65) 60%, rgba(9, 13, 22, 0.2) 100%);
}

.card-cat {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.card-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.25;
}

.card-desc {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--mid);
  margin-top: 0.3rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.card-tag {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 500;
  padding: 0.12rem 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 3px;
  color: #7dd3fc;
  backdrop-filter: blur(4px);
}

.card-video-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 15, 26, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--accent);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  z-index: 3;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.project-card:hover .card-video-badge {
  border-color: var(--accent);
  background: rgba(14, 22, 38, 0.95);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   RESUME / EXPERIENCE SECTION
   ========================================================================== */
#experience {
  border-bottom: 1px solid var(--rule);
}

.exp-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--bg2);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  gap: 4px;
}

.exp-tab-btn {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.42rem 1.15rem;
  background: transparent;
  color: var(--mid);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.exp-tab-btn:hover {
  color: var(--ink);
  background: rgba(56, 189, 248, 0.06);
}

.exp-tab-btn.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
}

.exp-group {
  display: block;
  animation: fadeInExp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   TIMELINE ARCHITECTURE (OPEN & LEFT-ALIGNED)
   ========================================================================== */
.exp-timeline {
  --tl-pad-left: 4.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 3.5rem 3.5rem 4rem var(--tl-pad-left);
}

/* Glowing Vertical Spine */
.exp-timeline::before {
  content: '';
  position: absolute;
  top: 3.4rem;
  bottom: 2rem;
  left: calc(var(--tl-pad-left) + 15px);
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(56, 189, 248, 0.45) 30%,
    rgba(56, 189, 248, 0.2) 75%,
    rgba(56, 189, 248, 0.04) 100%
  );
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.25rem;
  max-width: 1400px;
}

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

/* Node Spine Column */
.timeline-spine {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  display: flex;
  justify-content: center;
  padding-top: 0.28rem;
  z-index: 2;
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.timeline-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Current Active Role Beacon */
.timeline-item.is-current .timeline-node {
  width: 20px;
  height: 20px;
  border-color: #38bdf8;
  background: #04060a;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8), 0 0 32px rgba(56, 189, 248, 0.25);
}

.timeline-item.is-current .timeline-node::after {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.timeline-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.8;
  animation: timelinePulse 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

@keyframes timelinePulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0.15; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Open, Borderless Content Block (Card Layout Removed) */
.timeline-card {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}

.timeline-card::before {
  display: none;
}

/* Timeline Header & Meta */
.timeline-header {
  margin-bottom: 1.1rem;
}

.timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.timeline-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.timeline-current-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.timeline-current-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.timeline-honors-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.timeline-title {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0.3rem 0 0.2rem;
}

.timeline-company {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.timeline-org {
  font-weight: 700;
  color: #e2e8f0;
}

.timeline-suborg {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mid);
}

.timeline-project {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.16rem 0.52rem;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.timeline-summary {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
  margin: 0.85rem 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
}

.timeline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.2rem 0.52rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.06);
  transition: var(--transition);
}

.timeline-chip:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   SKILLS & TOOLS SECTION
   ========================================================================== */
#skills {
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--bg);
}

.sec-badge {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
}

.skills-container {
  width: 100%;
  padding: 3.5rem 4.5rem 4.5rem 4.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 3.8vw, 4.5rem);
  width: 100%;
}

/* Open, Borderless Category Block (No Cards) */
.skill-category {
  position: relative;
  min-width: 0;
}

.skill-cat-header {
  margin-bottom: 1.2rem;
}

.skill-cat-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.skill-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.skill-cat-desc {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.55;
  margin-bottom: 0.95rem;
  min-height: 2.35rem;
}

.skill-cat-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(56, 189, 248, 0.3) 50%, transparent 100%);
  margin-bottom: 1.25rem;
  opacity: 0.75;
}

/* Open, Interactive Skill List */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cbd5e1;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
}

.skill-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.skill-list li:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.skill-list li:hover::before {
  color: #ffffff;
  text-shadow: 0 0 8px var(--accent);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
#about {
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-avatar {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2), 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  position: relative;
}

.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}


.about-loc {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--mid);
  margin-top: 0.3rem;
}

.about-text p {
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--mid);
  margin-bottom: 1.2rem;
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

.about-actions {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-resume-btn {
  font-size: 0.78rem;
  padding: 0.65rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  color: var(--mid);
  background: var(--bg2);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  padding: 1.8rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  background: var(--bg);
}

/* ==========================================================================
   INTERACTIVE PROJECT DETAIL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 4, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 2rem;
}

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

.modal-container {
  width: 100%;
  max-width: 1100px;
  height: 85vh;
  max-height: 750px;
  background: #080c14;
  border: 1px solid rgba(56, 189, 248, 0.20);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.12);
  position: relative;
}

.modal-media-col {
  background: #04060a;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--rule);
}

.modal-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.modal-viewport:has(iframe) {
  padding: 0;
}

.modal-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  padding: 2.4rem;
  overflow-y: auto;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg2);
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.modal-cat {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 1.5rem;
}

.modal-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  padding: 0.16rem 0.52rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.06);
}

.modal-section-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.modal-desc, .modal-workflow {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.modal-desc strong, .modal-workflow strong {
  color: var(--ink);
}

.modal-actions {
  margin-top: auto;
  display: flex;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card:nth-child(2n) {
    border-right: none;
  }
  .skills-container {
    padding: 3rem 2.5rem 3.5rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.4rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 1.2rem;
  }
  .intro-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.2rem 2rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    border-right: none;
  }
  .exp-timeline {
    --tl-pad-left: 1.2rem;
    padding: 2.2rem 1.2rem 2.8rem var(--tl-pad-left);
  }
  .exp-timeline::before {
    left: calc(var(--tl-pad-left) + 11px);
  }
  .timeline-item {
    gap: 1.1rem;
    margin-bottom: 2.5rem;
  }
  .timeline-spine {
    width: 24px;
    padding-top: 0.25rem;
  }
  .timeline-node {
    width: 14px;
    height: 14px;
  }
  .timeline-card {
    padding: 0;
  }
  .timeline-card::before {
    display: none;
  }
  .timeline-title {
    font-size: 1.08rem;
  }
  .skills-container {
    padding: 2.2rem 1.2rem 2.8rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .skill-cat-desc {
    min-height: auto;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.2rem;
  }
  .modal-container {
    grid-template-columns: 1fr;
    height: 90vh;
  }
  .modal-media-col {
    height: 250px;
    flex: none;
  }
}
