/* =======================================================
   GLOBAL RESET
======================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0f1d;
  color: #e5e7eb;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =======================================================
   LIGHT THEME
======================================================= */
body.light-theme {
  background: #FFFFFF;
  color: #111827;
}

body.light-theme .bg-layers {
  display: none;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.light-theme .nav-menu a,
body.light-theme .dropdown-btn,
body.light-theme .theme-toggle-btn {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 0 14px rgba(0,0,0,0.1);
  color: #374151;
}

body.light-theme .nav-menu a:hover,
body.light-theme .dropdown:hover .dropdown-btn,
body.light-theme .theme-toggle-btn:hover {
  color: #111827;
  box-shadow: 0 0 28px rgba(94,181,249,0.3);
}

body.light-theme .dropdown-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
}

body.light-theme .dropdown-panel a {
  color: #374151;
}

body.light-theme .dropdown-panel a:hover {
  background: rgba(0,0,0,0.05);
}

body.light-theme .hero-text h1 {
  color: #111827;
}

body.light-theme .hero-sub {
  color: #6b7280;
}

body.light-theme .card {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
  color: #374151;
}

body.light-theme .about-card p,
body.light-theme .journey-list p,
body.light-theme .expertise-card ul,
body.light-theme .achievements-list,
body.light-theme .contact-sub {
  color: #6b7280;
}

body.light-theme .btn-secondary {
  color: #1f2937;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
}

body.light-theme .section-header p {
  color: #6b7280;
}

body.light-theme .footer {
  color: #6b7280;
}

body.light-theme .areas-content h4 {
  color: #1f2937;
}

body.light-theme .areas-content p {
  color: #374151;
}

body.light-theme .contact-pill {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  color: #1f2937;
}

body.light-theme .contact-pill:hover {
  border-color: rgba(94,181,249,0.7);
  box-shadow: 0 0 18px rgba(94,181,249,0.35);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.15);
  color: #111827;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

body.light-theme .project-card-body {
  background: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(0,0,0,0.06);
}

body.light-theme .project-card,
body.light-theme .project-card:link,
body.light-theme .project-card:visited {
  color: #111827;
}

body.light-theme .contact-form label {
  color: #374151;
}

body.light-theme .theme-toggle-btn .theme-icon {
  color: #1f2937;
}

/* =======================================================
   CONTAINERS
======================================================= */
.container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.2rem 0;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.section-header p {
  color: #9ca3af;
  font-size: 1rem;
  margin-bottom: 2.8rem;
}

/* =======================================================
   PROJECT DETAIL PAGE
======================================================= */
.project-summary {
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.project-summary-card {
  border-radius: 26px;
  padding: 2.4rem 2.6rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(147,51,234,0.16), transparent 55%);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 0 35px rgba(15,23,42,0.85);
}

.project-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: flex-start;
}

.project-title {
  font-size: 2.0rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.project-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  box-shadow: 0 0 16px rgba(94,181,249,0.8);
}

.project-summary-text {
  color: #9ca3af;
  margin-top: 1.4rem;
  max-width: 48ch;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  border-color: rgba(148,163,184,0.3);
  color: #e5e7eb;
  box-shadow: 0 0 14px rgba(148,163,184,0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.project-action-btn svg {
  flex-shrink: 0;
}

.project-action-btn:hover {
  border-color: #38bdf8;
  background: linear-gradient(120deg, rgba(56,189,248,0.18), rgba(168,85,247,0.18));
  box-shadow: 0 0 20px rgba(56,189,248,0.45);
  transform: translateY(-2px);
}

body.light-theme .project-action-btn {
  color: #0f172a;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

body.light-theme .project-action-btn:hover {
  border-color: rgba(56,189,248,0.8);
  background: linear-gradient(120deg, rgba(56,189,248,0.16), rgba(168,85,247,0.16));
  box-shadow: 0 0 16px rgba(56,189,248,0.25);
}

.project-summary-meta {
  border-radius: 22px;
  padding: 2.2rem 2.4rem 2.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 35px rgba(0,0,0,0.5);
}

.project-facts {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}

.project-fact-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  margin: 0.15rem 0.25rem 0 0;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.6);
  color: #e5e7eb;
}

.pill-success {
  background: rgba(34,197,94,0.18);
  border-color: rgba(74,222,128,0.75);
  color: #bbf7d0;
}

body.light-theme .project-fact-label {
  color: #6b7280;
}

body.light-theme .project-pill {
  background: rgba(15,23,42,0.08);
  border-color: rgba(148,163,184,0.6);
  color: #111827;
}

body.light-theme .pill-success {
  background: rgba(22,163,74,0.14);
  border-color: rgba(34,197,94,0.8);
  color: #166534;
}

.project-summary-facts {
  margin-top: 1.8rem;
}

.project-views-header {
  margin-bottom: 0.9rem;
}

.project-views-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.project-views-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 0%, rgba(94,181,249,0.3), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(168,85,247,0.28), transparent 55%);
  box-shadow: 0 0 12px rgba(56,189,248,0.7);
}

.project-views-icon svg {
  color: #e5e7eb;
}

.project-views-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cbd5e1;
}

.project-views-slider {
  position: relative;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
  transform: scale(0.98);
  transform-origin: center top;
}

.project-views-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 24px rgba(15,23,42,0.9),
    0 0 32px rgba(56,189,248,0.35);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.95));
  aspect-ratio: 16 / 9;
}

.project-view {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.project-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-views-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(15,23,42,0.9);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
  background: rgba(56,189,248,0.85);
  color: #020617;
}

.project-views-nav:hover {
  background: #60a5fa;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 20px rgba(56,189,248,0.8);
}

.project-views-nav-prev {
  left: -16px;
}

.project-views-nav-next {
  right: -16px;
}

.project-views-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.2rem;
}

.project-views-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(96,165,250,0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.project-views-dot.active {
  width: 22px;
  background: #60a5fa;
  transform: translateY(-1px);
}

.project-views-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  text-align: center;
  margin-top: 0.3rem;
}

.project-status-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

/* Light theme tweaks for Project Views */
body.light-theme .project-views-icon {
  background: radial-gradient(circle at 20% 0%, rgba(191,219,254,0.9), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(221,214,254,0.85), transparent 55%);
  box-shadow: 0 0 12px rgba(148,163,184,0.65);
}

body.light-theme .project-views-icon svg {
  color: #1f2937;
}

body.light-theme .project-views-title {
  color: #111827;
}

body.light-theme .project-views-slider .project-views-frame {
  box-shadow:
    0 0 16px rgba(148,163,184,0.5),
    0 0 26px rgba(96,165,250,0.45);
}

body.light-theme .project-views-nav {
  background: rgba(56,189,248,0.85);
  color: #020617;
  box-shadow: 0 0 18px rgba(148,163,184,0.6);
}

body.light-theme .project-views-nav:hover {
  background: #60a5fa;
  color: #ffffff;
}

body.light-theme .project-views-dot {
  background: rgba(148,163,184,0.6);
}

body.light-theme .project-views-dot.active {
  background: #2563eb;
}

body.light-theme .project-views-caption {
  color: #6b7280;
}

.project-navigation-wrap {
  border-top: 1px solid rgba(148,163,184,0.15);
  margin-top: 2.5rem;
  padding: 1.6rem 0 0;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.project-navigation.single-next {
  justify-content: flex-end;
}

.project-nav-link {
  text-decoration: none;
  color: #9ca3af;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-nav-link .nav-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.project-nav-link .nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
}

.project-nav-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.project-nav-link:hover .nav-title {
  color: #60a5fa;
}

.project-nav-link.next {
  text-align: right;
}

@media (max-width: 620px) {
  .project-navigation {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-nav-link.next {
    text-align: left;
  }
}

body.light-theme .project-navigation-wrap {
  border-top-color: rgba(0,0,0,0.06);
}

body.light-theme .project-nav-link {
  color: #475569;
}

body.light-theme .project-nav-link .nav-label {
  color: #6b7280;
}

body.light-theme .project-nav-link .nav-title {
  color: #0f172a;
}

body.light-theme .project-nav-link:hover .nav-title {
  color: #2563eb;
}

.project-view-badge {
  position: absolute;
  padding: 0.24rem 0.46rem;
  background: rgba(56, 189, 248, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.9);
  color: #0b1020;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  text-shadow: none;
}

.project-view-badge.top-left { top: 12px; left: 12px; }
.project-view-badge.top-right { top: 12px; right: 12px; }
.project-view-badge.bottom-left { bottom: 12px; left: 12px; }
.project-view-badge.bottom-right { bottom: 12px; right: 12px; }

.project-preview {
  padding-top: 0;
  padding-bottom: 4.5rem;
}

.dashboard-card {
  margin-top: 1.4rem;
}

.dashboard-card .section-title {
  margin-bottom: 1rem;
}

.dashboard-embed {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.dashboard-embed iframe {
  width: 100%;
  max-width: 1200px;
  height: 620px;
  border-radius: 18px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.55),
    0 0 28px rgba(94,181,249,0.35);
}

.project-preview-card {
  border-radius: 26px;
  padding: 2.4rem 2.6rem 2.2rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(147,51,234,0.16), transparent 55%);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 0 35px rgba(15,23,42,0.85);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.project-preview-card:hover {
  border-color: rgba(94,181,249,0.9);
  box-shadow: 0 0 40px rgba(94,181,249,0.7);
  transform: translateY(-2px);
}

.project-preview-media {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.9rem;
}

.project-preview-main {
  position: relative;
  width: 72%;
  max-width: 720px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(15,23,42,0.9),
    0 0 40px rgba(56,189,248,0.45);
  z-index: 2;
}

.project-preview-main img {
  display: block;
  width: 100%;
  height: auto;
}

.project-preview-side {
  position: absolute;
  width: 38%;
  max-width: 340px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
  opacity: 0.9;
}

.project-preview-side img {
  display: block;
  width: 100%;
  height: auto;
}

.project-preview-side-top {
  right: -4%;
  top: -8%;
  transform: rotate(6deg);
}

.project-preview-side-bottom {
  right: -6%;
  bottom: -8%;
  transform: rotate(-4deg);
}

.project-preview-caption {
  max-width: 70ch;
}

.project-preview-caption p {
  color: #9ca3af;
}

.project-preview-caption p + p {
  margin-top: 0.75rem;
}

.project-preview-note {
  font-size: 0.9rem;
  color: #a5b4fc;
}

.project-info {
  padding-top: 0;
  padding-bottom: 5rem;
}

.project-info-card {
  border-radius: 26px;
  padding: 2.4rem 2.6rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(147,51,234,0.16), transparent 55%);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 0 35px rgba(15,23,42,0.85);
  position: relative;
}

.project-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.1fr);
  gap: 3.2rem;
  position: relative;
}

/* removed vertical divider line between columns */

.project-info-main h2 {
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}

.project-info-main p {
  color: #b3b8c7;
  margin-bottom: 1rem;
}

.project-info-main h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.project-bullets {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
  color: #cbd5e1;
}

.project-bullets li::before {
  content: "•";
  margin-right: 0.5rem;
  color: #60a5fa;
}

.project-info-sidebar {
  position: relative;
  z-index: 1;
}

.info-group + .info-group {
  margin-top: 1.8rem;
}

.info-group h4 {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

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

.info-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.7);
  color: #e5e7eb;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.info-list li::before {
  content: "▹";
  margin-right: 0.45rem;
  color: #38bdf8;
}

/* Light theme text adjustments for project info */
body.light-theme .project-info-main p {
  color: #374151;
}

body.light-theme .project-bullets {
  color: #374151;
}

body.light-theme .info-list {
  color: #374151;
}

body.light-theme .info-group h4 {
  color: #6b7280;
}

body.light-theme .info-pill {
  background: rgba(15,23,42,0.06);
  border-color: rgba(148,163,184,0.7);
  color: #111827;
}

/* Demo blocks for the scroll beam */
.block {
  height: 120vh;
  color: white;
  display: flex;
  align-items: center;
  font-size: 3rem;
  padding-left: 60px;
  background: #0a0f1d;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.block::after {
  content: attr(class);
  position: absolute;
  bottom: 20px;
  right: 60px;
  font-size: 0.9rem;
  opacity: 0.15;
}

#dataBeam.beam-wide {
  width: 7px;
}

#dataBeam.beam-turquoise {
  background: linear-gradient(
    to bottom,
    rgba(46, 231, 255, 0.95),
    rgba(46, 231, 255, 0.15)
  );
}

#dataBeam.beam-pulse {
  box-shadow:
    0 0 18px rgba(56, 189, 248, 0.8),
    0 0 40px rgba(129, 140, 248, 0.8);
  animation: beamPulse 0.8s ease-in-out infinite alternate;
}

@keyframes beamPulse {
  0% {
    box-shadow:
      0 0 16px rgba(56, 189, 248, 0.7),
      0 0 28px rgba(129, 140, 248, 0.5);
    opacity: 0.9;
  }
  100% {
    box-shadow:
      0 0 26px rgba(56, 189, 248, 1),
      0 0 50px rgba(129, 140, 248, 0.9);
    opacity: 1;
  }
}

/* Burst effect when switching lanes */
#dataBeam::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(56,189,248,0.9) 0%, rgba(56,189,248,0.0) 65%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

#dataBeam.beam-burst::after {
  animation: beamBurst 0.35s ease-out forwards;
}

@keyframes beamBurst {
  0% {
    opacity: 0.85;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* Firework at the bottom */
#dataBeam::before,
#dataBeam::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 80px;
  border-radius: 999px;
  background: linear-gradient(
    to top,
    rgba(56,189,248,1),
    rgba(56,189,248,0)
  );
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom center;
}

/* center beam = main element; ::before / ::after = side rays */
#dataBeam.beam-firework {
  animation: beamFlashCenter 0.45s ease-out forwards;
}

#dataBeam.beam-firework::before {
  animation: beamShootLeft 0.55s ease-out forwards;
}

#dataBeam.beam-firework::after {
  animation: beamShootRight 0.55s ease-out forwards;
}

@keyframes beamFlashCenter {
  0% {
    box-shadow:
      0 0 20px rgba(56,189,248,0.9),
      0 0 40px rgba(56,189,248,0.7);
    opacity: 1;
  }
  40% {
    box-shadow:
      0 0 28px rgba(56,189,248,1),
      0 0 60px rgba(129,140,248,0.9);
    opacity: 1;
  }
  100% {
    box-shadow: none;
    opacity: 0;
  }
}

@keyframes beamShootLeft {
  0% {
    opacity: 1;
    transform: translateX(-50%) rotate(-35deg) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translate(-120%, -140%) rotate(-35deg) scaleY(0.2);
  }
}

@keyframes beamShootRight {
  0% {
    opacity: 1;
    transform: translateX(-50%) rotate(35deg) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translate(120%, -140%) rotate(35deg) scaleY(0.2);
  }
}

/* =======================================================
   BACKGROUND LAYERS
======================================================= */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -3;
}

/* glow gradient */
.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.22), transparent 60%);
}

/* vertical + horizontal grid */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
     linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
     linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* faded star dots */
.bg-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.3;
}

/* Scroll-triggered Neon Data Beam */
#dataBeam {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0, 150, 255, 0.9),
    rgba(0, 150, 255, 0.1)
  );
  border-radius: 20px;
  filter: blur(3px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.2s linear,
    width 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* =======================================================
   NAVBAR
======================================================= */
.navbar {
  position: sticky;
  top: 0;
  height: 78px;
  display: flex;
  align-items: center;
  background: rgba(10, 15, 29, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 99;
  transition: transform 0.3s ease-in-out;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.logo img,
.logo-img {
  width: 110px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.typewrite {
  font-size: 1.6rem;
  font-weight: 600;
  background: linear-gradient(90deg, #9c4bff, #6b4fff, #4dafff);
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
  display: inline-block;
}

.logo h1 {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.nav-menu a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.95rem;
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(12px);
  transition: all 0.28s ease;
  box-shadow: 0 0 14px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 28px rgba(94,181,249,0.55);
}

.nav-cta {
  text-decoration: none;
  color: #0a0f1d;
  background: linear-gradient(120deg, #60a5fa, #a78bfa);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(94,181,249,0.5);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 26px rgba(94,181,249,0.65);
}

/* toggler */
.theme-toggle-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(12px);
  transition: all 0.28s ease;
  box-shadow: 0 0 14px rgba(0,0,0,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 28px rgba(94,181,249,0.55);
}

.theme-icon {
  width: 20px;
  height: 20px;
  color: #cbd5e1;
}

.theme-toggle-btn:hover .theme-icon {
  color: #fff;
}

.hidden { display: none; }

/* dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-btn {
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(12px);
  transition: all 0.28s ease;
  box-shadow: 0 0 14px rgba(0,0,0,0.35);
  color: #cbd5e1;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-btn:hover, .dropdown:hover .dropdown-btn {
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 28px rgba(94,181,249,0.55);
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 15, 29, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 100;
  min-width: 200px;
}

.dropdown:hover .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 0.5rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  transition: background 0.2s ease;
}

.dropdown-panel a:hover {
  background: rgba(255,255,255,0.05);
}

.dropdown-panel a:last-child {
  border-bottom: none;
}

/* =======================================================
   HERO SECTION
======================================================= */
.hero {
  padding-top: 5rem;
  padding-bottom: 7rem;
  position: relative;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1.1rem 0.5rem 1.1rem;
  margin-bottom: 0.75rem;
  background: rgba(52, 242, 196, 0.12);
  border: 1px solid rgba(52, 242, 196, 0.7);
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #7efce0;
  box-shadow: 0 0 18px rgba(52, 242, 196, 0.25);
  backdrop-filter: blur(6px);
}

.badge-original {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(248, 113, 113, 0.75);
  background: rgba(248, 113, 113, 0.22);
  color: #ffe0e3;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.3);
}

.badge-original .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.18);
  display: inline-block;
  animation: badgePulse 1.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.35);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(251, 113, 133, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0);
    transform: scale(1);
  }
}

body.light-theme .badge-original {
  border-color: rgba(220, 38, 38, 0.75);
  background: rgba(248, 113, 113, 0.28);
  color: #7f1d1d;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.24);
}

body.light-theme .badge-original .dot {
  background: #dc2626;
}

.badge-floating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.badge-floating-outside {
  top: -40px;
  right: 4px;
}

.project-summary .badge-original {
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  gap: 0.35rem;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
}

.project-summary .badge-original .dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 5px rgba(251, 113, 133, 0.16);
}

.status-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2cf0c0;
  box-shadow: 0 0 0 rgba(52, 242, 196, 0.35);
  animation: statusPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.status-text {
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 242, 196, 0.5);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(52, 242, 196, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 242, 196, 0);
    transform: scale(1);
  }
}

body.light-theme .status-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.6);
  color: #0f766e;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

body.light-theme .status-dot {
  background: #10b981;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 3.2rem;
}

.hero-text h1 {
  font-size: clamp(1.5rem, 1.8vw + 1rem, 1.9rem);
  color: #fff;
  margin-bottom: 1.4rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 32ch;
  font-weight: 800;
}

.hero-title-gradient {
  background: linear-gradient(90deg, #38e5ff, #3a70ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inline-block;
}

.hero-sub {
  margin-bottom: 1.2rem;
  color: #b3b8c7;
  font-size: 1.02rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #5eb5f9, #7cc1ff);
  padding: 0.9rem 1.8rem;
  margin-top: 1.4rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0a0f1d;
  box-shadow: 0 0 18px rgba(94,181,249,0.45);
  transition: 0.25s;
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(94,181,249,0.75);
  transform: translateY(-2px);
}

/* hero photo */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: auto;
  transform: translateY(-10px);
  z-index: 2;
}

.hero-photo-frame {
  position: relative;
  padding: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.12), rgba(15,23,42,0.8));
  border: 1px solid rgba(94,181,249,0.35);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 18px 40px rgba(0,0,0,0.45);
}

.hero-photo-typing {
  position: absolute;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  pointer-events: none;
  padding: 0.35rem 0.75rem;
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(94,181,249,0.35);
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
  z-index: 4;
}

.hero-photo {
  width: 100%;
  border-radius: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 25px rgba(94,181,249,0.47);
}

.hero-photo-typing .typewrite {
  font-size: 0.85rem;
  color: #e5e7eb;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 1.0rem;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
  text-decoration: none;
}

.hero-photo-typing .typewrite::before {
  content: ">   ";
  color: #8905a0;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-photo-typing .wrap {
  border-right: 0.08em solid #7ee0ff;
  text-decoration: none;
}

.hero-photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle,
              rgba(94,181,249,0.55),
              rgba(168,85,247,0.4),
              transparent 70%);
  filter: blur(38px);
  border-radius: 50%;
  z-index: 1;
}

/* cloud overlay */
.hero-cloud {
  position: absolute;
  width: 520px;
  top: 18%;
  right: 5%;
  opacity: 0.25;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
}

.btn-hero-primary {
  background: linear-gradient(120deg, #22e6ff, #3a70ff);
  color: #0b1020;
  box-shadow: 0 0 18px rgba(47, 107, 255, 0.35), 0 0 28px rgba(45, 231, 255, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #43e0ff, #a855f7);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.55), 0 0 36px rgba(45, 231, 255, 0.4);
}

.btn-hero-ghost {
  background: transparent;
  border-color: rgba(168, 85, 247, 0.6);
  color: #c084fc;
  box-shadow: 0 0 0 rgba(168, 85, 247, 0);
}

.btn-hero-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.9);
  color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

body.light-theme .btn-hero-primary {
  color: #0f172a;
}

body.light-theme .btn-hero-ghost {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.6);
}

body.light-theme .btn-hero-ghost:hover {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.85);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.35);
}

.scroll-indicator-wrap {
  display: flex;
  justify-content: center;
  margin: -1rem 0 1.4rem;
}

.scroll-mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(148,163,184,0.7);
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(94,181,249,0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.scroll-mouse:hover {
  border-color: rgba(56,189,248,0.9);
  box-shadow: 0 0 18px rgba(56,189,248,0.5);
  transform: translateY(2px);
}

.scroll-wheel {
  width: 5px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: #22d3ee;
  animation: scrollWheel 1.8s ease-in-out infinite;
  opacity: 0;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  60% {
    transform: translateY(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

body.light-theme .scroll-mouse {
  border-color: rgba(17,24,39,0.22);
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

body.light-theme .scroll-mouse:hover {
  border-color: rgba(37,99,235,0.7);
  box-shadow: 0 0 16px rgba(59,130,246,0.35);
}

body.light-theme .scroll-wheel {
  background: #0ea5e9;
}

/* =======================================================
   ABOUT SECTION
======================================================= */
.section .container > p {
  margin-bottom: 1.2rem;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.4rem;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 2.4rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(0,0,0,0.45);
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-card p {
  margin-bottom: 1rem;
  color: #b7bcc9;
}

.about-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, rgba(94,181,249,0.3), rgba(168,85,247,0.3), rgba(94,181,249,0.3));
  margin: 1rem 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: #dbeafe;
  background: rgba(255,255,255,0.06);
  transition: all 0.25s ease;
  gap: 0.6rem;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(94,181,249,0.7);
  box-shadow: 0 0 18px rgba(94,181,249,0.35);
}

/* =======================================================
   PROFESSIONAL JOURNEY
======================================================= */
.journey-card {
  grid-column: span 2;
}

.journey-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skills-radar-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-radar-title::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 30%, #38bdf8 0%, #0ea5e9 35%, #1d4ed8 100%);
  box-shadow: 0 0 12px rgba(56,189,248,0.85);
  animation: skills-radar-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes skills-radar-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 10px rgba(56,189,248,0.6);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(56,189,248,1);
  }
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #60a5fa, #a78bfa);
  color: #0b1020;
  font-weight: 700;
  font-size: 0.85rem;
}

.journey-list {
  list-style: none;
  display: grid;
  gap: 1.4rem;
}

.journey-role {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.journey-meta {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.journey-list p {
  margin: 0;
  color: #b7bcc9;
}

.special-tags {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, rgba(94,181,249,0.3), rgba(168,85,247,0.3), rgba(94,181,249,0.3));
  margin: 1.5rem 0;
}

/* =======================================================
   CORE SKILLS (WITH ICONS)
======================================================= */

.skills-card {
  position: relative;
  z-index: 1;
}

.skills-expertise-row {
  display: grid;
  grid-template-columns: 2.8fr 2.2fr;
  gap: 2.4rem;
  grid-column: 1 / -1;
}

.expertise-card {
  padding: 2.1rem;
}

.skills-radar-card {
  grid-column: 1 / -1;
  position: relative;
  z-index: 3;
  min-height: 270px;
  padding-bottom: 1.5rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(147,51,234,0.16), transparent 55%);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: 0 0 35px rgba(15,23,42,0.85);
}

.skills-radar-grid {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.9rem;
}

.skills-radar-tile {
  position: relative;
  width: 195px;
  height: 96px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 35px rgba(0,0,0,0.5);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  pointer-events: auto;
}

.skills-radar-tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skills-radar-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94,181,249,0.2), rgba(147,51,234,0.2));
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: 0 0 20px rgba(15,23,42,0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.skills-radar-tile canvas {
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 0 12px rgba(94,181,249,0.45));
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.skills-radar-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(94,181,249,0.2), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(147,51,234,0.15), transparent 55%);
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
}

.skills-radar-tile:hover,
.skills-radar-tile.active {
  height: 160px;
  transform: scale(1.8, 2.0);
  background: rgba(15,23,42,0.9);
  box-shadow: 0 0 40px rgba(94,181,249,0.7);
  border-color: rgba(94,181,249,0.9);
  z-index: 10;
}

.skills-radar-tile:hover::before,
.skills-radar-tile.active::before {
  opacity: 0.6;
}

/* Light theme adjustments for Interactive Skills Radar and related About cards */
body.light-theme .about-card:not(.skills-radar-card),
body.light-theme .journey-card,
body.light-theme .skills-card,
body.light-theme .expertise-card,
body.light-theme #projects .card,
body.light-theme .contact-form.card,
body.light-theme .project-summary-card,
body.light-theme .project-preview-card,
body.light-theme .project-info-card {
  background: radial-gradient(circle at top left, rgba(191,219,254,0.6), transparent 55%),
              radial-gradient(circle at bottom right, rgba(221,214,254,0.55), transparent 55%);
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

/* Light theme adjustments for Interactive Skills Radar */
body.light-theme .skills-radar-card {
  background: radial-gradient(circle at top left, rgba(191,219,254,0.6), transparent 55%),
              radial-gradient(circle at bottom right, rgba(221,214,254,0.55), transparent 55%);
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

body.light-theme .skills-radar-tile {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

body.light-theme .skills-radar-label {
  color: #0a0f1d;
  background: linear-gradient(135deg, rgba(96,165,250,0.9), rgba(129,140,248,0.95));
  border-color: rgba(15,23,42,0.45);
  box-shadow: 0 0 16px rgba(15,23,42,0.45);
}

.skills-radar-tile:hover .skills-radar-label,
.skills-radar-tile.active .skills-radar-label {
  background: linear-gradient(135deg, rgba(94,181,249,0.35), rgba(147,51,234,0.35));
  opacity: 0;
  visibility: hidden;
}

.skills-radar-tile:hover canvas,
.skills-radar-tile.active canvas {
  opacity: 1;
  transform: scale(1);
}

.skill-ratings {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.skill-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
}

.skill-icon-wrap {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 12px rgba(94,181,249,0.35);
}

.skill-icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(94,181,249,0.4));
}

.skill-label {
  color: #e5e7eb;
}

.score {
  color: #93c5fd;
  font-weight: 700;
}

.skill-bar {
  margin-top: 0.4rem;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.skill-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--level, 70%);
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(94,181,249,0.45);
}
/* =======================================================
   SKILLS GRID
======================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.skill-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 1.8rem 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: 0.28s ease;
  box-shadow: 0 0 14px rgba(0,0,0,0.35);
}

.skill-box:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 28px rgba(94,181,249,0.55);
}

.skill-icon {
  height: 42px;
  margin-bottom: 0;
  filter: drop-shadow(0 0 6px rgba(94,181,249,0.4));
  object-fit: contain;
}

.skill-box span {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #e5e7eb;
}

/* =======================================================
   EXPERTISE
======================================================= */
.expertise-card {
  padding: 2.1rem;
}

.expertise-card h3 {
  margin-bottom: 0.7rem;
}

.areas-content h4 {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #dbeafe;
}

.areas-content p {
  color: #b7bcc9;
  margin-bottom: 0.5rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* =======================================================
   ACHIEVEMENTS
======================================================= */
.achievements-list {
  list-style: none;
  font-size: 1rem;
  color: #bdc3d1;
}

.achievements-list li {
  margin-bottom: 1rem;
}

  /* =======================================================
     PROJECTS POPUP (PREMIUM)
  ======================================================= */
  .projects-popup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
    margin-top: 3rem;
  }

.popup-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 26px;
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 35px rgba(0,0,0,0.5);
  transition: 0.3s;
  position: relative;
}

.popup-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(94,181,249,0.5);
}

  .popup-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
  }

.project-card {
  display: block;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 0 35px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  }

.project-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 550px;
  position: relative;
}

  .project-card:link,
  .project-card:visited {
    color: #e5e7eb;
  }

  .project-thumb {
    position: relative;
    padding: 1.4rem 1.4rem 1rem;
    min-height: 250px;
    flex: 0 0 65%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .project-thumb-layer {
    position: absolute;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,0.85);
    will-change: transform;
  }

  .project-thumb-layer img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center;
    transition: transform 0.32s ease, filter 0.32s ease, opacity 0.32s ease;
  }

  .project-thumb-main {
    width: 78%;
    z-index: 2;
    transform: translateY(-6px);
  }
  
  .project-thumb-left {
    width: 70%;
    transform: translate(-22%, 10%) rotate(-4deg);
    z-index: 1;
  }
  
  .project-thumb-right {
    width: 70%;
    transform: translate(22%, -16%) rotate(3deg);
    z-index: 1;
  }
  
  .project-thumb-side img {
    filter: blur(2px);
    opacity: 0.6;
  }
  
  .project-thumb-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15,23,42,0.0), rgba(15,23,42,0.0));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 3;
  }
  
  .project-thumb-cta {
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1020;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 22px rgba(56,189,248,0.8);
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .project-card-body {
    position: relative;
    padding: 1.8rem 1.6rem 2.3rem;
    flex: 0 0 35%;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  
  .project-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
  }
  
  .project-card-body .popup-desc {
    margin-bottom: 0.9rem;
  }
  
  .project-card-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.6rem;
    right: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(148,163,184,0.0),
      rgba(148,163,184,0.45),
      rgba(148,163,184,0.0)
    );
    opacity: 0.8;
  }
  
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 55px rgba(0,0,0,0.8);
    border-color: rgba(94,181,249,0.9);
    background: radial-gradient(circle at top, rgba(56,189,248,0.24), rgba(15,23,42,0.98));
  }
  
  .project-card:hover .project-thumb-main img {
    transform: scale(1.03);
  }
  
  .project-card:hover .project-thumb-side img {
    filter: blur(0);
    opacity: 0.95;
    transform: scale(1.05);
  }
  
  .project-card:hover .project-thumb-overlay {
    background: radial-gradient(circle at center, rgba(15,23,42,0.0), rgba(15,23,42,0.35));
    opacity: 1;
  }
  
  .project-card:hover .project-thumb-cta {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .project-card:hover .project-thumb-cta:hover {
    transform: translateY(-1px) scale(1.03);
  }
  
  body.light-theme .project-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 22px 50px rgba(15,23,42,0.15);
  }
  
  body.light-theme .project-thumb-overlay {
    background: radial-gradient(circle at center, rgba(15,23,42,0.0), rgba(15,23,42,0.0));
  }
  
  body.light-theme .project-card:hover .project-thumb-overlay {
    background: radial-gradient(circle at center, rgba(15,23,42,0.0), rgba(15,23,42,0.18));
  }

.popup-desc {
  color: #9fa4b3;
  margin-bottom: 1rem;
}

/* TAGS */
.tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 12px rgba(0,0,0,0.35);
}

.tag.cyan { background: linear-gradient(90deg, #22d3ee, #0ea5e9); }
.tag.purple { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.tag.blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.tag.orange { background: linear-gradient(90deg, #fb923c, #f97316); }
.tag.green { background: linear-gradient(90deg, #34d399, #059669); }
.tag.teal { background: linear-gradient(90deg, #2dd4bf, #14b8a6); }
.tag.violet { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
  .tag.red { background: linear-gradient(90deg, #f87171, #ef4444); }

    @media (max-width: 768px) {
      .project-thumb-left,
      .project-thumb-right {
        display: none;
      }

      .project-thumb-main {
        width: 100%;
        transform: none;
      }
  
      .project-thumb {
        padding: 1rem 1rem 0.75rem;
        min-height: 150px;
      }
    }

/* =======================================================
   CONTACT FORM (GLASS)
======================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.8rem;
}

.contact-left h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-sub {
  color: #9fa4b3;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.22s ease;
}

.contact-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(94,181,249,0.35);
  border-color: rgba(94,181,249,0.65);
}

.contact-form {
  padding: 2.4rem;
}

.tilt-card {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.22s ease-out;
  will-change: transform;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--glow-x) var(--glow-y),
              rgba(80, 216, 255, 0.18),
              rgba(165, 66, 244, 0.18) 45%,
              transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  mix-blend-mode: screen;
}

.tilt-card.is-tilting::after {
  opacity: 1;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #c8cdd9;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 14px rgba(94,181,249,0.65);
  border-color: rgba(94,181,249,0.6);
}

.submit-btn {
  width: 100%;
  margin-top: 0.4rem;
  border: none;
  cursor: pointer;
}

.contact-status {
  margin-top: 0.75rem;
  color: #a5f3fc;
  font-size: 0.95rem;
}

.contact-form .btn-primary {
  background: linear-gradient(120deg, #22e6ff, #3a70ff);
  color: #0b1020;
  box-shadow: 0 0 18px rgba(47, 107, 255, 0.35), 0 0 28px rgba(45, 231, 255, 0.3);
  border: 1px solid transparent;
}

.contact-form .btn-primary:hover {
  background: linear-gradient(120deg, #43e0ff, #a855f7);
  color: #ffffff;
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.55), 0 0 36px rgba(45, 231, 255, 0.4);
}

.contact-status.error {
  color: #fecdd3;
}

/* =======================================================
   FOOTER
======================================================= */
.footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: 3rem;
  color: #9ca3af;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer .legal-disclaimer {
  max-width: 960px;
  margin: 0.25rem auto 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width: 1020px) {
  .project-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .project-info-grid::before {
    display: none;
  }

  .project-preview-media {
    min-height: 0;
    flex-direction: column;
  }

  .project-preview-main,
  .project-preview-side {
    position: relative;
    width: 100%;
    max-width: 100%;
    transform: none;
    right: auto;
    top: auto;
    bottom: auto;
    margin-bottom: 1rem;
  }

  .project-preview-card {
    padding: 2rem 1.75rem 1.9rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap {
    margin-top: 2rem;
  }
  .about-grid,
  .contact-grid,
  .projects-popup {
      grid-template-columns: 1fr;
    }
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .skills-expertise-row {
      grid-template-columns: 1fr;
    }

  .skills-radar-grid {
    flex-wrap: wrap;
  }

  /* tablet navbar adjustments */
  .navbar .nav-inner {
    flex-wrap: wrap;
  }

  .nav-menu {
    justify-content: center;
    flex: 1 1 auto;
  }

  .nav-actions {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 620px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-radar-grid {
    justify-content: center;
  }
  .btn-primary {
    width: 100%;
  }

  /* navbar responsive */
  .navbar {
    height: auto;
    min-height: 78px;
    padding: 1rem 0;
  }

  .nav-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .dropdown-panel {
    position: static;
    display: block;
    margin-top: 0.5rem;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .dropdown:hover .dropdown-panel {
    display: block;
  }
}
