:root {
  /* 2026 Core Dark Theme Palette */
  --color-ink: #f8fafc;
  --color-surface: #0a0e14;
  --color-surface-muted: #111823;
  --color-dark: #0f151f;
  --color-dark-soft: #16202c;

  /* Vibrant Neon Accents */
  --color-accent: #00f0ff;
  --color-accent-soft: #7000ff;
  --color-accent-tertiary: #ff007f;

  /* Glassmorphism & UI */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(0, 240, 255, 0.3);
  --color-glow: rgba(0, 240, 255, 0.15);

  --nav-height: 80px;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--color-surface);
}

body {
  padding-top: var(--nav-height);
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

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

/* Ambient Background Glow */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-glow) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: float-glow 20s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20vw;
  right: -10vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  animation: float-glow 25s infinite alternate-reverse ease-in-out;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3vw, 5vh) scale(1.1);
  }

  100% {
    transform: translate(-2vw, -3vh) scale(0.95);
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-heading);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

main section {
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}

/* Navigation - Glassmorphism */
.site-nav {
  background: rgba(10, 14, 20, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-height: var(--nav-height);
}

.navbar-brand {
  letter-spacing: -0.02em;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-soft));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent) !important;
}

.nav-item {
  position: relative;
  margin: 0 0.5rem;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 3px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::after,
.nav-item:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

/* Base Sections */
.section-dark,
.section-light {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

/* We convert section-light to a variation of dark for styling consistency */
.section-light {
  background: transparent;
}

.section-dark {
  background: transparent;
}

.page-section {
  min-height: calc(100vh - var(--nav-height));
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.text-accent {
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-tertiary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-summary,
.section-copy,
.embed-note {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-weight: 300;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  min-height: calc(90vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 6rem;
}

.hero-section .display-4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
}

.hero-image-wrapper {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  box-shadow: 0 2rem 4rem var(--color-shadow);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-soft), transparent 60%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
  filter: blur(15px);
}

.hero-image-wrapper:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

.hero-image {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

/* Hero Chatbox */
.hero-chatbox-container {
  max-width: 31.5rem; /* Aligns with the width of the 3 buttons below */
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.hero-chatbox {
  display: flex;
  align-items: center;
  background: rgba(10, 14, 20, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 3rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: all 0.4s ease;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-chatbox::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-soft), transparent 70%);
  border-radius: 3rem;
  z-index: -1;
  opacity: 0.05;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}

.hero-chatbox:hover::before {
  opacity: 0.1;
}

.hero-chatbox:focus-within {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0.5rem 3rem rgba(0, 240, 255, 0.15), 0 0 15px rgba(0, 240, 255, 0.1) inset;
  transform: translateY(-2px);
}

.hero-chatbox:focus-within::before {
  opacity: 0.15;
  filter: blur(12px);
}

.hero-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.hero-chat-input:focus {
  outline: none;
}

.hero-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1; /* Override default opacity */
}

.hero-chat-submit {
  width: 46px;
  height: 46px;
  min-width: 46px;
  font-size: 1.1rem;
}

/* Section Headings */
.section-heading {
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Cards (Experience & Projects) */
.content-card,
.project-card,
.embed-shell {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.content-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-glow);
  box-shadow: 0 1.5rem 4rem rgba(0, 240, 255, 0.15), 0 0 15px rgba(0, 240, 255, 0.1) inset;
}

.content-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.5s ease;
}

@media (min-width: 992px) {
  .content-card-image-horizontal {
    height: 100%;
    min-height: 280px;
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
}

.content-card:hover .content-card-image {
  transform: scale(1.05);
}

.content-card-body {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  position: relative;
  z-index: 1;
  /* Keep above scaled image */
}

.content-card-body h3 {
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.content-card-body p.text-muted {
  color: var(--color-accent-soft) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.content-card-body p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Project Stack */
.project-stack {
  display: grid;
  gap: 3rem;
}

.project-card {
  padding: 2.5rem;
}

.project-media {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.project-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.03);
}

/* Project Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-gallery-item {
  display: block;
  color: var(--color-ink);
  text-decoration: none;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
}

.project-gallery-item span {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.project-gallery-item:hover span {
  transform: translateY(0);
  opacity: 1;
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.btn-accent {
  color: #000;
  background: var(--color-accent);
  border: none;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.btn-accent:hover {
  color: #000;
  background: #00ffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.6);
}

.btn-accent:hover::before {
  left: 100%;
}

.btn-accent-soft {
  color: #fff;
  background: linear-gradient(45deg, var(--color-accent-soft), #9b4dff);
  border: none;
  box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

.btn-accent-soft:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(112, 0, 255, 0.6);
}

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

.btn-outline-accent:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.btn-outline-dark {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-dark:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Chat Modal Styles */
.chat-modal-content {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.1);
  color: var(--color-ink);
}

.chat-modal-content .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 1.5rem;
}

.chat-messages-container {
  height: 50vh;
  min-height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  margin-bottom: 0.5rem;
  animation: message-appear 0.3s ease forwards;
}

@keyframes message-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-message {
  justify-content: flex-end;
}

.bot-message {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.user-bubble {
  background: linear-gradient(135deg, var(--color-accent-soft), #9b4dff);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.2);
}

.bot-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 0.25rem;
}

.greeting-bubble {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05) inset;
}

.chat-input-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 0.25rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.chat-input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 0.75rem 3.5rem 0.75rem 1.25rem;
  box-shadow: none !important;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-submit-btn {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
  background: rgba(0, 240, 255, 0.1) !important;
}

.chat-submit-btn:hover {
  background: rgba(0, 240, 255, 0.2) !important;
  transform: translateY(-50%) scale(1.05);
}

.typing-dots span {
  display: inline-block;
  animation: typing 1.4s infinite;
  margin: 0 1px;
}

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

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Embeds */
.embed-shell {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.demo-frame,
.resume-frame {
  width: 100%;
  border: 0;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  background: var(--color-surface);
}

.demo-frame {
  min-height: 48rem;
}

.resume-frame {
  min-height: 80vh;
}

/* Footer */
.site-footer {
  background: rgba(5, 8, 10, 0.9);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  padding: 3rem 0;
  box-shadow: 0 -10px 30px rgba(0, 240, 255, 0.05);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-dark-soft);
  border-radius: 5px;
}

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

/* Media Queries */
@media (max-width: 991.98px) {

  .section-dark,
  .section-light {
    padding: 6rem 0;
  }

  .demo-frame {
    min-height: 36rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 1rem;
  }

  .section-dark,
  .section-light {
    padding: 5rem 0;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .content-card-image {
    height: 220px;
  }

  .demo-frame {
    min-height: 30rem;
  }

  .resume-frame {
    min-height: 70vh;
  }
}