:root {
  --bg: #05030b;
  --purple: #9b5cff;
  --blue: #4cc9f0;
  --maroon: #a10054;
  --glass: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --muted: #b6bed5;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-bg: #05030b;
  --card-border: rgba(155, 92, 255, 0.25);
  --header-bg: rgba(5, 3, 11, 0.4);
  --header-scrolled-bg: rgba(5, 3, 11, 0.7);
  --input-bg: rgba(5, 3, 11, 0.6);
  --chip-bg: rgba(5, 3, 11, 0.45);
  --gradient-1: rgba(155, 92, 255, 0.12);
  --gradient-2: rgba(76, 201, 240, 0.08);
  --footer-bg: linear-gradient(
    180deg,
    rgba(5, 3, 11, 0.6),
    rgba(5, 3, 11, 0.9)
  );
  --footer-border: rgba(255, 255, 255, 0.1);
  --font-sans: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

[data-theme="light"] {
  --bg: #fafbfc;
  --purple: #8b5cf6;
  --blue: #06b6d4;
  --maroon: #f43f5e;
  --glass: rgba(255, 255, 255, 0.9);
  --text: #1e293b;
  --muted: #475569;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(250, 251, 252, 0.85);
  --header-scrolled-bg: rgba(250, 251, 252, 0.98);
  --input-bg: #ffffff;
  --chip-bg: #f1f5f9;
  --gradient-1: rgba(139, 92, 246, 0.06);
  --gradient-2: rgba(6, 182, 212, 0.04);
  --footer-bg: linear-gradient(
    180deg,
    rgba(250, 251, 252, 0.95),
    rgba(241, 245, 249, 1)
  );
  --footer-border: rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  /* Removed heavy global transitions for better performance */
}

/* Lenis Smooth Scroll Styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Performance optimizations for smooth scrolling */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  -webkit-overflow-scrolling: touch;
}

/* GPU acceleration and containment for key elements */
.site-header {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, background;
}

.section {
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style paint;
}

/* Optimize animations */
.hero-visual,
.hero-content,
.skill-card,
.tree-item,
.timeline-content {
  will-change: transform, opacity;
}

/* Reduce paint areas */
.pfp-frame,
.gradient-orbs,
.wave-divider {
  contain: strict;
}

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

/* Living Aurora Background */
.aurora-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: aurora-move 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--purple);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--blue);
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: var(--maroon);
  opacity: 0.2;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes aurora-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, 10%) scale(1.1);
  }
  66% {
    transform: translate(-5%, 5%) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Light Theme Adjustment */
[data-theme="light"] .aurora-blob {
  opacity: 0.15;
  filter: blur(100px);
}

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

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, var(--gradient-1), transparent),
    radial-gradient(circle at 20% 20%, var(--gradient-2), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
}

body.loaded {
  opacity: 1;
  animation: fadeIn 0.6s ease-out forwards;
}

/* Page Load Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Motion Blur Effect for Navigation */
body.is-navigating main {
  filter: url(#vertical-blur); /* SVG Vertical Blur */
  transition: filter 0.1s ease; /* Fast transition */
}

main {
  transition: filter 0.2s ease;
}

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

/* Apply load animations to hero elements */
body.loaded .hero-visual {
  animation: slideUp 0.7s ease-out 0.1s forwards;
  opacity: 0;
}

body.loaded .hero-content {
  animation: slideUp 0.7s ease-out 0.2s forwards;
  opacity: 0;
}

body.loaded .site-header {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

canvas#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
  pointer-events: none;
}

canvas#particle-canvas.ready {
  opacity: 0.4;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}

/* ===== REDESIGNED NAVBAR ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  background: rgba(5, 3, 11, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateZ(0);
  will-change: transform;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 3, 11, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Logo with pill style */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;

  /* Pill styles */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.4rem 1rem 0.4rem 0.4rem;

  transition: all 0.3s ease;
}

[data-theme="light"] .logo {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.logo:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

[data-theme="light"] .logo:hover {
  background: rgba(0, 0, 0, 0.05);
}

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

.logo-text {
  letter-spacing: 0.05em;
}

/* Center Navigation */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.35rem;
}

[data-theme="light"] .main-nav {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.main-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav .nav-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.main-nav .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .main-nav .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.main-nav .nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .main-nav .nav-link.active {
  background: rgba(0, 0, 0, 0.08);
}

.main-nav .nav-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Theme toggle in nav */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin-left: 0.25rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.sun-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: block;
}

[data-theme="light"] .moon-icon {
  display: none;
}

/* Contact Button */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.25s ease;
}

[data-theme="light"] .contact-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.contact-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

[data-theme="light"] .contact-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.contact-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

main {
  padding-top: 6rem;
}

.section {
  padding: 6rem 5vw;
  position: relative;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

/* Grid Background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

[data-theme="light"] .hero-grid-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Hero Info Bar */
.hero-info-bar {
  position: absolute;
  top: 7rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  width: min(1200px, 92vw);
  padding: 0.5rem 0;
  z-index: 10;
  pointer-events: none; /* Let clicks pass through */
}

.hero-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-self: start;
  pointer-events: auto;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-location .flag {
  font-size: 1.2rem;
}

.hero-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-time .time-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-time .time-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .hero-info-bar {
    top: 0.5rem;
    padding: 0.25rem 1rem;
    display: flex;
    justify-content: center; /* Center on mobile */
    gap: 0;
  }

  .hero-spacer {
    display: none;
  }

  .hero-info-group {
    align-items: center; /* Center items stack */
  }

  .hero-location {
    font-size: 0.8rem;
  }

  .hero-location .flag {
    font-size: 1rem;
  }

  .hero-time .time-label {
    display: none;
  }

  .hero-time .time-value {
    font-size: 0.85rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem; /* Reduced gap */
  align-items: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Hero Visual (Left Side) */
.hero-visual {
  display: flex;
  justify-content: flex-end; /* Moved to right to reduce gap */
  align-items: center;
}

.pfp-frame {
  width: clamp(280px, 30vw, 400px);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
}

.pfp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Content (Right Side) */
.hero-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Prevent children from stretching */
}

.hero-content .eyebrow {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.highlight-name {
  color: var(--blue);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0.5rem 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  display: block;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="light"] .hero-title .highlight {
  background: linear-gradient(90deg, #7c3aed, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title .emoji {
  font-size: clamp(2.5rem, 5vw, 4rem);
  -webkit-text-fill-color: initial;
  filter: drop-shadow(0 0 20px rgba(244, 114, 182, 0.4));
}

.hero-role-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(155, 92, 255, 0.3);
  position: relative;
  top: -2px;
}

.hero-cta-btn:hover {
  background: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 92, 255, 0.5);
}

/* Hero Social Icons */
.hero-socials-container {
  display: inline-block;
  margin-top: 0.5rem;
}

.hero-socials {
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

[data-theme="light"] .hero-socials {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.hero-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0fdf4; /* Off-white/cream color from reference */
  color: #1a1a1a; /* Dark icon color */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.hero-socials a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Specific hover colors if desired, or keep uniform dark */
.hero-socials a:hover {
  background: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-visual {
    order: -1; /* Ensure image is on top on mobile */
  }

  .hero-content {
    align-items: center; /* Center align on mobile */
  }

  .hero-title .highlight {
    justify-content: center;
  }

  .pfp-frame {
    width: clamp(250px, 60vw, 350px);
  }
}

button,
.primary,
.ghost {
  font-family: inherit;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

button:focus-visible,
.primary:focus-visible,
.ghost:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.primary {
  background: linear-gradient(120deg, var(--purple), var(--blue));
  color: var(--text);
  box-shadow: 0 4px 12px rgba(155, 92, 255, 0.3);
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 20px rgba(76, 201, 240, 0.3);
}

/* ===== NEW ABOUT SECTION ===== */
.about-section {
  padding: 6rem 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Bio Column */
.about-bio {
  position: sticky;
  top: 120px;
}

@media (max-width: 1024px) {
  .about-bio {
    position: static;
  }
}

.about-bio h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 20%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(155, 92, 255, 0.2));
  letter-spacing: -0.02em;
}

.bio-content {
  margin-bottom: 2.5rem;
}

.bio-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.bio-content strong {
  color: var(--text);
  font-weight: 600;
}

.highlight-name {
  color: var(--purple);
  font-weight: 600;
}

.bio-philosophy {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(155, 92, 255, 0.1),
    rgba(76, 201, 240, 0.05)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--purple);
  border-radius: 0 1rem 1rem 0;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: var(--text);
  line-height: 1.7;
}

.bio-philosophy:hover {
  transform: translateX(10px);
  background: rgba(155, 92, 255, 0.15);
  border-color: rgba(155, 92, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(155, 92, 255, 0.1);
}

.philosophy-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.philosophy-icon {
  width: 18px;
  height: 18px;
  color: var(--purple);
  filter: drop-shadow(0 0 8px var(--purple));
}

.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Skills Column */
.about-skills {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
}

[data-theme="light"] .about-bio h2 {
  background: linear-gradient(135deg, var(--text) 20%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(155, 92, 255, 0.1));
}

[data-theme="light"] .bio-philosophy {
  background: linear-gradient(
    135deg,
    rgba(155, 92, 255, 0.05),
    rgba(76, 201, 240, 0.03)
  );
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .about-skills {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

.skills-heading {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

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

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

.skill-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(155, 92, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(155, 92, 255, 0.08);
}

[data-theme="light"] .skill-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .skill-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.skill-card-wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .skill-card-wide {
    grid-column: span 1;
  }
}

.skill-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.skill-icon svg {
  width: 100%;
  height: 100%;
}

.skill-card h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* Tech badges inside skill cards */
.skill-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(155, 92, 255, 0.3);
  color: var(--text);
  transform: translateY(-1px);
}

.tech-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

[data-theme="light"] .skill-tech-stack {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tech-badge {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-badge:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--purple);
}

/* ===== EXPERIENCE SECTION ===== */

.tech-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.panel-frontend {
  background: rgba(155, 92, 255, 0.08);
}

.panel-backend {
  background: rgba(161, 0, 84, 0.1);
}

.panel-ops {
  background: rgba(76, 201, 240, 0.1);
}

[data-theme="light"] .panel-frontend {
  background: rgba(155, 92, 255, 0.06);
}

[data-theme="light"] .panel-backend {
  background: rgba(161, 0, 84, 0.06);
}

[data-theme="light"] .panel-ops {
  background: rgba(76, 201, 240, 0.06);
}

.tech-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.9rem;
}

.tech-chip {
  position: relative;
  border: 1px solid var(--card-border);
  background: var(--chip-bg);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tech-chip:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 4px 10px rgba(76, 201, 240, 0.15);
}

.tech-chip img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.tech-chip::after {
  content: attr(data-tech);
  position: absolute;
  bottom: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
}

.tech-chip:hover,
.tech-chip:focus-visible {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5),
    inset 0 0 25px rgba(255, 255, 255, 0.08);
}

.tech-chip:hover img,
.tech-chip:focus-visible img {
  transform: scale(1.15) rotate(-4deg);
}

.tech-chip.active {
  animation: chipPulse 0.6s ease;
}

@keyframes chipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(76, 201, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
  }
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.experience h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.experience-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 0.35rem;
}

[data-theme="light"] .experience-tabs {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Sliding indicator background */
.tab-indicator {
  position: absolute;
  height: calc(100% - 0.7rem);
  width: calc(50% - 0.35rem);
  background: var(--purple);
  border-radius: 100px;
  top: 0.35rem;
  left: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 4px 15px rgba(155, 92, 255, 0.4);
}

.tab-indicator.slide-right {
  transform: translateX(100%);
}

.exp-tab {
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.exp-tab:hover {
  color: var(--text);
}

.exp-tab.active {
  color: #fff;
}

[data-theme="light"] .exp-tab.active {
  color: #fff;
}

.experience-content {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3rem;
}

[data-theme="light"] .experience-content {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Panel switching with animation */
.exp-panel {
  display: none;
}

.exp-panel.active {
  display: block;
  animation: panelSlideFromRight 0.5s ease-out forwards;
}

.exp-panel.active.slide-left {
  animation: panelSlideFromLeft 0.5s ease-out forwards;
}

.exp-panel.active.slide-right {
  animation: panelSlideFromRight 0.5s ease-out forwards;
}

@keyframes panelSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes panelSlideFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 2.73rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  border-radius: 2px;
  transform: translateX(-50%);
}

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

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

/* Timeline icon - supports logo images */
.timeline-icon {
  position: absolute;
  left: -4rem;
  top: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--bg);
  border: 3px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.3);
  overflow: hidden;
}

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

[data-theme="light"] .timeline-icon {
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(8px);
  border-color: rgba(155, 92, 255, 0.3);
}

[data-theme="light"] .timeline-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .timeline-content:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.timeline-content h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-institute {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0.25rem 0 0.25rem;
  opacity: 0.9;
}

.timeline-role {
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.timeline-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .experience h2 {
    font-size: 2rem;
  }

  .experience-tabs {
    width: 100%;
  }

  .exp-tab {
    flex: 1;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .experience-content {
    padding: 2rem 1.5rem;
  }

  .timeline {
    padding-left: 4rem;
  }

  .timeline::before {
    left: 1.25rem;
  }

  .timeline-icon {
    left: -3rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }
}

/* Scroll animations disabled for performance - elements visible by default */

.projects {
  position: relative;
}

.projects-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.projects-header h2 {
  margin-bottom: 0;
}

.view-all-link {
  color: var(--purple);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(155, 92, 255, 0.3);
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* Sticky Scroll Projects */
.project-tree {
  position: relative;
  max-width: 1300px; /* Wider container */
  margin: 0 auto;
  padding-bottom: 10vh;
}

/* Remove the vertical line for sticky layout */
.project-tree::before {
  display: none;
}

.tree-item {
  position: sticky;
  top: 15vh;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* More balanced split */
  gap: 2rem;
  padding: 0;
  margin-bottom: 20vh;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  min-height: 320px; /* Thinner height */
  transition: transform 0.3s ease;
}

/* Stacking Logic */
.tree-item:nth-child(1) {
  top: 15vh;
  z-index: 1;
}
.tree-item:nth-child(2) {
  top: 17vh;
  z-index: 2;
}
.tree-item:nth-child(3) {
  top: 19vh;
  z-index: 3;
}
.tree-item:nth-child(4) {
  top: 21vh;
  z-index: 4;
}

/* Remove old tree elements */
.tree-branch,
.tree-node,
.tree-item::before {
  display: none;
}

/* Content Side */
.tree-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: none;
  max-width: 100%;
}

.tree-item:hover .tree-content {
  max-width: 100%;
  background: transparent;
  border-color: transparent;
}

.tree-number {
  font-size: 4rem;
  opacity: 0.1;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1;
}

.tree-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.project-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.tree-tags {
  margin-bottom: 2rem;
}

.tree-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.tree-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tree-links a:first-child {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.tree-links a:first-child:hover {
  background: transparent;
  color: var(--text);
}

.tree-links a:last-child {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

.tree-links a:last-child:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* Preview Side (Image) */
.tree-preview {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: none;
  border-left: 1px solid var(--card-border);
  border-radius: 0;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  padding: 2rem; /* Add padding to frame the image */
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-item:hover .tree-preview {
  transform: none;
  box-shadow: none;
  border-color: var(--card-border);
}

.tree-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Show full image */
  object-position: center;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

.tree-item:hover .tree-preview img {
  transform: scale(1.02); /* Subtle zoom on hover */
}

.preview-overlay {
  display: none;
}

/* Mobile: Disable Sticky */
@media (max-width: 900px) {
  .project-tree {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 0;
  }

  .tree-item {
    position: relative;
    top: auto !important;
    margin-bottom: 0;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tree-preview {
    height: 250px;
    border-left: none;
    border-top: 1px solid var(--card-border);
  }

  .tree-content {
    padding: 2rem;
  }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.04),
      transparent 40%
    ),
    var(--card-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 92, 255, 0.3);
}

.quote-icon {
  color: var(--purple);
  opacity: 0.8;
}

.quote-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  flex-grow: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(155, 92, 255, 0.3);
}

.client-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.client-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Skill Card with Spotlight Effect */
.skill-card,
.project-card-full {
  background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.06),
      transparent 40%
    ),
    var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.1s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.skill-card::before,
.project-card-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.skill-card:hover::before,
.project-card-full:hover::before {
  opacity: 1;
}

.skill-card > *,
.project-card-full > * {
  position: relative;
  z-index: 1;
}

.skill-card:hover,
.project-card-full:hover {
  border-color: rgba(155, 92, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .skill-card,
[data-theme="light"] .project-card-full {
  background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 0, 0, 0.03),
      transparent 40%
    ),
    #ffffff;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border-color: rgba(76, 201, 240, 0.3);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-content h3 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.blog-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 0.6rem;
  color: var(--blue);
}

/* ===== CONTACT SECTION REDESIGN ===== */
.contact {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 120px; /* Fix for navbar covering content */
}

.section-header {
  text-align: center;
  margin-bottom: 3rem; /* Reduced from 4rem */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #b6bed5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--purple);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(155, 92, 255, 0.5);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* Adjusted ratio */
  gap: 3rem; /* Reduced gap */
  max-width: 1100px; /* Slightly tighter width */
  margin: 0 auto;
  align-items: start; /* Align to top */
}

/* Left Column */
.contact-content {
  text-align: left;
  padding-top: 1rem; /* Visual alignment with form */
}

.contact-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
  line-height: 1.2;
}

.contact-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 95%;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-box {
  width: 40px; /* Smaller icon box */
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.3s ease;
}

.contact-item:hover .icon-box {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(155, 92, 255, 0.4);
}

.icon-box svg {
  width: 18px;
  height: 18px;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.social-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-btn {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .social-btn:hover {
  background: var(--purple);
  color: #fff;
}

/* Right Column (Form) */
.contact-form-wrapper {
  background: rgba(20, 20, 20, 0.6);
  padding: 2rem; /* Reduced padding */
  padding-bottom: 1.5rem; /* Specifically reduced bottom padding */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* Tighter gap */
  margin: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  max-width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem 1rem; /* Smaller padding */
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.form-group textarea {
  min-height: 100px; /* Reduced height */
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #fff;
}

.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: none;
  border-radius: 100px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(155, 92, 255, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 92, 255, 0.5);
  filter: brightness(1.1);
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-status.success {
  opacity: 1;
  transform: translateY(0);
  color: var(--blue);
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.3);
}

.form-status.error {
  opacity: 1;
  transform: translateY(0);
  color: var(--maroon);
  background: rgba(161, 0, 84, 0.1);
  border: 1px solid rgba(161, 0, 84, 0.3);
}

/* Responsive */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-content {
    text-align: center;
  }

  .contact-text {
    margin: 0 auto 2.5rem;
  }

  .contact-details {
    align-items: center;
  }

  .social-buttons {
    justify-content: center;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

/* Scroll Reveal Animations - Optimized */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Staggered Delays */
.stagger-1 {
  transition-delay: 50ms;
}
.stagger-2 {
  transition-delay: 100ms;
}
.stagger-3 {
  transition-delay: 150ms;
}
.stagger-4 {
  transition-delay: 200ms;
}
.stagger-5 {
  transition-delay: 250ms;
}

/* Hero Entrance Animation */
@keyframes hero-enter {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Styles */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    transform: none;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav .nav-link {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav .nav-link svg {
    width: 20px;
    height: 20px;
  }

  .theme-toggle {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .contact-btn {
    display: none;
  }
}

/* Disable hover effects on touch devices for better performance */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover {
    transform: none;
    min-height: 220px;
  }

  .tech-chip:hover,
  .tech-chip:focus-visible {
    transform: none;
    border-color: var(--card-border);
    box-shadow: var(--shadow);
  }

  .tech-chip:hover img,
  .tech-chip:focus-visible img {
    transform: none;
  }

  .testimonial-card:hover,
  .blog-card:hover {
    transform: none;
  }

  .tech-panel.visible:hover {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }

  /* Disable spotlight effect on mobile */
  .project-card,
  .tech-chip,
  .testimonial-card {
    background: var(--card-bg) !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding-top: 5rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-visual {
    align-self: center;
  }

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

  .pfp-frame {
    width: clamp(250px, 70vw, 350px);
  }

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

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.6rem;
  }

  .tech-chip {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .tech-chip img {
    width: 24px;
    height: 24px;
  }

  .project-card {
    min-height: 250px;
  }

  .project-card:hover {
    transform: translateX(0) scale(1.01);
    min-height: 380px;
  }

  .card-content {
    padding: 0.8rem;
  }

  .card-tags {
    gap: 0.4rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions button,
  .hero-actions .primary,
  .hero-actions .ghost {
    width: 100%;
  }

  .project-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }
}

/* Minimal Footer */
.site-footer {
  padding: 2.5rem 1rem;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
}

.footer-social-icons a:nth-child(1) {
  color: #0a66c2;
}

.footer-social-icons a:nth-child(2) {
  color: var(--text);
}

.footer-social-icons a:nth-child(3) {
  color: #ea4335;
}

.footer-social-icons a:nth-child(4) {
  color: #e57373;
}

.footer-social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
  filter: brightness(1.2);
}

.footer-social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.footer-credit {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-credit .credit-name {
  color: var(--blue);
  font-weight: 600;
  font-family: var(--font-mono);
}

.footer-copyright {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  margin: 0;
  opacity: 0.6;
}

[data-theme="light"] .footer-social-icons {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ===== MODERN SCROLL-TO-TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(155, 92, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(155, 92, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
  box-shadow: 
    0 0 20px rgba(155, 92, 255, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(155, 92, 255, 0.1);
  overflow: hidden;
}

/* Inner glow ring */
.scroll-to-top::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.4), rgba(76, 201, 240, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Animated border glow */
.scroll-to-top::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--purple),
    var(--blue),
    transparent
  );
  opacity: 0;
  animation: borderSpin 3s linear infinite;
  z-index: -1;
}

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

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

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(155, 92, 255, 0.25);
  border-color: rgba(155, 92, 255, 0.5);
  box-shadow: 
    0 0 30px rgba(155, 92, 255, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 0 25px rgba(155, 92, 255, 0.15);
}

.scroll-to-top:hover::before {
  opacity: 1;
}

.scroll-to-top:hover::after {
  opacity: 0.6;
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

.scroll-to-top:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* Arrow styling */
.scroll-to-top {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
}

.scroll-to-top:hover {
  color: #ffffff;
}

/* Light theme */
[data-theme="light"] .scroll-to-top {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--purple);
  box-shadow: 
    0 0 15px rgba(139, 92, 246, 0.15),
    0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-to-top:hover {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 
    0 0 25px rgba(139, 92, 246, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}

/* ===== VISUAL ENHANCEMENTS ===== */

/* 1. Living Gradient Orbs Background */
.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  will-change: transform;
}

.orb-1 {
  top: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
  bottom: -20%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  animation: orbFloat2 30s ease-in-out infinite;
  animation-delay: -10s;
}

.orb-3 {
  top: 40%;
  left: 50%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--maroon) 0%, transparent 70%);
  opacity: 0.1;
  animation: orbFloat3 22s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes orbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(5%, 10%) scale(1.1);
  }
  50% {
    transform: translate(10%, 5%) scale(0.95);
  }
  75% {
    transform: translate(-5%, 8%) scale(1.05);
  }
}

@keyframes orbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-8%, -5%) scale(1.08);
  }
  66% {
    transform: translate(5%, -10%) scale(0.92);
  }
}

@keyframes orbFloat3 {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-50%, -15%) scale(1.15);
  }
}

/* Light theme adjustments */
[data-theme="light"] .gradient-orb {
  opacity: 0.2;
  filter: blur(120px);
}

/* 3. Hero Profile Picture Glow Pulse */
.pfp-frame {
  position: relative;
}

.pfp-glow {
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--blue) 50%,
    var(--maroon) 100%
  );
  opacity: 0.6;
  filter: blur(40px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

[data-theme="light"] .pfp-glow {
  opacity: 0.3;
  filter: blur(50px);
}

/* 4. Wave Dividers */
.wave-divider {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave-divider path {
  fill: var(--purple);
  opacity: 0.15;
  animation: waveFlow 8s ease-in-out infinite;
}

.wave-divider path:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 10s;
}

.wave-divider path:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 12s;
}

@keyframes waveFlow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2%);
  }
}

[data-theme="light"] .wave-divider path {
  fill: var(--purple);
  opacity: 0.1;
}

@media (max-width: 768px) {
  .wave-divider {
    height: 50px;
  }
}

/* 5. Animated Text Gradient on Hero Title */
.hero-title .highlight {
  background: linear-gradient(
    90deg,
    #a78bfa 0%,
    #f472b6 25%,
    #4cc9f0 50%,
    #f472b6 75%,
    #a78bfa 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: textGradientFlow 4s linear infinite;
}

@keyframes textGradientFlow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

[data-theme="light"] .hero-title .highlight {
  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #db2777 25%,
    #0891b2 50%,
    #db2777 75%,
    #7c3aed 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textGradientFlow 4s linear infinite;
}

/* 6. Enhanced Glassmorphism Cards with Spotlight */
.skill-card,
.tree-content,
.timeline-content {
  position: relative;
  overflow: hidden;
}

.skill-card::before,
.tree-content::before,
.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(155, 92, 255, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.skill-card:hover::before,
.tree-content:hover::before,
.timeline-content:hover::before {
  opacity: 1;
}

.skill-card > *,
.tree-content > *,
.timeline-content > * {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .skill-card::before,
[data-theme="light"] .tree-content::before,
[data-theme="light"] .timeline-content::before {
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(139, 92, 246, 0.1),
    transparent 40%
  );
}

/* 7. Enhanced Hero Visual Parallax (will be controlled by JS) */
.hero-visual {
  transition: transform 0.1s ease-out;
}

.hero-content {
  transition: transform 0.1s ease-out;
}

/* 8. Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb,
  .pfp-glow,
  .wave-divider path,
  .hero-title .highlight {
    animation: none !important;
    transition: none !important;
  }

  .pfp-glow {
    opacity: 0.4;
  }

  .hero-title .highlight {
    background-position: 0% center !important;
  }
}

/* Performance optimizations */
.gradient-orbs,
.pfp-glow {
  transform: translateZ(0);
  backface-visibility: hidden;
}
