/* ===================================================================
   Web Portfolio (Google Antigravity Edition)
   Styles & Physics Support
   =================================================================== */

:root {
  --g-blue: #4285F4;
  --g-red: #EA4335;
  --g-yellow: #FBBC05;
  --g-green: #34A853;
  --g-blue-glow: rgba(66, 133, 244, 0.25);
  
  /* Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-card: rgba(23, 32, 54, 0.85);
  --bg-card-hover: rgba(30, 42, 71, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(66, 133, 244, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --nav-bg: rgba(11, 15, 25, 0.85);
  --input-bg: rgba(18, 25, 43, 0.8);
  --hud-bg: rgba(15, 23, 42, 0.92);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-main: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light Mode Overrides */
body.theme-light {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(66, 133, 244, 0.3);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --input-bg: rgba(241, 245, 249, 0.9);
  --hud-bg: rgba(255, 255, 255, 0.94);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* -------------------------------------------------------------------
   Global Reset & Base
   ------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Space Background Canvas */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography & Google Accents */
.g-blue { color: var(--g-blue); }
.g-red { color: var(--g-red); }
.g-yellow { color: var(--g-yellow); }
.g-green { color: var(--g-green); }

.text-gradient {
  background: linear-gradient(135deg, var(--g-blue) 0%, #a855f7 50%, var(--g-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------
   Navigation Bar
   ------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--g-blue), #8b5cf6);
  color: white;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--g-blue);
  border-radius: 2px;
  transition: width 0.2s ease;
}

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

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

/* Antigravity Trigger Button */
.antigravity-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

.antigravity-trigger-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
}

.antigravity-trigger-btn .pulse-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(139, 92, 246, 0.6);
  animation: pulseAnimation 2s infinite;
  pointer-events: none;
}

@keyframes pulseAnimation {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--g-blue);
  transform: rotate(15deg);
}

body.theme-dark .sun-icon { display: block; }
body.theme-dark .moon-icon { display: none; }
body.theme-light .sun-icon { display: none; }
body.theme-light .moon-icon { display: block; }

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* -------------------------------------------------------------------
   Antigravity HUD Controls (Zero Gravity Mode Toolbar)
   ------------------------------------------------------------------- */
.antigravity-hud {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hud-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px var(--g-blue-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: hudSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.antigravity-hud.hidden {
  display: none !important;
}

@keyframes hudSlideDown {
  from { transform: translate(-50%, -100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.hud-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 1.5s infinite;
}

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

.hud-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hud-btn.active {
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #fff;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

.hud-btn-accent {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none;
  color: white;
}

.hud-btn-danger {
  background: #dc2626;
  border: none;
  color: white;
}

.hud-btn-danger:hover {
  background: #ef4444;
}

.hud-hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* -------------------------------------------------------------------
   Hero Section & Google Centerpiece
   ------------------------------------------------------------------- */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.google-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--g-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--g-green);
}

.hero-avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 24px;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--g-blue-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(66, 133, 244, 0.4);
  animation: rotateRing 20s linear infinite;
}

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

.avatar-img-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border-color);
}

.avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-status-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  height: 36px;
}

.hero-bio {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Google-Style Search Bar */
.google-search-box {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 36px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px var(--g-blue-glow), var(--shadow-lg);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.clear-search-btn.hidden { display: none; }

.search-buttons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.google-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-btn:hover {
  border-color: var(--g-blue);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.lucky-btn {
  border-color: rgba(251, 188, 5, 0.4);
}

.lucky-btn:hover {
  border-color: var(--g-yellow);
  box-shadow: 0 0 12px rgba(251, 188, 5, 0.3);
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.search-dropdown.hidden {
  display: none;
}

.search-result-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.search-result-type {
  font-size: 0.75rem;
  background: var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Action Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: var(--g-blue);
  color: #fff;
  box-shadow: 0 4px 15px var(--g-blue-glow);
}

.btn-primary:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--g-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-ghost-sm {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-ghost-sm:hover {
  color: var(--text-primary);
  border-color: var(--g-blue);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* -------------------------------------------------------------------
   Section Headers
   ------------------------------------------------------------------- */
.section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.g-blue-tag { background: rgba(66, 133, 244, 0.15); color: var(--g-blue); }
.g-green-tag { background: rgba(52, 168, 83, 0.15); color: var(--g-green); }
.g-yellow-tag { background: rgba(251, 188, 5, 0.15); color: var(--g-yellow); }
.g-red-tag { background: rgba(234, 67, 53, 0.15); color: var(--g-red); }

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.section-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--g-blue), var(--g-green));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* -------------------------------------------------------------------
   About Section
   ------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-text-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.card-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-text-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: var(--input-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.highlight-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.highlight-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.highlight-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-stats-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--g-blue);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--g-blue), var(--g-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

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

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

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.icon-blue { background: rgba(66, 133, 244, 0.15); }
.icon-green { background: rgba(52, 168, 83, 0.15); }
.icon-yellow { background: rgba(251, 188, 5, 0.15); }

.cat-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
}

.skill-pill:hover {
  background: var(--g-blue);
  color: #fff;
  border-color: var(--g-blue);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px var(--g-blue-glow);
}

/* -------------------------------------------------------------------
   Projects Section
   ------------------------------------------------------------------- */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.filter-btn.active {
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #fff;
  box-shadow: 0 4px 12px var(--g-blue-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.card-image-box {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.project-banner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bg-grad-1 {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.bg-grad-2 {
  background: linear-gradient(135deg, #064e3b, #10b981);
}

.bg-grad-3 {
  background: linear-gradient(135deg, #4c1d95, #8b5cf6);
}

.banner-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.banner-mockup {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
}

.mock-icon {
  font-size: 1.4rem;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--g-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.year-pill {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.card-stack span {
  font-size: 0.72rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.action-btn {
  flex-grow: 1;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #fff;
}

.action-btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.action-btn-link:hover {
  color: var(--text-primary);
  border-color: var(--g-blue);
}

/* -------------------------------------------------------------------
   Experience & Timeline
   ------------------------------------------------------------------- */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease;
}

.timeline-card:hover {
  transform: translateX(6px);
  border-color: var(--border-glow);
}

.timeline-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.g-blue-bg { background: var(--g-blue); }
.g-green-bg { background: var(--g-green); }
.g-red-bg { background: var(--g-red); }

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------------
   Contact Section
   ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}

.contact-info-card,
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-info-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.channel-value {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.channel-value:hover {
  color: var(--g-blue);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px var(--g-blue-glow);
}

.form-toast {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-toast.success {
  background: rgba(52, 168, 83, 0.15);
  border: 1px solid var(--g-green);
  color: #4ade80;
}

.form-toast.hidden { display: none; }

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 4px;
}

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

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-to-top {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.back-to-top:hover {
  color: var(--g-blue);
}

/* -------------------------------------------------------------------
   Modal Dialog
   ------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -------------------------------------------------------------------
   Google Antigravity Mode Physics Styling
   When elements are in physics mode, they get transformed dynamically!
   ------------------------------------------------------------------- */
.physics-item {
  will-change: transform;
}

body.antigravity-active {
  overflow: hidden !important;
}

body.antigravity-active .physics-item {
  position: fixed !important;
  margin: 0 !important;
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  transition: none !important;
}

body.antigravity-active .physics-item.is-dragging {
  cursor: grabbing !important;
  z-index: 999 !important;
  box-shadow: 0 20px 40px rgba(66, 133, 244, 0.4) !important;
}

/* -------------------------------------------------------------------
   Responsive Design
   ------------------------------------------------------------------- */
@media (max-width: 992px) {
  .skills-categories-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .mobile-toggle-btn {
    display: flex;
  }

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

  .skills-categories-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hud-container {
    gap: 8px;
  }

  .hud-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
}
