/* Vivek Sharma Portfolio — neon purple + glassmorphism */
:root {
  --bg: #080716;
  --bg-soft: #100d25;
  --surface: rgba(24, 19, 49, 0.78);
  --surface-solid: #15112d;
  --text: #f7f4ff;
  --muted: #b9b2d2;
  --line: rgba(157, 91, 255, 0.25);
  --purple: #8b35ff;
  --pink: #d34dff;
  --glow: 0 0 28px rgba(137, 48, 255, 0.22);
  --nav: rgba(8, 7, 22, 0.82);
}
body.light-theme {
  --bg: #f7f5ff;
  --bg-soft: #eeebfb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #fff;
  --text: #19132d;
  --muted: #625b78;
  --line: rgba(113, 55, 208, 0.2);
  --nav: rgba(248, 246, 255, 0.88);
  --glow: 0 8px 28px rgba(94, 56, 160, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 80% 10%,
      rgba(116, 39, 255, 0.15),
      transparent 35%
    ),
    radial-gradient(ellipse at 8% 55%, rgba(86, 35, 190, 0.11), transparent 30%);
}
.section-pad {
  padding: 100px 0;
  position: relative;
}
.section-line {
  border-top: 1px solid var(--line);
}
.site-nav {
  background: var(--nav);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.brand {
  font-weight: 800;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #c34cff, #6425ff);
  color: white;
  clip-path: polygon(0 0, 100% 0, 70% 100%);
  font-weight: 900;
  font-size: 22px;
}
.brand-dot {
  color: var(--pink);
}
.nav-link {
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 13px !important;
  border-radius: 30px;
  transition: 0.25s;
}
.nav-link:hover,
.nav-link.active {
  color: white !important;
  background: linear-gradient(100deg, #8b35ff, #5d28db);
  box-shadow: 0 0 18px rgba(139, 53, 255, 0.4);
}
.navbar-toggler {
  border-color: var(--line);
}
.navbar-toggler-icon {
  filter: invert(1);
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 30px;
  width: 48px;
  height: 38px;
  font-size: 19px;
}
.hero {
  padding-top: 145px;
  min-height: 690px;
  overflow: hidden;
}
.eyebrow,
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c28cff;
  font-weight: 800;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 30px;
  background: var(--surface);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60f2ae;
  box-shadow: 0 0 12px #60f2ae;
}
.hello {
  margin: 26px 0 3px;
  color: var(--muted);
  font-size: 1.2rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -4px;
  margin: 0;
  line-height: 1.08;
}
.gradient-text {
  background: linear-gradient(100deg, #a35bff, #e15bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h2 {
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 700;
  margin-top: 10px;
}
.cursor {
  color: #d05cff;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero-description,
.muted-copy {
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
}
.btn {
  border-radius: 30px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.9rem;
}
.btn-neon {
  color: #fff;
  background: linear-gradient(100deg, #a43cff, #692cff);
  border: 1px solid #bb76ff;
  box-shadow: 0 0 22px rgba(137, 48, 255, 0.3);
}
.btn-neon:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(137, 48, 255, 0.55);
}
.btn-outline-neon {
  border: 1px solid #a34dff;
  color: var(--text);
}
.btn-outline-neon:hover {
  background: rgba(142, 57, 255, 0.14);
  color: var(--text);
  border-color: #d15bff;
}
.social-row {
  display: flex;
  gap: 12px;
}
.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: var(--surface);
  transition: 0.25s;
}
.social-row a:hover {
  background: #7c2eff;
  color: white;
  transform: translateY(-4px);
}
.hero-art-wrap {
  min-height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
}
.hero-art {
  position: relative;
  z-index: 2;
  width: 90%;
 
  max-width: 590px;
  max-height: 490px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(145, 54, 255, 0.25));
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}
.hero-orbit {
  position: absolute;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(177, 85, 255, 0.65);
  border-radius: 50%;
  box-shadow:
    0 0 45px rgba(142, 55, 255, 0.22),
    inset 0 0 40px rgba(142, 55, 255, 0.12);
}
.code-float {
  position: absolute;
  z-index: 3;
  color: #d7a2ff;
  text-shadow: 0 0 15px #9c42ff;
  font-weight: 800;
}
.float-one {
  top: 17%;
  left: 1%;
  font-size: 1.5rem;
  transform: rotate(-10deg);
}
.float-two {
  bottom: 16%;
  right: 0;
  font-size: 0.72rem;
  letter-spacing: 2px;
}
.scroll-cue {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-decoration: none;
  margin-top: 5px;
}
.scroll-cue span {
  display: block;
  font-size: 1.4rem;
  color: #c26bff;
}
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.about-visual {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(159, 69, 255, 0.3),
      transparent 45%
    ),
    linear-gradient(145deg, #17102f, #090817);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow);
}
.about-visual:before,
.about-visual:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(199, 111, 255, 0.3);
  border-radius: 50%;
}
.about-visual:after {
  width: 300px;
  height: 300px;
}
.about-initials {
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: -12px;
  color: #fff;
  text-shadow: 0 0 30px #9b39ff;
  z-index: 1;
}
.about-initials span {
  font-size: 2rem;
  letter-spacing: 0;
  color: #d47aff;
}
.visual-caption {
  z-index: 1;
  color: #d8b8ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.subheading {
  font-weight: 800;
  font-size: 1.6rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 25px;
}
.info-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  padding: 13px;
}
.info-chip > span {
  font-size: 1.4rem;
  color: #bd69ff;
}
.info-chip small,
.info-chip strong {
  display: block;
}
.info-chip small {
  color: var(--muted);
  font-size: 0.68rem;
}
.info-chip strong {
  font-size: 0.83rem;
}
.text-link {
  color: #cb8cff;
  text-decoration: none;
  font-weight: 700;
  gap: 10px;
}
.skill-card,
.service-card,
.project-card,
.contact-info,
.contact-form {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
}
.skill-card {
  padding: 24px;
  position: relative;
}
.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, #a63cff, #4f2acb);
  box-shadow: 0 0 18px rgba(144, 58, 255, 0.25);
}
.html-icon {
  background: #f06429;
}
.css-icon {
  background: #2478df;
}
.js-icon {
  background: #e8ca34;
  color: #1e1a0b;
}
.bs-icon {
  background: #8051d9;
}
.php-icon {
  font-size: 0.9rem;
}
.skill-card h3,
.service-card h3,
.project-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}
.skill-card p,
.service-card p,
.project-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}
.skill-track {
  height: 7px;
  background: rgba(132, 107, 179, 0.2);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
}
.skill-track span {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #7430ff, #d64dff);
  transform-origin: left;
  animation: grow 1.2s ease both;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.skill-card small {
  display: block;
  text-align: right;
  color: #d7a6ff;
  margin-top: 8px;
}
.skill-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
}
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -15px 0 30px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.82rem;
}
.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(100deg, #8733ed, #6125d0);
  color: #fff;
}
.project-card {
  overflow: hidden;
  transition: 0.3s;
}
.project-card:hover {
  transform: translateY(-7px);
  border-color: #a34aff;
  box-shadow: 0 12px 35px rgba(120, 47, 255, 0.2);
}
.project-art {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-art span {
  font-size: 5rem;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}
.project-art b {
  position: absolute;
  top: 15px;
  left: 17px;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #fff;
}
.project-art-one {
  background: radial-gradient(circle at 50% 50%, #315c89, #101c46 70%);
}
.project-art-two {
  background: radial-gradient(circle at 50% 50%, #593d91, #161333 70%);
}
.project-art-three {
  background: radial-gradient(circle at 50% 50%, #7d3c9b, #211538 70%);
}
.project-body {
  padding: 22px;
}
.project-type {
  color: #c17aff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.project-card h3 {
  margin: 8px 0;
}
.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.tag-row span {
  font-size: 0.68rem;
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(139, 53, 255, 0.14);
  color: #d4a9ff;
}
.project-links {
  display: flex;
  gap: 9px;
}
.project-link {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(100deg, #8c35f5, #6427d2);
  padding: 9px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
}
.project-link.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.project-item.hidden {
  display: none;
}
.service-card {
  padding: 25px;
  transition: 0.25s;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: #a34aff;
}
.service-icon {
  font-size: 2.1rem;
  color: #c17aff;
  margin-bottom: 18px;
  font-weight: 900;
}
.resume-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 42px;
  background:
    radial-gradient(
      circle at 90% 50%,
      rgba(139, 53, 255, 0.22),
      transparent 35%
    ),
    var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: var(--glow);
}
.resume-panel h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 12px 0;
}
.resume-panel p {
  color: var(--muted);
  max-width: 550px;
}
.resume-symbol {
  width: 150px;
  height: 175px;
  display: grid;
  place-items: center;
  border: 2px solid #b95aff;
  border-radius: 18px;
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  transform: rotate(7deg);
  box-shadow: 0 0 30px rgba(151, 63, 255, 0.35);
  background: linear-gradient(
    145deg,
    rgba(153, 61, 255, 0.3),
    rgba(35, 20, 70, 0.5)
  );
  flex-shrink: 0;
}
.resume-symbol span {
  font-size: 1.2rem;
  color: #e7a4ff;
}
.contact-info,
.contact-form {
  padding: 30px;
}
.contact-info h3 {
  font-weight: 800;
  font-size: 1.5rem;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  margin-top: 18px;
  font-size: 0.9rem;
}
.contact-line span {
  color: #c17aff;
  font-size: 1.2rem;
}
.contact-form label {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 7px 3px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 7, 22, 0.25);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a44cff;
  box-shadow: 0 0 0 3px rgba(151, 60, 255, 0.12);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.form-status {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 12px 0 0;
}
.site-footer {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.heart {
  color: #ff5b91;
}
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid #b66aff;
  border-radius: 50%;
  background: #762de5;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(142, 49, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 20;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
body.light-theme .hero-art {
  filter: drop-shadow(0 0 22px rgba(110, 45, 220, 0.18));
}
body.light-theme .about-visual {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(159, 69, 255, 0.18),
      transparent 45%
    ),
    linear-gradient(145deg, #e9ddff, #f8f5ff);
}
body.light-theme .about-initials {
  color: #4c208b;
  text-shadow: 0 0 20px #c18bff;
}
body.light-theme .visual-caption {
  color: #6c3c9e;
}
body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: rgba(255, 255, 255, 0.7);
}
body.light-theme .navbar-toggler-icon {
  filter: none;
}
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 15px 0;
  }
  .nav-link {
    display: inline-block;
  }
  .hero {
    padding-top: 125px;
  }
  .hero-art-wrap {
    min-height: 360px;
  }
  .hero-art {
    max-height: 390px;
  }
  .hero-orbit {
    width: 290px;
    height: 290px;
  }
  .float-one {
    left: 7%;
  }
  .float-two {
    right: 5%;
  }
}
@media (max-width: 767px) {
  .section-pad {
    padding: 75px 0;
  }
  .hero {
    padding-top: 115px;
    min-height: auto;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .hero-art-wrap {
    min-height: 300px;
    margin-top: 10px;
  }
  .hero-art {
    max-height: 330px;
  }
  .hero-orbit {
    width: 240px;
    height: 240px;
  }
  .float-one {
    font-size: 1rem;
  }
  .float-two {
    font-size: 0.55rem;
  }
  .scroll-cue {
    margin-top: 15px;
  }
  .section-heading {
    margin-bottom: 35px;
  }
  .about-visual {
    min-height: 260px;
  }
  .about-initials {
    font-size: 6rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .resume-panel {
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
  }
  .resume-symbol {
    width: 110px;
    height: 130px;
    align-self: center;
  }
  .contact-info,
  .contact-form {
    padding: 22px;
  }
  .site-footer .container {
    justify-content: center !important;
    text-align: center;
  }
  .site-footer .container > * {
    width: 100%;
    justify-content: center;
  }
  .project-art {
    height: 155px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Featured projects: touch-friendly horizontal scroll area */
.featured-project-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 12px;
  padding: 0 4px;
}
.scroll-hint {
  font-size: 0.76rem;
  color: var(--muted);
}
.project-scroll-arrows {
  display: flex;
  gap: 8px;
}
.project-scroll-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  transition: 0.2s;
}
.project-scroll-btn:hover {
  background: #762de5;
  border-color: #b66aff;
  color: #fff;
  transform: translateY(-2px);
}
.featured-projects-scroll {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 5px 22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #8d42e8 rgba(132, 107, 179, 0.15);
}
.featured-projects-scroll::-webkit-scrollbar {
  height: 8px;
}
.featured-projects-scroll::-webkit-scrollbar-track {
  background: rgba(132, 107, 179, 0.15);
  border-radius: 20px;
}
.featured-projects-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #7430ff, #d64dff);
  border-radius: 20px;
}
.featured-projects-scroll .row {
  margin: 0;
  flex-wrap: nowrap;
}
.featured-projects-scroll .project-item {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
  padding: 0 8px;
  scroll-snap-align: start;
}
.featured-projects-scroll .project-card {
  min-height: 100%;
}
.featured-projects-scroll .project-item.hidden {
  display: none;
}
.projects-page-section {
  padding-top: 145px;
  min-height: 78vh;
}
.projects-page-top {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}
.projects-page-top h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 12px 0;
}
.projects-page-top p {
  color: var(--muted);
  line-height: 1.8;
}
.back-link {
  color: #c98aff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.back-link:hover {
  color: var(--text);
}
.projects-page-filters {
  margin-top: 0;
}
.projects-page-section .project-card {
  min-height: 100%;
}
@media (max-width: 767px) {
  .featured-projects-scroll {
    padding-left: 2px;
    padding-right: 2px;
  }
  .featured-projects-scroll .project-item {
    flex-basis: min(86vw, 340px);
    width: min(86vw, 340px);
    max-width: min(86vw, 340px);
  }
  .featured-project-controls {
    align-items: flex-end;
  }
  .scroll-hint {
    max-width: 210px;
    line-height: 1.5;
  }
  .projects-page-section {
    padding-top: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .featured-projects-scroll {
    scroll-behavior: auto;
  }
}
