:root {
  --bg: #050608;
  --surface: #101318;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.18);

  --violet: #7DD3FC;
  --purple: #38BDF8;
  --fuchsia: #A78BFA;
  --deep-purple: #2563EB;

  --shadow-card: 0 18px 44px -28px rgba(0, 0, 0, 0.85);
  --shadow-card-hover: 0 22px 48px -32px rgba(0, 0, 0, 0.9);
  --radius: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(167, 139, 250, 0.4);
  color: var(--text);
}

::-moz-selection {
  background: rgba(167, 139, 250, 0.4);
  color: var(--text);
}

/* ---------- Accessibility: focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cursor glow ---------- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  filter: blur(42px);
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.28) 0%, rgba(167, 139, 250, 0.12) 42%, transparent 62%);
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity .3s;
  will-change: transform;
}

@media (pointer: coarse) {
  #cursor-glow {
    display: none;
  }
}

/* ---------- Glass + refined border ---------- */
.glass {
  background: rgba(16, 19, 24, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

.card {
  padding: 24px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: var(--shadow-card-hover);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}

.btn-neon {
  color: #041016;
  background: var(--violet);
  box-shadow: 0 12px 28px -20px rgba(125, 211, 252, 0.9);
}

.btn-neon:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px -22px rgba(125, 211, 252, 0.95);
}

.btn-neon:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

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

.btn-ghost:hover {
  border-color: rgba(125, 211, 252, 0.55);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.navbar.scrolled {
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  background: rgba(125, 211, 252, 0.08);
  color: var(--violet);
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.dot {
  color: var(--violet);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s var(--ease);
}

.nav-links a:hover {
  color: var(--violet);
}

.nav-cta {
  font-size: 13px;
  padding: 6px 18px;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  padding: 8px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: background .2s var(--ease);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu {
  display: none;
  margin: 0 16px 16px;
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.mobile-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--violet);
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 160px 0 80px;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

.pill .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6);
  animation: pulse-ring 1.6s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(167, 139, 250, 0);
  }
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
}

.hero-title {
  max-width: 720px;
}

.hero-title span {
  display: block;
}

.hero-title-role {
  margin-top: 10px;
  color: var(--violet);
  font-size: 32px;
  font-weight: 600;
}

.hero-role {
  margin-top: 20px;
  font-size: 19px;
  color: var(--muted);
}

.typed {
  color: var(--text);
  font-weight: 500;
}

.caret {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  color: var(--violet);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-summary {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-ctas-center {
  justify-content: center;
  margin-top: 32px;
}

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--muted);
  transition: color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}

.social:hover {
  color: var(--violet);
  transform: translateY(-2px);
  background: rgba(167, 139, 250, 0.08);
}

.lanyard-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  margin-top: -100px;
  transform-origin: top center;
  animation: swing 4.5s ease-in-out infinite;
}

.lanyard-strap {
  width: 42px;
  height: 250px;
  border-radius: 6px 6px 2px 2px;
  background: #101318;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lanyard-strap span {
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--violet);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

.lanyard-clip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #151a22;
  border: 2px solid rgba(125, 211, 252, 0.35);
  margin: -4px 0;
  z-index: 2;
}

.badge-card {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(248, 250, 252, 0.85);
  box-shadow: var(--shadow-card);
  margin-top: -2px;
}

.badge-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-glow {
  display: none;
}

@keyframes swing {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-title-role {
    font-size: 24px;
  }

  .hero-role {
    font-size: 17px;
  }

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

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

  .lanyard-assembly {
    order: -1;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-title-role {
    font-size: 20px;
  }

  .section h2,
  .page-hero h1 {
    font-size: 32px;
  }

  .cta-box h2 {
    font-size: 28px;
  }
}


/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 96px 0;
}

/* Tighter section spacing on the home page only — does not affect other pages */
body.home .section {
  padding: 20px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
}

.section h2 {
  font-size: 42px;
  font-weight: 700;
}

.subtitle {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- CTA box ---------- */
.cta-box {
  padding: 56px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 34px;
}

.cta-box p {
  max-width: 480px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.divider {
  width: 96px;
  height: 1px;
  margin: 24px auto 0;
  background: rgba(125, 211, 252, 0.5);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
}

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

.bullet-list {
  list-style: none;
  margin-top: 20px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.bullet-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  padding: 20px;
}

.stat i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--violet);
  margin-bottom: 14px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

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

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 1px;
  height: 100%;
  background: rgba(125, 211, 252, 0.24);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--violet);
  font-size: 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
}

.timeline-period {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-card h3 {
  font-size: 18px;
}

.timeline-card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

@media (min-width: 800px) {
  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-left: 0;
  }

  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item:nth-child(odd) .timeline-card {
    grid-column: 1;
    text-align: right;
  }

  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
  }
}

/* ---------- Experience / Certificates (reference-style) ---------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.exp-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 20px;
  align-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.exp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: var(--shadow-card-hover);
}

.exp-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #0c1118;
  border: 1px solid var(--border);
}

.exp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--violet);
}

.exp-placeholder i {
  font-size: 44px;
  opacity: 0.75;
}

.exp-placeholder span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.exp-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.25);
  font-size: 13px;
  color: var(--text);
}

.meta-pill i {
  color: var(--violet);
  font-size: 12px;
}

.exp-desc {
  color: var(--muted);
  margin-top: 16px;
}

.hint {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.hint code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet);
  font-size: 12px;
}

@media (max-width: 720px) {
  .exp-card {
    grid-template-columns: 1fr;
  }

  .exp-media {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ---------- Skills / Services / Projects ---------- */
.skills-grid,
.services-grid,
.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card .icon,
.service-icon i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--violet);
  font-size: 18px;
  margin-bottom: 16px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.service-icon i {
  background: transparent;
  width: auto;
  height: auto;
  margin: 0;
  font-size: 24px;
}

.skill-card h3,
.service h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service p {
  color: var(--muted);
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags span {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.tags span:hover {
  border-color: rgba(167, 139, 250, 0.6);
  color: var(--text);
}

.project {
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.project p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--violet);
}

.mini-btn.is-disabled {
  cursor: default;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-style: dashed;
  opacity: 0.76;
}

.mini-btn.is-disabled:hover {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

/* Cards grid used on the home page (Featured Projects preview) */
.cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid .card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.cards-grid .card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.info-card i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--violet);
  font-size: 18px;
  flex-shrink: 0;
}

.info-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-card strong {
  word-break: break-word;
  font-weight: 500;
}

.contact-form {
  padding: 32px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 700px) {

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

.form-status {
  margin-top: 12px;
  color: var(--violet);
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 40px 0;
  margin-top: 64px;
}

.footer-line {
  height: 1px;
  max-width: 1200px;
  margin: 0 auto 40px;
  background: var(--border);
}

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

.footer p {
  color: var(--muted);
  font-size: 14px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}

.footer-socials a:hover {
  color: var(--violet);
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.4);
}

.copyright {
  font-size: 12px !important;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page hero (secondary pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 64px;
  text-align: center;
}

.page-hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-top: 12px;
}

.page-hero .subtitle {
  margin: 16px auto 0;
}

.nav-links a.active {
  color: var(--violet);
}

/* ---------- Project list & gallery ---------- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 24px;
  align-items: center;
}

.project-card:nth-child(even) {
  grid-template-columns: 1fr 1.1fr;
}

.project-card:nth-child(even) .project-gallery {
  order: 2;
}

.project-card:nth-child(even) .project-body {
  order: 1;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 13 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease);
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.placeholder-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text);
  background: #0c1118;
}

.placeholder-slide i {
  font-size: 40px;
  opacity: 0.85;
}

.placeholder-slide span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
}

.grad-1,
.grad-2,
.grad-3,
.grad-4 {
  background: #0c1118;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.gallery-nav:hover {
  background: rgba(125, 211, 252, 0.16);
  border-color: rgba(125, 211, 252, 0.45);
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .2s var(--ease);
}

.thumb:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.4);
}

.thumb.active {
  color: var(--text);
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.project-body {
  padding: 8px;
}

.project-body h2 {
  font-size: 26px;
  margin: 10px 0 12px;
}

.project-body p {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 900px) {

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-gallery,
  .project-card:nth-child(even) .project-body {
    order: initial;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pill .pulse,
  .caret,
  .avatar-ring,
  .hero-avatar img,
  .footer-line {
    animation: none !important;
  }

  .card,
  .exp-card,
  .btn,
  .reveal,
  .social,
  .footer-socials a {
    transition-duration: .01ms !important;
  }
}

html.reduced-motion #particles {
  display: none;
}
